Provide methods to handle input field "tableTree".
__construct(array $attributes, \ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer)
array
The custom attributes.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When not in Backend mode. |
---|
__get(string $strKey) : string
string
The property name.
string
The property value.__set(string $strKey, mixed $varValue) : void
string
The key to set.
mixed
The value.
\RuntimeException |
When an unknown field type is encountered. |
---|
formatModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, bool $treeMode) : array
bool
Flag if we are running in tree mode or not (optional, default: true).
array
generate() : string
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
string
generateAjax() : void
SuppressWarnings | (PHPMD.ExitExpression) |
---|
generatePopup() : string
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
string
getEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
getItemContainer() : \ContaoCommunityAlliance\DcGeneral\DC_General
getSearchSessionKey() : string
string
getTreeCollectionRecursive(array $rootId, int $intLevel, 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.
getTreeNodeStates() : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
isSearchAvailable() : bool
bool
loadCollection(mixed $rootId, int $intLevel, null $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
mixed
The root element (or null to fetch everything).
int
The current level in the tree (of the optional root element).
null
The data provider from which the optional root element shall be taken from.
renderItemsPlain() : array
array
updateAjax(string $ajaxAction, \ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer) : string
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
SuppressWarnings | (PHPMD.ExitExpression) |
string
Not used in here.
string
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.
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
getFormatter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, bool $treeMode) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model for which the formatter shall be retrieved.
bool
Flag if we are running in tree mode or not.
getToggleId() : string
string
parseModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strToggleID) : string
string
The id of the toggler.
string
setUp(\ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer) : void
treeWalkModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, int $intLevel, array $arrSubTables) : void
int
The current level in the tree hierarchy.
array
The names of data providers that shall be rendered "below" this item.
validator(array $varInput) : array | string
array
The current value.
array
string
convertValue(mixed $varValue) : mixed
mixed
The value to convert.
\RuntimeException |
When an unknown field type is encountered. |
---|
mixed
determineParentsOfValues() : array
array
getRootIds() : array
array
parentsOf(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $value, string[] $parents) : void
string[]
The ids of all detected parents so far.
sortValues(array $values) : array
array
The values.
array
$alwaysSave : bool
$blnSubmitInput : boolean
$fieldType : string
$itemContainer : \ContaoCommunityAlliance\DcGeneral\DC_General
$maxLevel : int
$minLevel : int
$nodeStates : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
$orderField : string
$sourceName : string
$strAjaxId : string
$strAjaxKey : string
$strAjaxName : string
$strTemplate : string
$subTemplate : string
$title : string
$titleIcon : string