PHP 클래스 Voodoo\Core\Http\Request

파일 보기 프로젝트 열기: voodoophp/voodoo 1 사용 예제들

공개 메소드들

메소드 설명
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