PHP Class AjaxRequest, generatedata

Usually called like this $incomingAjax = new AjaxRequest($_REQUEST) get parameters of request via echo $incomingAjax->getParameter("someAttribute");
Show file Open project: benkeen/generatedata Class Usage Examples

Public Methods

Method Description
__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

Private Methods

Method Description
installCountries ( )
installDataTypes ( )
installExportTypes ( )

Method Details

__construct() public method

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() public method

HELPERS
public getResponse ( )