PHP Class Crud\Listener\BaseListener

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

Public Methods

Method Description
implementedEvents ( ) : array Returns a list of all events that will fire in the controller during its life cycle.
resourceName ( string | null $value = null ) : string Return the human name of the model

Method Details

implementedEvents() public method

You can override this function to add you own listener callbacks. - initialize: Called at the same time as CrudComponent::initialize() - startup: Called at the same time as CrudComponent::startup() - beforeHandle : Called before CrudAction is executed - recordNotFound : Called if a find() did not return any records - beforePaginate : Called right before any paginate() method - afterPaginate : Called right after any paginate() method - invalidId : Called if the ID format validation failed - setFlash : Called before any FlashComponent::set()
public implementedEvents ( ) : array
return array

resourceName() public method

By default it uses Inflector::humanize, but can be changed using the "name" configuration property
public resourceName ( string | null $value = null ) : string
$value string | null Value
return string