PHP Class WPDKHTTPRequest

Since: 1.3.1
Author: =undo= ([email protected])
Afficher le fichier Open project: wpxtreme/wpdk

Méthodes publiques

Méthode Description
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

Method Details

isAjax() public static méthode

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
Résultat boolean TRUE if Ajax trusted

isRequest() public static méthode

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...
Résultat boolean

isRequestGET() public static méthode

Return true if the REQUEST METHOD is GET
public static isRequestGET ( ) : boolean
Résultat boolean

isRequestPOST() public static méthode

Return true if the REQUEST METHOD is POST
public static isRequestPOST ( ) : boolean
Résultat boolean