class NodeTreeWidget extends AbstractWidget (View source)

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

[email protected]}

Constants

SESSION_ITEM_PER_PAGE

Properties

protected $controller from AbstractWidget
protected $request from AbstractWidget
protected $parentNode
protected $nodes
protected $tag
protected $translation
protected $availableTranslations
protected $stackTree
protected $filters
protected $canReorder

Methods

Request
getRequest()

No description

getController()

No description

__construct(Request $request, Controller $refereeController, Node $parent = null, Translation $translation = null)

No description

Tag
getTag()

No description

$this
setTag(Tag $tag)

No description

boolean
isStackTree()

No description

$this
setStackTree(boolean $newstackTree)

No description

getRootListManager()

Fill twig assignation array with NodeTree entities.

getListManager(Node $parent = null, bool $subRequest = false)

No description

array
getChildrenNodes(Node $parent = null, bool $subRequest = false)

No description

getRootNode()

No description

array|null
getFilters()

Get entity list manager filters.

getTranslation()

No description

array
getAvailableTranslations()

No description

ArrayCollection
getNodes()

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, Node $parent = null, Translation $translation = null)

Parameters

Request $request Current kernel request
Controller $refereeController Referee controller to get Twig, security context from.
Node $parent Entry point of NodeTreeWidget, set null if it's root
Translation $translation NodeTree translation

Tag getTag()

Return Value

Tag

$this setTag(Tag $tag)

Parameters

Tag $tag

Return Value

$this

boolean isStackTree()

Return Value

boolean

$this setStackTree(boolean $newstackTree)

Parameters

boolean $newstackTree

Return Value

$this

protected getRootListManager()

Fill twig assignation array with NodeTree entities.

protected EntityListManager getListManager(Node $parent = null, bool $subRequest = false)

Parameters

Node $parent
bool $subRequest Default: false

Return Value

EntityListManager

array getChildrenNodes(Node $parent = null, bool $subRequest = false)

Parameters

Node $parent
bool $subRequest Default: false

Return Value

array

Node getRootNode()

Return Value

Node

array|null getFilters()

Get entity list manager filters.

Call getNodes() first to populate this.

Return Value

array|null

Translation getTranslation()

Return Value

Translation

array getAvailableTranslations()

Return Value

array

ArrayCollection getNodes()

Return Value

ArrayCollection

boolean getCanReorder()

Gets the value of canReorder.

Return Value

boolean