Generic class to retrieve a tree collection for tree views.
__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface $panel, array $sorting, \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates $states)
arrayThe sorting information.
getChildrenOf(string $providerName, int $level, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
stringThe data provider from which the root element originates from.
intThe level in the tree (TODO: isn't this always 0?).
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe optional parent model (mode 4 parent).
getEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
getPanel() : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface
getSorting() : array
arraygetTreeCollectionRecursive(array $rootId, int $level, string $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
arrayThe ids of the root node.
intThe level the items are residing on.
stringThe data provider from which the root element originates from.
addParentFilter(\ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $config, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : void
calculateRootConfig() : \ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface
determineModelState(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, int $level) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model of which the state shall be checked of.
intThe tree level the model is contained within.
getChildProvidersOf(string $parentProvider, null|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterface $relationships) : array
stringThe name of the parent provider.
null\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterfaceThe relationship information (optional).
arraygetChildrenOfModel(\ContaoCommunityAlliance\DcGeneral\Data\DataProviderInterface $dataProvider, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface $childCondition) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface | null
\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterfaceThe condition.
treeWalkModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, int $intLevel, array $subTables) : void
intThe current level in the tree hierarchy.
arrayThe names of data providers that shall be rendered "below" this item.
$panel : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface
$sorting : array
$states : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates