class TagTreeWidget extends AbstractWidget (View source)

Prepare a Tag tree according to Tag hierarchy and given options.

Properties

protected $controller from AbstractWidget
protected $request from AbstractWidget
protected $parentTag
protected $tags
protected $translation
protected $canReorder

Methods

Request
getRequest()

No description

getController()

No description

__construct(Request $request, Controller $refereeController, Tag $parent = null)

No description

getTagTreeAssignationForParent()

Fill twig assignation array with TagTree entities.

ArrayCollection
getChildrenTags(Tag $parent)

No description

Tag
getRootTag()

No description

getTranslation()

No description

ArrayCollection
getTags()

No description

boolean
getCanReorder()

Gets the value of canReorder.

Details

protected Request getRequest()

Return Value

Request

protected Controller getController()

Return Value

Controller

__construct(Request $request, Controller $refereeController, Tag $parent = null)

Parameters

Request $request Current kernel request
Controller $refereeController Referee controller to get Twig, security context from.
Tag $parent

protected getTagTreeAssignationForParent()

Fill twig assignation array with TagTree entities.

ArrayCollection getChildrenTags(Tag $parent)

Parameters

Tag $parent

Return Value

ArrayCollection

Tag getRootTag()

Return Value

Tag

Translation getTranslation()

Return Value

Translation

ArrayCollection getTags()

Return Value

ArrayCollection

boolean getCanReorder()

Gets the value of canReorder.

Return Value

boolean