FileAccess Orion

TaggableInterface

Table of Contents

clearByTags()  : bool
Remove items matching given tags.
getTags()  : array<string|int, string>|false
Get tags of an item by given key
setTags()  : bool
Set tags to an item by given key.

Methods

clearByTags()

Remove items matching given tags.

public clearByTags(array<string|int, string> $tags[, bool $disjunction = false ]) : bool

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

Parameters
$tags : array<string|int, string>
$disjunction : bool = false
Return values
bool

getTags()

Get tags of an item by given key

public getTags(string $key) : array<string|int, string>|false
Parameters
$key : string
Return values
array<string|int, string>|false

setTags()

Set tags to an item by given key.

public setTags(string $key, array<string|int, string> $tags) : bool

An empty array will remove all tags.

Parameters
$key : string
$tags : array<string|int, string>
Return values
bool

Search results