Example #1
0
 /**
  * Returns a value indicating whether there is any handler attached to the named event.
  * @param string $name the event name
  * @return boolean whether there is any handler attached to the event.
  */
 public function hasEventHandlers($name)
 {
     $this->ensureBehaviors();
     return !empty($this->_events[$name]) || Event::hasHandlers($this, $name);
 }