Zend Framework  3.0
Public Member Functions | List of all members
TaggableInterface Interface Reference

Public Member Functions

 setTags ($key, array $tags)
 Set tags to an item by given key.
 
 getTags ($key)
 Get tags of an item by given key.
 
 clearByTags (array $tags, $disjunction=false)
 Remove items matching given tags.
 

Member Function Documentation

clearByTags ( array  $tags,
  $disjunction = false 
)

Remove items matching given tags.

If $disjunction only one of the given tags must match else all given tags must match.

Parameters
string[]$tags
bool$disjunction
Returns
bool

Implemented in BlackHole, Filesystem, and Memory.

getTags (   $key)

Get tags of an item by given key.

Parameters
string$key
Returns
string[]|FALSE

Implemented in BlackHole, Filesystem, and Memory.

setTags (   $key,
array  $tags 
)

Set tags to an item by given key.

An empty array will remove all tags.

Parameters
string$key
string[]$tags
Returns
bool

Implemented in BlackHole, Filesystem, and Memory.