PHP Класс Backend\Core\Engine\Base\AjaxAction

Наследование: extends Object
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
execute ( ) : Response Execute the action
getContent ( ) : Response Since the display action in the backend is rather complicated and we want to make this work with our Kernel, I've added this getContent method to extract the output from the actual displaying.
output ( integer $statusCode, mixed $data = null, string $message = null ) Output an answer to the browser

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

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

Execute the action
public execute ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

With this function we'll be able to get the content and return it as a Symfony output object.
public getContent ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

Output an answer to the browser
public output ( integer $statusCode, mixed $data = null, string $message = null )
$statusCode integer The status code for the response, use the available constants: self::OK, self::BAD_REQUEST, self::FORBIDDEN, self::ERROR
$data mixed The data to output.
$message string The text-message to send.