W3cubDocs

/Laravel 5.4

TagSet

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 resetTag(string $name)

Reset the tag and return the new tag identifier.

string getNamespace()

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

string tagId(string $name)

Get the unique tag identifier for a given tag.

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

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

Create a new TagSet instance.

Parameters

Store $store
array $names

Return Value

void

void reset()

Reset all tags in the set.

Return Value

void

string resetTag(string $name)

Reset the tag and return the new tag identifier.

Parameters

string $name

Return Value

string

string getNamespace()

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

Return Value

string

string tagId(string $name)

Get the unique tag identifier for a given tag.

Parameters

string $name

Return Value

string

string tagKey(string $name)

Get the tag identifier key for a given tag.

Parameters

string $name

Return Value

string

array getNames()

Get all of the tag names in the set.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Cache/TagSet.html