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


PHP Ansel::selectGalleries方法代码示例

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


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

示例1: _

            <?php 
    if ($this->option_copy) {
        ?>
              | <?php 
        echo $this->contentTag('a', _("Copy"), array('title' => _("Copy"), 'class' => 'widget', 'id' => 'anselgallery_copy'));
        ?>
            <?php 
    }
    ?>
            <select name="new_gallery">
              <option value="-1"><?php 
    echo _("Selected photos to");
    ?>
</option>
              <?php 
    echo Ansel::selectGalleries(array('perm' => Horde_Perms::EDIT));
    ?>
            </select>
          </td>
        </tr>
      </table>
    <?php 
}
?>
    <?php 
if (!$this->numTiles) {
    ?>
      <div class="text"><em><?php 
    echo _("There are no photos in this gallery.");
    ?>
</em></div>
开发者ID:jubinpatel,项目名称:horde,代码行数:31,代码来源:gallery.html.php

示例2: selectGalleries

 /**
  * Returns a 'select' menu from the list of galleries created by
  * listGalleries().
  *
  * @param array $params  Optional parameters:
  *<pre>
  *  (string)scope      Application scope, if not default.
  *  (integer)selected  The gallery_id of the gallery that is selected
  *  (integer)perm      The permissions filter to use [Horde_Perms::SHOW]
  *  (mixed)filter      Restrict the galleries returned to those matching
  *                     the filters. Can be an array of attribute/values
  *                     pairs or a gallery owner username.
  *  (integer)parent    The parent share to start listing at.
  *  (integer)from      The gallery to start listing at.
  *  (integer)count     The number of galleries to return.
  *  (integer)ignore    An Ansel_Gallery id to ignore when building the tree.
  *</pre>
  */
 public function selectGalleries(array $params = array())
 {
     if (!empty($params['scope'])) {
         $GLOBALS['injector']->getInstance('Ansel_Config')->set('scope', $params['scope']);
         unset($params['scope']);
     }
     return Ansel::selectGalleries($params);
 }
开发者ID:raz0rsdge,项目名称:horde,代码行数:26,代码来源:Api.php

示例3: _

<table cellspacing="0">

<!-- Parent -->
<tr>
 <td class="rightAlign"><strong><?php 
echo _("Gallery Parent");
?>
</strong>&nbsp;</td>
 <td>
  <select name="gallery_parent" id="gallery_parent">
   <option value=""><?php 
echo _("Top Level Gallery");
?>
</option>
   <?php 
echo Ansel::selectGalleries(array('selected' => $this->properties['parent'], 'perm' => Horde_Perms::EDIT, 'ignore' => $this->properties['id']));
?>
  </select>
 </td>
</tr>

<!-- Display Mode -->
<tr>
  <td class="rightAlign"><strong><?php 
echo _("Display Mode");
?>
</strong></td>
  <td>
    <select name="view_mode">
     <option value="Normal" <?php 
echo empty($this->properties['mode']) || $this->properties['mode'] == 'Normal' ? 'selected="selected"' : '';
开发者ID:jubinpatel,项目名称:horde,代码行数:31,代码来源:properties.html.php


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