PHP Class Voodoo\Core\Http\Request

Afficher le fichier Open project: voodoophp/voodoo Class Usage Examples

Méthodes publiques

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

Method Details

getGetParams() public static méthode

Return the $_GET
public static getGetParams ( ) : array
Résultat array

getIp() public static méthode

Return the request ip
public static getIp ( ) : string
Résultat string

getMethod() public static méthode

Return the request method
public static getMethod ( ) : string
Résultat string

getParams() public static méthode

Return all the params
public static getParams ( ) : Array
Résultat Array

getPostParams() public static méthode

Return the $_POST
public static getPostParams ( ) : array
Résultat array

getSegment() public static méthode

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
Résultat mixed

getUrlSegments() public static méthode

Return segments of the URL Segments are part of the URL separated by a slash /
public static getUrlSegments ( ) : array
Résultat array

is() public static méthode

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

isAjax() public static méthode

Verify is the access is from ajax.
public static isAjax ( ) : boolean
Résultat boolean