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