PHP 클래스 Efficiently\AuthorityController\Parameters

파일 보기 프로젝트 열기: efficiently/authority-controller

보호된 프로퍼티들

프로퍼티 타입 설명
$params

공개 메소드들

메소드 설명
add ( string $key, mixed $value ) : mixed Adds an item to the parameters.
all ( ) : array Get all of the parameters for the request.
except ( array $keys = null ) : array Get all of the input except for a specified array of items.
fillController ( Illuminate\Routing\Controller $controller ) Fill the $params property of the given Controller
get ( string $key, mixed $default = null ) : mixed Get an item from the parameters.
has ( string | array $key ) : boolean Determine if the request contains a given parameter item.
only ( array $keys = null ) : array Get a subset of the items from the parameters.

보호된 메소드들

메소드 설명
normalizeControllerName ( string $controller ) : string
specialInputKeys ( array $inputKeys = [] ) : array Returns all inputs keys who starts with an underscore character (_).

메소드 상세

add() 공개 메소드

Adds an item to the parameters.
public add ( string $key, mixed $value ) : mixed
$key string Key to add value to.
$value mixed New data.
리턴 mixed

all() 공개 메소드

Get all of the parameters for the request.
public all ( ) : array
리턴 array

except() 공개 메소드

Get all of the input except for a specified array of items.
public except ( array $keys = null ) : array
$keys array
리턴 array

fillController() 공개 메소드

Fill the $params property of the given Controller
public fillController ( Illuminate\Routing\Controller $controller )
$controller Illuminate\Routing\Controller

get() 공개 메소드

Get an item from the parameters.
public get ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
리턴 mixed

has() 공개 메소드

Determine if the request contains a given parameter item.
public has ( string | array $key ) : boolean
$key string | array
리턴 boolean

normalizeControllerName() 보호된 메소드

protected normalizeControllerName ( string $controller ) : string
$controller string
리턴 string

only() 공개 메소드

Get a subset of the items from the parameters.
public only ( array $keys = null ) : array
$keys array
리턴 array

specialInputKeys() 보호된 메소드

For exmaple '_method' and '_token' inputs
protected specialInputKeys ( array $inputKeys = [] ) : array
$inputKeys array
리턴 array

프로퍼티 상세

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

protected $params