当前位置: 首页>>代码示例>>PHP>>正文


PHP Gallery::set方法代码示例

本文整理汇总了PHP中Gallery::set方法的典型用法代码示例。如果您正苦于以下问题:PHP Gallery::set方法的具体用法?PHP Gallery::set怎么用?PHP Gallery::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gallery的用法示例。


在下文中一共展示了Gallery::set方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getList

 function getList($params = NULL, $proyection = '*', $order = '1', $limit = '')
 {
     if ($this->db != NULL) {
         $this->db->read($this->table, $proyection, $params);
         $r = array();
         while ($param = $this->db->getRow()) {
             $gallery = new Gallery();
             $gallery->set($param);
             $r[] = $gallery;
         }
         return $r;
     }
     return NULL;
 }
开发者ID:developdms,项目名称:Practica-5,代码行数:14,代码来源:ManagerGallery.php

示例2: getList

 function getList($pagina = 1, $orden = "", $nrpp = Configuracion::NRPP, $condicion = "1=1", $parametros = array())
 {
     $ordenPredeterminado = "{$orden}, id_imagen";
     if (trim($orden) === "" || trim($orden) === NULL) {
         $ordenPredeterminado = "id_imagen";
     }
     $registroInicial = ($pagina - 1) * $nrpp;
     $this->bd->select($this->tabla, "*", $condicion, $parametros, $ordenPredeterminado, "{$registroInicial}, {$nrpp}");
     $r = array();
     while ($fila = $this->bd->getRow()) {
         $imagen = new Gallery();
         $imagen->set($fila);
         $r[] = $imagen;
     }
     return $r;
 }
开发者ID:ealvarez1990,项目名称:galeriaarte,代码行数:16,代码来源:ManageGallery.php

示例3: setOption

     setOption('multi_lingual', (int) isset($_POST['multi_lingual']));
     $f = sanitize($_POST['date_format_list'], 3);
     if ($f == 'custom') {
         $f = sanitize($_POST['date_format'], 3);
     }
     setOption('date_format', $f);
     setOption('UTF8_image_URI', (int) isset($_POST['UTF8_image_URI']));
     $msg = zp_apply_filter('save_admin_general_data', '');
     $returntab = "&tab=general";
 }
 /*** Gallery options ***/
 if (isset($_POST['savegalleryoptions'])) {
     $gallery->setPersistentArchive((int) isset($_POST['persistent_archive']));
     $gallery->setGallerySession((int) isset($_POST['album_session']));
     $gallery->setThumbSelectImages((int) isset($_POST['thumb_select_images']));
     $gallery->set('gallery_title', process_language_string_save('gallery_title', 2));
     $gallery->set('Gallery_description', process_language_string_save('Gallery_description', 1));
     $gallery->set('website_title', process_language_string_save('website_title', 2));
     $web = sanitize($_POST['website_url'], 3);
     $gallery->setWebsiteURL($web);
     $gallery->setAlbumUseImagedate((int) isset($_POST['album_use_new_image_date']));
     $st = strtolower(sanitize($_POST['gallery_sorttype'], 3));
     if ($st == 'custom') {
         $st = strtolower(sanitize($_POST['customalbumsort'], 3));
     }
     $gallery->setSortType($st);
     if ($st == 'manual' || $st == 'random') {
         $gallery->setSortDirection(0);
     } else {
         $gallery->setSortDirection((int) isset($_POST['gallery_sortdirection']));
     }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:admin-options.php


注:本文中的Gallery::set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。