class Pushable extends Behavior implements BehaviorInterface

deprecated since 0.1.4

Pushable Behavior has been deprecated since 0.1.4. Please use Ceo\Core\Traits\Pushable

Pushable models are pushed to the websocket server. Models which implement the pushable behavior can define related items to furnish with the push. $this->addBehavior('new Pushable([ 'category' => 'contentupdate' 'related' => [ 'export', 'authors', 'tags', 'assignment', 'attachment', 'audit' ] ]));

Methods

__construct(array $options = array())

No description

notify(object $eventType, ModelInterface $model)

Push model to websocket queue

Details

at line line 35
__construct(array $options = array())

Parameters

array $options

at line line 47
notify(object $eventType, ModelInterface $model)

Push model to websocket queue

Parameters

object $eventType
ModelInterface $model