PHP Class Contao\Ajax

Provide methods to handle Ajax requests.
Inheritance: extends Backend
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$strAction string Ajax action
$strAjaxId string Ajax id
$strAjaxKey string Ajax key
$strAjaxName string Ajax name

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
convertToResponse ( string $str ) : Response Convert a string to a response object
executePostActionsHook ( DataContainer $dc ) Execute the post actions hook

Method Details

__construct() public méthode

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

convertToResponse() protected méthode

Convert a string to a response object
protected convertToResponse ( string $str ) : Response
$str string
Résultat Symfony\Component\HttpFoundation\Response

executePostActions() public méthode

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

executePostActionsHook() protected méthode

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

executePreActions() public méthode

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

Property Details

$strAction protected_oe property

Ajax action
protected string $strAction
Résultat string

$strAjaxId protected_oe property

Ajax id
protected string $strAjaxId
Résultat string

$strAjaxKey protected_oe property

Ajax key
protected string $strAjaxKey
Résultat string

$strAjaxName protected_oe property

Ajax name
protected string $strAjaxName
Résultat string