\Ceo\Core\TraitsEmitsEvents

Provides a standard foundation upon which transformation events can be fired.

Must provide defined Event (as defined by Ceo\Core\Event) and data to be attached to event.

 $content->emitEvent(\Ceo\Core\Event::UPDATE_EVENT, [extra data]);
 $content->emitEvent(\Ceo\Core\Event::CREATE_EVENT, [extra data]);

Events are fired manually by Managers and not Models.

Summary

Methods
Properties
Constants
emitEvent()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

emitEvent()

emitEvent(\Ceo\Core\Traits\const  $event, array  $data = array()) : \Ceo\Core\Traits\Event

Emit event

Parameters

\Ceo\Core\Traits\const $event
array $data

Returns

\Ceo\Core\Traits\Event