class Tag extends AbstractDateTimedPositioned implements LeafInterface (View source)

Tags are hierarchical entities used to qualify Nodes.

Traits

Trait which describe a positioned entity
Trait which describe a positioned entity

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed
protected $position from AbstractDateTimedPositioned
protected $color
protected Tag $parent
protected ArrayCollection $children

Methods

int
getId()

No description

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

resetDates()

Set creation and update date to now.

float
getPosition()

No description

$this
setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Collection
getChildren()

No description

from LeafTrait
$this
addChild(LeafInterface $child)

No description

from LeafTrait
$this
removeChild(LeafInterface $child)

No description

from LeafTrait
getParent()

No description

from LeafTrait
$this
setParent(LeafInterface $parent = null)

No description

from LeafTrait
getParents()

Return every tag’s parents.

from LeafTrait
int
getDepth()

Gets the nodes depth.

from LeafTrait
getIterator()

{@inheritdoc}

from LeafTrait
count()

{@inheritdoc}

from LeafTrait
string
getTagName()

No description

$this
setTagName(string $tagName)

No description

string
getDirtyTagName()

Gets the value of dirtyTagName.

boolean
isVisible()

No description

$this
setVisible(boolean $visible)

No description

boolean
isLocked()

No description

$this
setLocked(boolean $locked)

No description

ArrayCollection
getNodes()

No description

string
getFullPath()

Get tag full path using tag names.

ArrayCollection
getTranslatedTags()

No description

Collection
getTranslatedTagsByTranslation(Translation $translation)

No description

__construct()

Create a new Tag.

string
getOneLineSummary()

No description

string
getColor()

Gets the value of color.

Tag
setColor(string $color)

Sets the value of color.

mixed
getChildrenOrder()

Gets the value of childrenOrder.

Tag
setChildrenOrder(mixed $childrenOrder)

Sets the value of childrenOrder.

mixed
getChildrenOrderDirection()

Gets the value of childrenOrderDirection.

Tag
setChildrenOrderDirection(mixed $childrenOrderDirection)

Sets the value of childrenOrderDirection.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

DateTime getCreatedAt()

Return Value

DateTime

AbstractDateTimed setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractDateTimed

DateTime getUpdatedAt()

Return Value

DateTime

AbstractDateTimed setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractDateTimed

preUpdate()

prePersist()

AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity

float getPosition()

Return Value

float

$this setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Parameters

float $newPosition

Return Value

$this

Collection getChildren()

Return Value

Collection

$this addChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

$this

$this removeChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

$this

LeafInterface getParent()

Return Value

LeafInterface parent

$this setParent(LeafInterface $parent = null)

Parameters

LeafInterface $parent

Return Value

$this

LeafInterface[] getParents()

Return every tag’s parents.

Return Value

LeafInterface[]

int getDepth()

Gets the nodes depth.

Return Value

int

getIterator()

{@inheritdoc}

count()

{@inheritdoc}

string getTagName()

Return Value

string

$this setTagName(string $tagName)

Parameters

string $tagName

Return Value

$this

string getDirtyTagName()

Gets the value of dirtyTagName.

Return Value

string

boolean isVisible()

Return Value

boolean

$this setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

$this

boolean isLocked()

Return Value

boolean

$this setLocked(boolean $locked)

Parameters

boolean $locked

Return Value

$this

ArrayCollection getNodes()

Return Value

ArrayCollection

string getFullPath()

Get tag full path using tag names.

Return Value

string

ArrayCollection getTranslatedTags()

Return Value

ArrayCollection

Collection getTranslatedTagsByTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

Collection

__construct()

Create a new Tag.

string getOneLineSummary()

Return Value

string

string getColor()

Gets the value of color.

Return Value

string

Tag setColor(string $color)

Sets the value of color.

Parameters

string $color the color

Return Value

Tag

mixed getChildrenOrder()

Gets the value of childrenOrder.

Return Value

mixed

Tag setChildrenOrder(mixed $childrenOrder)

Sets the value of childrenOrder.

Parameters

mixed $childrenOrder the children order

Return Value

Tag

mixed getChildrenOrderDirection()

Gets the value of childrenOrderDirection.

Return Value

mixed

Tag setChildrenOrderDirection(mixed $childrenOrderDirection)

Sets the value of childrenOrderDirection.

Parameters

mixed $childrenOrderDirection the children order direction

Return Value

Tag