/**
  * Triggers the TemplateCaptured event.
  *
  * @return Boolean If the event was cancelled (assuming the event is cancellable).
  */
 protected function EventTemplateCaptured()
 {
     if (!$this->EventsAvailable()) {
         return true;
     }
     return InterspireEvent::trigger('InterspireTemplate_TemplateCaptured', new InterspireTemplateEventTemplateCaptured($this));
 }
Пример #2
0
 /**
  * trigger
  * Trigger the event that is associated with the event
  * @param Boolean $removeListenerWhenLoadFailed Remove the listener when file loading failed (OPTIONAL, default = FALSE)
  * @return Boolean Returns TRUE or FALSE depending on whether or not eventData preventDefault property
  */
 public function trigger($removeListenerWhenLoadFailed = false)
 {
     if (empty($this->_eventName)) {
         // This peice of code will never be reached if the class has been constructed properly
         die('Please specify the "_eventName" property first in order to use this function');
     }
     return InterspireEvent::trigger($this->_eventName, $this, $removeListenerWhenLoadFailed);
 }