PHP Класс Voodoo\Core\Http\Request

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getGetParams ( ) : array Return the $_GET
getIp ( ) : string Return the request ip
getMethod ( ) : string Return the request method
getParams ( ) : Array Return all the params
getPostParams ( ) : array Return the $_POST
getSegment ( $key = null, $offset, array $segmentsArr = null ) : mixed Segements are part of the URL separated by / ie: /gummy/bear/?q=hello 'gummy' and 'bear' are segments.
getUrlSegments ( ) : array Return segments of the URL Segments are part of the URL separated by a slash /
is ( string $method = "POST" ) To check the request Method
isAjax ( ) : boolean Verify is the access is from ajax.

Описание методов

getGetParams() публичный статический Метод

Return the $_GET
public static getGetParams ( ) : array
Результат array

getIp() публичный статический Метод

Return the request ip
public static getIp ( ) : string
Результат string

getMethod() публичный статический Метод

Return the request method
public static getMethod ( ) : string
Результат string

getParams() публичный статический Метод

Return all the params
public static getParams ( ) : Array
Результат Array

getPostParams() публичный статический Метод

Return the $_POST
public static getPostParams ( ) : array
Результат array

getSegment() публичный статический Метод

Segements are part of the URL separated by / ie: /gummy/bear/?q=hello 'gummy' and 'bear' are segments.
public static getSegment ( $key = null, $offset, array $segmentsArr = null ) : mixed
$segmentsArr array the array segments to use
Результат mixed

getUrlSegments() публичный статический Метод

Return segments of the URL Segments are part of the URL separated by a slash /
public static getUrlSegments ( ) : array
Результат array

is() публичный статический Метод

To check the request Method
public static is ( string $method = "POST" )
$method string

isAjax() публичный статический Метод

Verify is the access is from ajax.
public static isAjax ( ) : boolean
Результат boolean