Class GeneralAjax - General purpose Ajax handler for "executePostActions" in Contao 3.X as we can not use the default Contao handling.

See Contao core issue #5957. https://github.com/contao/core/pull/5957

 Methods

Retrieve a model from a serialized id.

getModelFromSerializedId(string $serializedId) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
Exits the script if no model has been found.

Parameters

$serializedId

string

The serialized id.

Returns

Retrieve the value as serialized array.

getTreeValue(string $strType, string $varValue) : string
If the type is "file", the file names will automatically be added to the Dbafs and converted to file id.

Parameters

$strType

string

Either "page" or "file".

$varValue

string

The value as comma separated list.

Returns

stringThe value array.

Get the widget instance.

getWidget(string $fieldName, string $serializedId, string $propertyValue) : \Widget

Parameters

$fieldName

string

The property name.

$serializedId

string

The serialized id of the model.

$propertyValue

string

The property value.

Returns

{@inheritDoc}

loadFiletree() 
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

{@inheritDoc}

loadPagetree() 
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

{@inheritDoc}

reloadFiletree() 

{@inheritDoc}

reloadPagetree() 

Reload the file tree.

reloadTree() : void