just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\Observer\CallbackObserver
Extends: ORM\Observer\AbstractObserver
When a handler returns false it will cancel other event handlers and if applicable stops the execution (saving, inserting, updating and deleting can be canceled).
public function handle(\ORM\Event $event): bool
Return false to stop event execution.
Returns | bool |
Parameter | Type | Description |
---|---|---|
$event |
ORM\Event |
ORM\Observer\CallbackObserver::handle
public function off(mixed $event): $this
Returns | $this |
Parameter | Type | Description |
---|---|---|
$event |
mixed |
ORM\Observer\CallbackObserver::off
public function on(mixed $event, callable $listener): $this
Returns | $this |
Parameter | Type | Description |
---|---|---|
$event |
mixed | |
$listener |
callable |
ORM\Observer\CallbackObserver::on