PHP Класс Contao\Ajax

Provide methods to handle Ajax requests.
Наследование: extends Backend
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$strAction string Ajax action
$strAjaxId string Ajax id
$strAjaxKey string Ajax key
$strAjaxName string Ajax name

Открытые методы

Метод Описание
__construct ( string $strAction ) Get the current action
executePostActions ( DataContainer $dc ) Ajax actions that do require a data container object
executePreActions ( ) Ajax actions that do not require a data container object

Защищенные методы

Метод Описание
convertToResponse ( string $str ) : Response Convert a string to a response object
executePostActionsHook ( DataContainer $dc ) Execute the post actions hook

Описание методов

__construct() публичный Метод

Get the current action
public __construct ( string $strAction )
$strAction string

convertToResponse() защищенный Метод

Convert a string to a response object
protected convertToResponse ( string $str ) : Response
$str string
Результат Symfony\Component\HttpFoundation\Response

executePostActions() публичный Метод

Ajax actions that do require a data container object
public executePostActions ( DataContainer $dc )
$dc DataContainer

executePostActionsHook() защищенный Метод

Execute the post actions hook
protected executePostActionsHook ( DataContainer $dc )
$dc DataContainer

executePreActions() публичный Метод

Ajax actions that do not require a data container object
public executePreActions ( )

Описание свойств

$strAction защищенное свойство

Ajax action
protected string $strAction
Результат string

$strAjaxId защищенное свойство

Ajax id
protected string $strAjaxId
Результат string

$strAjaxKey защищенное свойство

Ajax key
protected string $strAjaxKey
Результат string

$strAjaxName защищенное свойство

Ajax name
protected string $strAjaxName
Результат string