PHP Класс AjaxRequest, generatedata

Usually called like this $incomingAjax = new AjaxRequest($_REQUEST) get parameters of request via echo $incomingAjax->getParameter("someAttribute");
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $action, $post = [] ) AjaxRequest objects are automatically processed when they are created, based on the unique $action value. The result of the call is stored in $response to be handled however you need (e.g. output as JSON, XML etc) - or an Exception is thrown if something went wrong. Exceptions are used SOLELY for program errors: not for user-entry errors.
getResponse ( ) HELPERS

Приватные методы

Метод Описание
installCountries ( )
installDataTypes ( )
installExportTypes ( )

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

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

AjaxRequest objects are automatically processed when they are created, based on the unique $action value. The result of the call is stored in $response to be handled however you need (e.g. output as JSON, XML etc) - or an Exception is thrown if something went wrong. Exceptions are used SOLELY for program errors: not for user-entry errors.
public __construct ( $action, $post = [] )

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

HELPERS
public getResponse ( )