Class TreeView.
ajaxTreeView(string $rootId, string $providerName, int $level) : string
string
Id of the root node.
string
Name of the data provider where the model is contained within.
int
Level depth of the model in the whole tree.
string
enforceModelRelationship($model)
handleAjaxCall() : void
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
loadCollection(string $rootId, int $intLevel, string $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
string
The root element (or null to fetch everything).
int
The current level in the tree (of the optional root element).
string
The 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\GetPasteRootButtonEvent
The event that has been triggered.
string
showAll(\ContaoCommunityAlliance\DcGeneral\Action $action)
calcLabelFields(string $strTable) : array
string
The name of the data provider.
array
generateTreeView(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objCollection, string $treeClass) : string
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
The collection to iterate over.
string
The class to use for the tree.
string
getToggleId() : string
string
getTreeNodeStates() : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
isModelOpen(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : bool
bool
loadParentModel() : \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
string
The id of the toggler.
string
saveTreeNodeStates(\ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates $states) : void
viewTree(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : string
string
handleNodeStateChanges() : void
toggleModel(string $providerName, mixed $modelId) : void
string
The data provider name.
mixed
The id of the model.