PHP Trait CRUD\Controller\ControllerTrait

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
Afficher le fichier Open project: friendsofcake/crud

Méthodes publiques

Свойство Type Description
$dispatchComponents array List of components that are capable of dispatching an action that is not already implemented

Méthodes publiques

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

Méthodes protégées

Méthode Description
_isActionMapped ( ) : boolean | Component Check if an action can be dispatched using CRUD.

Method Details

_isActionMapped() protected méthode

Check if an action can be dispatched using CRUD.
protected _isActionMapped ( ) : boolean | Component
Résultat boolean | Cake\Controller\Component The component instance if action is mapped else `false`.

invokeAction() public méthode

If CakePHP raises MissingActionException we attempt to execute Crud
public invokeAction ( ) : mixed
Résultat mixed The resulting response.

isAction() public méthode

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
Résultat boolean True is action is mapped and enabled.

Property Details

$dispatchComponents public_oe property

List of components that are capable of dispatching an action that is not already implemented
public array $dispatchComponents
Résultat array