コード例 #1
0
 /**
  * Detach event from EventManager.
  *
  * @return void
  */
 public function detach()
 {
     foreach ($this->eventNames as $callable) {
         $this->dispatcher->removeListener($callable['name'], array($this, $callable['method']));
     }
 }
コード例 #2
0
ファイル: event.lib.php プロジェクト: rhertzog/lcs
 /**
  * remove an event listener from the application
  * @access public
  * @param string eventType event type
  * @param string eventlistener ID
  * @return boolean
  */
 public function removeListener($eventType, $id)
 {
     return EventManager::removeListener($eventType, $id);
 }