本文整理汇总了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>
示例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);
}
示例3: _
<table cellspacing="0">
<!-- Parent -->
<tr>
<td class="rightAlign"><strong><?php
echo _("Gallery Parent");
?>
</strong> </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"' : '';