class TagHandler extends AbstractHandler (View source)

Handle operations with tags entities.

Methods

Tag
getTag()

No description

$this
setTag(Tag $tag)

No description

$this
removeAssociations()

Remove only current tag associations.

$this
removeWithChildrenAndAssociations()

Remove current tag with its children recursively and its associations.

array
getAvailableTranslations()

No description

array
getAvailableTranslationsId()

No description

array
getUnavailableTranslations()

No description

array
getUnavailableTranslationsId()

No description

array
getParents() deprecated

Return every tag’s parents.

string
getFullPath() deprecated

Get tag full path using tag names.

int
cleanPositions(bool $setPositions = true)

Clean position for current tag siblings.

int
cleanChildrenPositions(bool $setPositions = true)

Reset current tag children positions.

int
cleanRootTagsPositions(bool $setPositions = true)

Reset every root tags positions.

Details

Tag getTag()

Return Value

Tag

$this setTag(Tag $tag)

Parameters

Tag $tag

Return Value

$this

$this removeAssociations()

Remove only current tag associations.

Return Value

$this

$this removeWithChildrenAndAssociations()

Remove current tag with its children recursively and its associations.

Return Value

$this

array getAvailableTranslations()

Return Value

array Array of Translation

array getAvailableTranslationsId()

Return Value

array Array of Translation id

array getUnavailableTranslations()

Return Value

array Array of Translation

array getUnavailableTranslationsId()

Return Value

array Array of Translation id

array getParents() deprecated

deprecated Use directly Tag::getParents

Return every tag’s parents.

Return Value

array

string getFullPath() deprecated

deprecated Use directly Tag::getFullPath

Get tag full path using tag names.

Return Value

string

int cleanPositions(bool $setPositions = true)

Clean position for current tag siblings.

Parameters

bool $setPositions

Return Value

int Return the next position after the last tag

int cleanChildrenPositions(bool $setPositions = true)

Reset current tag children positions.

Warning, this method does not flush.

Parameters

bool $setPositions

Return Value

int Return the next position after the last tag

int cleanRootTagsPositions(bool $setPositions = true)

Reset every root tags positions.

Warning, this method does not flush.

Parameters

bool $setPositions

Return Value

int Return the next position after the last tag