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

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

 Methods

Create a new instance.

__construct() 

Handle the post actions from DcGeneral.

executePostActions(\ContaoCommunityAlliance\DcGeneral\DataContainerInterface $objDc) : void
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

{@inheritdoc}

getEnvironment() 

Convenience method to exit the script.

exitScript() : void
Will get called from subclasses to have a central endpoint to exit the script.
SuppressWarnings (PHPMD.ExitExpression) - The whole purpose of the method is the exit expression.

Retrieve the ajax id.

getAjaxId() : string
deprecated

Returns

string

Retrieve the ajax id.

getAjaxKey() : string
deprecated

Returns

string

Retrieve the ajax name.

getAjaxName() : string
deprecated

Returns

string

Compat wrapper for contao 2.X and 3.X - delegates to the relevant input handler.

getGet(string $key, bool $blnDecodeEntities) : mixed

Parameters

$key

string

The key to retrieve.

$blnDecodeEntities

bool

Decode the entities.

Returns

mixed

Compatibility wrapper for contao 2.X and 3.X - delegates to the relevant input handler.

getPost(string $key, bool $blnDecodeEntities) : mixed

Parameters

$key

string

The key to retrieve.

$blnDecodeEntities

bool

Decode the entities.

Returns

mixed

Load a file manager tree structure.

loadFileManager() : void
This method exits the script!

Load the file tree.

loadFiletree() : mixed

Returns

mixed

Load the page tree.

loadPagetree() : mixed

Returns

mixed

Load a tree structure.

loadStructure() : void
This method exits the script!

Reload a file tree.

reloadFiletree() : void
This method exits the script.

Reload a page tree.

reloadPagetree() : void
This method exits the script.

 Properties

 

The data container calling us.

$objDc : \ContaoCommunityAlliance\DcGeneral\DataContainerInterface