Ansel_Api::selectGalleries PHP Method

selectGalleries() public method

Returns a 'select' menu from the list of galleries created by listGalleries().
public selectGalleries ( array $params = [] )
$params array Optional parameters:
 (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.
    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);
    }