Wrapper class for tree node states.
__construct(array $states, array $implicitOpen)
arrayThe initial state array (optional, if not given, the state information will be empty).
arrayList of implicit open nodes (selected values, if not given, the state information will be empty).
getImplicitOpen() : array
arraygetStates() : array
isAllOpen() : boolean
booleanisModelOpen(string $providerName, mixed $modelId, bool $ignoreAllState) : bool
stringThe data provider name.
mixedThe id of the model.
boolIf this is true, the "all open" flag will be ignored.
boolresetAll() : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
setAllOpen(boolean $allOpen) : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
booleanThe flag.
setImplicitOpen(array $implicitOpen) : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
arrayThe state array.
setModelState(string $providerName, mixed $modelId, bool $state) : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
stringThe data provider name.
mixedThe id of the model.
boolThe new state for the model.
setStates(array $states) : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
toggleModel(string $providerName, mixed $modelId) : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
stringThe data provider name.
mixedThe id of the model.
$implicitOpen : array
$states : array