PHP 클래스 WPDKHTTPRequest

부터: 1.3.1
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 메소드들

메소드 설명
isAjax ( ) : boolean Return TRUE if we are called by Ajax. Used to be sure that we are responding to an HTTPRequest request and that the WordPress define DOING_AJAX is defined.
isRequest ( string $verb ) : boolean Return true if the $verb param in input match with REQUEST METHOD
isRequestGET ( ) : boolean Return true if the REQUEST METHOD is GET
isRequestPOST ( ) : boolean Return true if the REQUEST METHOD is POST

메소드 상세

isAjax() 공개 정적인 메소드

Return TRUE if we are called by Ajax. Used to be sure that we are responding to an HTTPRequest request and that the WordPress define DOING_AJAX is defined.
public static isAjax ( ) : boolean
리턴 boolean TRUE if Ajax trusted

isRequest() 공개 정적인 메소드

Return true if the $verb param in input match with REQUEST METHOD
public static isRequest ( string $verb ) : boolean
$verb string The verb, for instance; GET, WPDKHTTPVerbs::GET, delete, etc...
리턴 boolean

isRequestGET() 공개 정적인 메소드

Return true if the REQUEST METHOD is GET
public static isRequestGET ( ) : boolean
리턴 boolean

isRequestPOST() 공개 정적인 메소드

Return true if the REQUEST METHOD is POST
public static isRequestPOST ( ) : boolean
리턴 boolean