public function fireEventCancel($eventName)
{
/**
* Check if there is a method with the same name of the event
*/
if (method_exists($this, $eventName)) {
if (false === $this->{$eventName}()) {
return false;
}
}
/**
* Send a notification to the events manager
*/
if (false === $this->_modelsManager->notifyEvent($eventName, $this)) {
return false;
}
return true;
}