PHP 트레잇 Flugg\Responder\Traits\ConvertsParameters

저자: Alexander Tømmerås ([email protected])
파일 보기 프로젝트 열기: flugger/laravel-responder

공개 메소드들

메소드 설명
__get ( string $key ) : mixed Get an input element from the request.
__isset ( string $key ) : boolean Check if an input element is set on the request.
all ( ) : array Get all of the input and files for the request.

보호된 메소드들

메소드 설명
castBooleans ( mixed $input ) : array Cast all string booleans to real boolean values.
castToBooleanIsDisabled ( ) : boolean Checks if the user wants to cast to booleans.
castValueToBoolean ( mixed $value ) : mixed Cast a given value to a boolean if it is in fact a boolean.
convertArrayToSnakeCase ( array $input ) : array Convert all keys of an array to snake case.
convertToSnakeCase ( mixed $input ) : mixed Convert a string or array to snake case.
convertToSnakeCaseIsDisabled ( ) : boolean Checks if the user wants to convert to snake case.
getConvertedParameters ( ) : array Cast and convert parameters.
getInputSource ( ) : Symfony\Component\HttpFoundation\ParameterBag Get the input source for the request.
getValidatorInstance ( ) : Illuminate\Contracts\Validation\Validator Get the validator instance for the request.

메소드 상세

__get() 공개 메소드

Get an input element from the request.
public __get ( string $key ) : mixed
$key string
리턴 mixed

__isset() 공개 메소드

Check if an input element is set on the request.
public __isset ( string $key ) : boolean
$key string
리턴 boolean

all() 추상적인 공개 메소드

Get all of the input and files for the request.
abstract public all ( ) : array
리턴 array

castBooleans() 보호된 메소드

Cast all string booleans to real boolean values.
protected castBooleans ( mixed $input ) : array
$input mixed
리턴 array

castToBooleanIsDisabled() 보호된 메소드

Checks if the user wants to cast to booleans.
protected castToBooleanIsDisabled ( ) : boolean
리턴 boolean

castValueToBoolean() 보호된 메소드

Cast a given value to a boolean if it is in fact a boolean.
protected castValueToBoolean ( mixed $value ) : mixed
$value mixed
리턴 mixed

convertArrayToSnakeCase() 보호된 메소드

Convert all keys of an array to snake case.
protected convertArrayToSnakeCase ( array $input ) : array
$input array
리턴 array

convertToSnakeCase() 보호된 메소드

Convert a string or array to snake case.
protected convertToSnakeCase ( mixed $input ) : mixed
$input mixed
리턴 mixed

convertToSnakeCaseIsDisabled() 보호된 메소드

Checks if the user wants to convert to snake case.

getConvertedParameters() 보호된 메소드

Cast and convert parameters.
protected getConvertedParameters ( ) : array
리턴 array

getInputSource() 추상적인 보호된 메소드

Get the input source for the request.
abstract protected getInputSource ( ) : Symfony\Component\HttpFoundation\ParameterBag
리턴 Symfony\Component\HttpFoundation\ParameterBag

getValidatorInstance() 보호된 메소드

Get the validator instance for the request.
protected getValidatorInstance ( ) : Illuminate\Contracts\Validation\Validator
리턴 Illuminate\Contracts\Validation\Validator