Clear the session cache
void
clearSearch
()
Retrieve a set of tags with relationships to the specified set of tags.
mixed
getRelatedTags
( $ids, array $tags)
-
array
$tags: An array of tag_ids
-
$ids
Retrieve an Ansel_Tags_Search object
void
getSearch
([ $tags = null], [ $owner = null])
Get a list of tag_ids from a list of tag_names
mixed
getTagIds
(array $tags)
-
array
$tags: An array of tag_names
Get the URL for a tag link
string
getTagLinks
(array $tags, [string $action = 'add'], [string $owner = null])
-
array
$tags: The tag ids to link to
-
string
$action: The action we want to perform with this tag.
-
string
$owner: The owner we want to filter the results by
Retrieve the list of used tag_names, tag_ids and the total number of resources that are linked to that tag.
mixed
listTagInfo
([array $tags = null], [integer $limit = 500])
-
array
$tags: An optional array of tag_ids. If omitted, all tags will be included.
-
integer
$limit: Limit the number of tags returned to this value.
List tag names that start with a given string. Used for autocompletion.
void
listTags
([ $search = ''], [ $limit = 100])
Retrieve the tags for a specified resource.
mixed
readTags
(int $resource_id, [string $resource_type = 'image'])
-
int
$resource_id: The resource to get tags for.
-
string
$resource_type: The type of resource (gallery or image)
Search for resources matching a specified set of tags and optionally limit the result set to resources owned by a specific user.
mixed
searchTags
([array $names = array()], [int $max = 10], [int $from = 0], [string $resource_type = 'all'], [string $user = null])
-
array
$names: An array of tag strings to search for.
-
int
$max: The maximum number of resources to return.
-
int
$from: The resource to start at.
-
string
$resource_type: Either 'images', 'galleries', or 'all'.
-
string
$user: Limit the result set to resources owned by specified user.
Search for resources matching the specified criteria
mixed
searchTagsById
(array $ids, [int $max = 0], [int $from = 0], [string $resource_type = 'all'], [string $user = null])
-
array
$ids: An array of tag_ids to search for.
-
int
$max: The maximum number of resources to return.
-
int
$from: The number to start from
-
string
$resource_type: Either 'images', 'galleries', or 'all'.
-
string
$user: Limit the result set to resources owned by this user.
Write out the tags for a specific resource.
mixed
writeTags
(int $resource_id, array $tags, [string $resource_type = 'image'])
-
int
$resource_id: The resource we are tagging.
-
array
$tags: An array of tags.
-
string
$resource_type: The type of resource (image or gallery)