PHP Class Efficiently\AuthorityController\Parameters

Afficher le fichier Open project: efficiently/authority-controller

Protected Properties

Свойство Type Description
$params

Méthodes publiques

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

Méthodes protégées

Méthode Description
normalizeControllerName ( string $controller ) : string
specialInputKeys ( array $inputKeys = [] ) : array Returns all inputs keys who starts with an underscore character (_).

Method Details

add() public méthode

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

all() public méthode

Get all of the parameters for the request.
public all ( ) : array
Résultat array

except() public méthode

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

fillController() public méthode

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

get() public méthode

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

has() public méthode

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

normalizeControllerName() protected méthode

protected normalizeControllerName ( string $controller ) : string
$controller string
Résultat string

only() public méthode

Get a subset of the items from the parameters.
public only ( array $keys = null ) : array
$keys array
Résultat array

specialInputKeys() protected méthode

For exmaple '_method' and '_token' inputs
protected specialInputKeys ( array $inputKeys = [] ) : array
$inputKeys array
Résultat array

Property Details

$params protected_oe property

protected $params