\Ansel_Tagger

The Ansel_Tagger:: class wraps Ansel's interaction with the Content/Tagger system.

Copyright 2010-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.

Summary

Methods
Properties
Constants
search()
listRelatedImages()
No public properties found
No constants found
No protected methods found
$_app
$_types
N/A
No private methods found
No private properties found
N/A

Properties

$_app

$_app : 

Type

$_types

$_types : 

Type

Methods

search()

search(array  $tags, array  $filter = array()) : \A

Searches for resources that are tagged with all of the requested tags.

Parameters

array $tags

Either a tag_id, tag_name or an array.

array $filter

Array of filter parameters.

  • type (string) - 'gallery' or 'image'
  • user (array) - only include objects owned by these users.

Throws

\Ansel_Exception

Returns

\A —

hash of 'gallery' and 'image' ids.

listRelatedImages()

listRelatedImages(\Ansel_Image  $image, \bolean  $ownerOnly = true) : array

List image ids of images related (via similar tags) to the specified image

Parameters

\Ansel_Image $image

The image to get related images for.

\bolean $ownerOnly

Only return images owned by the specified image's owner.

Returns

array —

An array of 'image' and 'rank' keys..