class TagHandler extends AbstractHandler (View source)

Handle operations with tags entities.

Properties

protected ObjectManager $objectManager from AbstractHandler

Methods

ObjectManager
getObjectManager()

No description

setObjectManager(ObjectManager $objectManager)

No description

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

int
cleanPositions(bool $setPositions = true)

Clean position for current tag siblings.

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
cleanChildrenPositions(bool $setPositions = true)

Reset current tag children positions.

int
cleanRootTagsPositions(bool $setPositions = true)

Reset every root tags positions.

Details

ObjectManager getObjectManager()

Return Value

ObjectManager

AbstractHandler setObjectManager(ObjectManager $objectManager)

Parameters

ObjectManager $objectManager

Return Value

AbstractHandler

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

Parameters

ObjectManager $objectManager

int cleanPositions(bool $setPositions = true)

Clean position for current tag siblings.

Parameters

bool $setPositions

Return Value

int Return the next position after the last entity

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 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