PHP 클래스 AjaxRequest, generatedata

Usually called like this $incomingAjax = new AjaxRequest($_REQUEST) get parameters of request via echo $incomingAjax->getParameter("someAttribute");
파일 보기 프로젝트 열기: benkeen/generatedata 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )