Beta version

class TagHandler

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

at line 46
Tag getTag()

Return Value

Tag

at line 56
$this setTag(Tag $tag)

Parameters

Tag $tag

Return Value

$this

at line 67
__construct(Tag $tag)

Create a new tag handler with tag to handle.

Parameters

Tag $tag

at line 90
$this removeAssociations()

Remove only current tag associations.

Return Value

$this

at line 104
$this removeWithChildrenAndAssociations()

Remove current tag with its children recursively and its associations.

Return Value

$this

at line 122
array getAvailableTranslations()

Return Value

array Array of Translation

at line 142
array getAvailableTranslationsId()

Return Value

array Array of Translation id

at line 168
array getUnavailableTranslations()

Return Value

array Array of Translation

at line 186
array getUnavailableTranslationsId()

Return Value

array Array of Translation id

at line 212
array getParents()

Return every tag’s parents.

Return Value

array

at line 234
string getFullPath()

Get tag full path using tag names.

Return Value

string

at line 253
int cleanPositions()

Clean position for current tag siblings.

Return Value

int Return the next position after the last tag

at line 267
int cleanChildrenPositions()

Reset current tag children positions.

Return Value

int Return the next position after the last tag

at line 286
static int cleanRootTagsPositions()

Reset every root tags positions.

Return Value

int Return the next position after the last tag