Beta version

class Tag extends AbstractDateTimedPositioned

Tags are hierarchical entities used to qualify Nodes.

Traits

Trait which describe a positioned entity

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
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.

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

Tag
getParent()

No description

$this
setParent(Tag $parent = null)

No description

ArrayCollection
getChildren()

No description

$this
addChild(Tag $child)

No description

$this
removeChild(Tag $child)

No description

ArrayCollection
getTranslatedTags()

No description

Collection
getTranslatedTagsByTranslation(Translation $translation)

No description

__construct()

Create a new Tag.

string
getOneLineSummary()

No description

getHandler()

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

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

in PositionedTrait at line 45
float getPosition()

Return Value

float

in PositionedTrait at line 58
$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

at line 62
string getTagName()

Return Value

string

at line 71
$this setTagName(string $tagName)

Parameters

string $tagName

Return Value

$this

at line 86
string getDirtyTagName()

Gets the value of dirtyTagName.

Return Value

string

at line 114
boolean isVisible()

Return Value

boolean

at line 123
$this setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

$this

at line 137
boolean isLocked()

Return Value

boolean

at line 146
$this setLocked(boolean $locked)

Parameters

boolean $locked

Return Value

$this

at line 162
ArrayCollection getNodes()

Return Value

ArrayCollection

at line 177
Tag getParent()

Return Value

Tag parent

at line 187
$this setParent(Tag $parent = null)

Parameters

Tag $parent

Return Value

$this

at line 204
ArrayCollection getChildren()

Return Value

ArrayCollection

at line 213
$this addChild(Tag $child)

Parameters

Tag $child

Return Value

$this

at line 226
$this removeChild(Tag $child)

Parameters

Tag $child

Return Value

$this

at line 243
ArrayCollection getTranslatedTags()

Return Value

ArrayCollection

at line 252
Collection getTranslatedTagsByTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

Collection

at line 263
__construct()

Create a new Tag.

at line 273
string getOneLineSummary()

Return Value

string

at line 282
TagHandler getHandler()

Return Value

TagHandler

at line 292
string getColor()

Gets the value of color.

Return Value

string

at line 304
Tag setColor(string $color)

Sets the value of color.

Parameters

string $color the color

Return Value

Tag

at line 316
mixed getChildrenOrder()

Gets the value of childrenOrder.

Return Value

mixed

at line 328
Tag setChildrenOrder(mixed $childrenOrder)

Sets the value of childrenOrder.

Parameters

mixed $childrenOrder the children order

Return Value

Tag

at line 340
mixed getChildrenOrderDirection()

Gets the value of childrenOrderDirection.

Return Value

mixed

at line 352
Tag setChildrenOrderDirection(mixed $childrenOrderDirection)

Sets the value of childrenOrderDirection.

Parameters

mixed $childrenOrderDirection the children order direction

Return Value

Tag