PHP Trait CRUD\Controller\ControllerTrait

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

Public Properties

Property Type Description
$dispatchComponents array List of components that are capable of dispatching an action that is not already implemented

Public Methods

Method 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.

Protected Methods

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

Method Details

_isActionMapped() protected method

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

invokeAction() public method

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

isAction() public method

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
return 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
return array