class TagHandler (View source)

Handle operations with tags entities.

Methods

Tag
getTag()

No description

$this
setTag(Tag $tag)

No description

__construct(Tag $tag)

Create a new tag handler with tag to handle.

$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()

Return every tag’s parents.

string
getFullPath()

Get tag full path using tag names.

int
cleanPositions()

Clean position for current tag siblings.

int
cleanChildrenPositions()

Reset current tag children positions.

static int
cleanRootTagsPositions()

Reset every root tags positions.

Details

Tag getTag()

Return Value

Tag

$this setTag(Tag $tag)

Parameters

Tag $tag

Return Value

$this

__construct(Tag $tag)

Create a new tag handler with tag to handle.

Parameters

Tag $tag

$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()

Return every tag’s parents.

Return Value

array

string getFullPath()

Get tag full path using tag names.

Return Value

string

int cleanPositions()

Clean position for current tag siblings.

Return Value

int Return the next position after the last tag

int cleanChildrenPositions()

Reset current tag children positions.

Return Value

int Return the next position after the last tag

static int cleanRootTagsPositions()

Reset every root tags positions.

Return Value

int Return the next position after the last tag