PHP Трейт CRUD\Controller\ControllerTrait

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$dispatchComponents array List of components that are capable of dispatching an action that is not already implemented

Открытые методы

Метод Описание
invokeAction ( ) : mixed Dispatches the controller action. Checks that the action exists and isn't private.
isAction ( string $action ) : boolean Return true for a mapped action so that AuthComponent doesn't skip authentication / authorization for that action.

Защищенные методы

Метод Описание
_isActionMapped ( ) : boolean | Component Check if an action can be dispatched using CRUD.

Описание методов

_isActionMapped() защищенный Метод

Check if an action can be dispatched using CRUD.
protected _isActionMapped ( ) : boolean | Component
Результат boolean | Cake\Controller\Component The component instance if action is mapped else `false`.

invokeAction() публичный Метод

If CakePHP raises MissingActionException we attempt to execute Crud
public invokeAction ( ) : mixed
Результат mixed The resulting response.

isAction() публичный Метод

Return true for a mapped action so that AuthComponent doesn't skip authentication / authorization for that action.
public isAction ( string $action ) : boolean
$action string Action name
Результат boolean True is action is mapped and enabled.

Описание свойств

$dispatchComponents публичное свойство

List of components that are capable of dispatching an action that is not already implemented
public array $dispatchComponents
Результат array