$_app
$_app : string
The application this browser is for.
Horde_Core_TagBrowser:: class provides logic for dealing with tag browsing.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
$_tagger : \Horde_Core_Tagger
The Tagger object.
__construct(\Horde_Core_Tagger $tagger, array $tags = null, string $owner = null)
Const'r
\Horde_Core_Tagger | $tagger | The tagger object. |
array | $tags | Tags to add to initially search on. |
string | $owner | Restrict to resources owned by owner. |
getRelatedTags(array $default_results = null) : array
Get a list of tags related to this search. Concrete tagger classes can override the _getRelatedTagsWith* methods if they can perform them more efficiently.
array | $default_results | A default list of object ids to use to fetch tags from. Used when the current search results are empty. |
An array tag_id => {tag_name, total}
_getRelatedTagsWithResults(array $default_results = null) : array
Default implementation for getRelatedTags
array | $default_results | A default list of object ids to use to fetch tags from. Used when the current search results are empty. |
An array of tag_id => [tag_name, total].
_getRelatedTagsWithNoResults() : array
Default implementation for getting related tags when we don't have any current search in effect. This is very inefficent and should only be used as a very last resort. Better to have concrete classes provide the full result set. See _getRelatedTagsWithResults().
An array of tag_id => [tag_name, total]