Class TreeView.
ajaxTreeView(string $rootId, string $providerName, int $level) : string
stringId of the root node.
stringName of the data provider where the model is contained within.
intLevel depth of the model in the whole tree.
stringenforceModelRelationship($model)
handleAjaxCall() : void
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
loadCollection(string $rootId, int $intLevel, string $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
stringThe root element (or null to fetch everything).
intThe current level in the tree (of the optional root element).
stringThe data provider from which the optional root element shall be taken from.
paste(\ContaoCommunityAlliance\DcGeneral\Action $action)
renderPasteRootButton(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteRootButtonEvent $event) : string
\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteRootButtonEventThe event that has been triggered.
stringshowAll(\ContaoCommunityAlliance\DcGeneral\Action $action)
calcLabelFields(string $strTable) : array
stringThe name of the data provider.
arraygenerateTreeView(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objCollection, string $treeClass) : string
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterfaceThe collection to iterate over.
stringThe class to use for the tree.
stringgetToggleId() : string
stringgetTreeNodeStates() : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
isModelOpen(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : bool
boolloadParentModel() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the parent view requirements are not fulfilled - either no data provider defined or no parent model id given. |
|---|
parseModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strToggleID) : string
stringThe id of the toggler.
stringsaveTreeNodeStates(\ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates $states) : void
viewTree(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : string
stringhandleNodeStateChanges() : void
toggleModel(string $providerName, mixed $modelId) : void
stringThe data provider name.
mixedThe id of the model.