PHP Класс WPDKHTTPRequest

С версии: 1.3.1
Автор: =undo= ([email protected])
Показать файл Открыть проект

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

Метод Описание
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