Provide methods to handle input field "tableTree".
__construct(array $attributes, \ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer)
arrayThe custom attributes.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When not in Backend mode. |
|---|
__get(string $strKey) : string
stringThe property name.
stringThe property value.__set(string $strKey, mixed $varValue) : void
stringThe key to set.
mixedThe value.
\RuntimeException |
When an unknown field type is encountered. |
|---|
formatModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, bool $treeMode) : array
boolFlag if we are running in tree mode or not (optional, default: true).
arraygenerate() : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringgenerateAjax() : void
| SuppressWarnings | (PHPMD.ExitExpression) |
|---|
generatePopup() : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
stringgetEnvironment() : \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface
getItemContainer() : \ContaoCommunityAlliance\DcGeneral\DC_General
getSearchSessionKey() : string
stringgetTreeCollectionRecursive(array $rootId, int $intLevel, 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.
getTreeNodeStates() : \ContaoCommunityAlliance\DcGeneral\Controller\TreeNodeStates
isSearchAvailable() : bool
boolloadCollection(mixed $rootId, int $intLevel, null $providerName) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
mixedThe root element (or null to fetch everything).
intThe current level in the tree (of the optional root element).
nullThe data provider from which the optional root element shall be taken from.
renderItemsPlain() : array
arrayupdateAjax(string $ajaxAction, \ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer) : string
| SuppressWarnings | (PHPMD.Superglobals) |
|---|---|
| SuppressWarnings | (PHPMD.CamelCaseVariableName) |
| SuppressWarnings | (PHPMD.ExitExpression) |
stringNot used in here.
stringdetermineModelState(\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.
generateTreeView(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $objCollection, string $treeClass) : string
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterfaceThe collection to iterate over.
stringThe class to use for the tree.
stringgetFormatter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, bool $treeMode) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfaceThe model for which the formatter shall be retrieved.
boolFlag if we are running in tree mode or not.
getToggleId() : string
stringparseModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, string $strToggleID) : string
stringThe id of the toggler.
stringsetUp(\ContaoCommunityAlliance\DcGeneral\DC_General $dataContainer) : void
treeWalkModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel, int $intLevel, array $arrSubTables) : void
intThe current level in the tree hierarchy.
arrayThe names of data providers that shall be rendered "below" this item.
validator(array $varInput) : array | string
arrayThe current value.
arraystring
convertValue(mixed $varValue) : mixed
mixedThe value to convert.
\RuntimeException |
When an unknown field type is encountered. |
|---|
mixeddetermineParentsOfValues() : array
arraygetRootIds() : array
arrayparentsOf(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $value, string[] $parents) : void
string[]The ids of all detected parents so far.
sortValues(array $values) : array
arrayThe 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