Class TreeView.

Implementation for tree displaying.

 Methods

Handle ajax rendering of a sub tree.

ajaxTreeView(string $rootId, string $providerName, int $level) : string

Parameters

$rootId

string

Id of the root node.

$providerName

string

Name of the data provider where the model is contained within.

$level

int

Level depth of the model in the whole tree.

Returns

string

{@inheritDoc}

enforceModelRelationship($model) 

Parameters

$model

Handle an ajax call.

handleAjaxCall() : void
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Load the collection of child items and the parent item for the currently selected parent item.

loadCollection(string $rootId, int $intLevel, string $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface

Parameters

$rootId

string

The root element (or null to fetch everything).

$intLevel

int

The current level in the tree (of the optional root element).

$providerName

string

The data provider from which the optional root element shall be taken from.

Returns

{@inheritDoc}

paste(\ContaoCommunityAlliance\DcGeneral\Action $action) 

Parameters

$action

Render the paste button for pasting into the root of the tree.

renderPasteRootButton(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteRootButtonEvent $event) : string
Static

Parameters

Returns

string

{@inheritdoc}

showAll(\ContaoCommunityAlliance\DcGeneral\Action $action) 

Parameters

$action