PHP 클래스 Locker\Request

파일 보기 프로젝트 열기: learninglocker/learninglocker

보호된 프로퍼티들

프로퍼티 타입 설명
$params Stores/caches params.

공개 메소드들

메소드 설명
all ( ) : AssocArray Gets the stored/cached params.
getContent ( )
getParam ( String $key, mixed $default = null ) : mixed Gets a param from the stored/cached params.
getParams ( ) : AssocArray Gets all params (merges payload params with request params).
getPassword ( ) : String Gets the password from the basic auth.
getPayload ( ) : AssocArray Gets the stored/cached params.
getPayloadParams ( ) : AssocArray Gets the data stored in the request payload.
getUser ( ) : String Gets the user from the basic auth.
hasParam ( String $key ) : boolean Determines if the param is set.
header ( $key, $default = null ) : mixed Gets a header from the request headers.

비공개 메소드들

메소드 설명
getAuth ( ) : AssocArray Gets the authentication details from the stored/cached params.
getDecodedAuth ( String $auth ) : AssocArray Gets decoded authentication details.
getNullAuth ( ) : AssocArray Gets the null authentication details.
getSplitAuth ( ) : boolean Determines if the auth param is split by a space.
splitAuthParam ( String $authParam, String $delimeter ) : String[] Gets the authentication details split by a delimeter.

메소드 상세

all() 공개 메소드

Gets the stored/cached params.
public all ( ) : AssocArray
리턴 AssocArray Stored/cached params.

getContent() 공개 메소드

public getContent ( )

getParam() 공개 메소드

Gets a param from the stored/cached params.
public getParam ( String $key, mixed $default = null ) : mixed
$key String Param to be retrieved.
$default mixed Value to be returned if the param is not set.
리턴 mixed Value of the param.

getParams() 공개 메소드

Gets all params (merges payload params with request params).
public getParams ( ) : AssocArray
리턴 AssocArray params.

getPassword() 공개 메소드

Gets the password from the basic auth.
public getPassword ( ) : String
리턴 String password in the basic auth.

getPayload() 공개 메소드

Gets the stored/cached params.
public getPayload ( ) : AssocArray
리턴 AssocArray Stored/cached params.

getPayloadParams() 공개 메소드

Gets the data stored in the request payload.
public getPayloadParams ( ) : AssocArray
리턴 AssocArray params from the payload.

getUser() 공개 메소드

Gets the user from the basic auth.
public getUser ( ) : String
리턴 String user in the basic auth.

hasParam() 공개 메소드

Determines if the param is set.
public hasParam ( String $key ) : boolean
$key String Param to be checked.
리턴 boolean True if the param exists, false if it doesn't.

header() 공개 메소드

Gets a header from the request headers.
public header ( $key, $default = null ) : mixed
$key Header to be returned.
$default Value to be returned if the header is not set.
리턴 mixed Value of the header.

프로퍼티 상세

$params 보호되어 있는 프로퍼티

Stores/caches params.
protected $params