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)
array
The sorting information.
getChildrenOf(string $providerName, int $level, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $parentModel) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
string
The data provider from which the root element originates from.
int
The level in the tree (TODO: isn't this always 0?).
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The optional parent model (mode 4 parent).
getEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
getPanel() : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface
getSorting() : array
array
getTreeCollectionRecursive(array $rootId, int $level, string $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
array
The ids of the root node.
int
The level the items are residing on.
string
The 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\ModelInterface
The model of which the state shall be checked of.
int
The tree level the model is contained within.
getChildProvidersOf(string $parentProvider, null|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterface $relationships) : array
string
The name of the parent provider.
null
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterface
The relationship information (optional).
array
getChildrenOfModel(\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\ParentChildConditionInterface
The condition.
treeWalkModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, int $intLevel, array $subTables) : void
int
The current level in the tree hierarchy.
array
The names of data providers that shall be rendered "below" this item.
$panel : \ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface
$sorting : array
$states : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates