class TagSet (View source)

Methods

void
__construct( Store $store, array $names = array())

Create a new TagSet instance.

void
reset()

Reset all tags in the set.

string
tagId( string $name)

Get the unique tag identifier for a given tag.

string
getNamespace()

Get a unique namespace that changes when any of the tags are flushed.

string
resetTag( string $name)

Reset the tag and return the new tag identifier.

string
tagKey( string $name)

Get the tag identifier key for a given tag.

array
getNames()

Get all of the tag names in the set.

Details

at line line 30
void __construct( Store $store, array $names = array())

Create a new TagSet instance.

Parameters

Store $store
array $names

Return Value

void

at line line 41
void reset()

Reset all tags in the set.

Return Value

void

at line line 52
string tagId( string $name)

Get the unique tag identifier for a given tag.

Parameters

string $name

Return Value

string

at line line 72
string getNamespace()

Get a unique namespace that changes when any of the tags are flushed.

Return Value

string

at line line 83
string resetTag( string $name)

Reset the tag and return the new tag identifier.

Parameters

string $name

Return Value

string

at line line 96
string tagKey( string $name)

Get the tag identifier key for a given tag.

Parameters

string $name

Return Value

string

at line line 106
array getNames()

Get all of the tag names in the set.

Return Value

array