/** * @param EventManagerInterface $events */ public function detach(EventManagerInterface $events) { foreach ($this->handlers as $key => $handler) { $events->detach($handler); unset($this->handlers[$key]); } }
public function detach(EventManagerInterface $events) { foreach ($this->listeners as $index => $listener) { $events->detach($listener); unset($this->listeners[$index]); } }
/** * @param EventManagerInterface $events */ public function detach(EventManagerInterface $events) { foreach ($this->getListeners() as $index => $listener) { if ($events->detach($listener)) { $this->removeListener($index); } } }
/** * {@inheritDoc} */ public function detach(EventManagerInterface $e) { foreach ($this->listeners as $index => $listener) { if ($e->detach($listener)) { unset($this->listeners[$index]); } } }
/** * {@inheritDoc} */ public function detach(EventManagerInterface $events) { foreach ($this->listeners as $index => $callback) { if ($events->detach($callback)) { unset($this->listeners[$index]); } } }
/** * @param Events $events */ public function detach(Events $events) { foreach ($this->listeners as $index => $listener) { if ($events->detach($listener)) { unset($this->listeners[$index]); } } }
/** * Detach all previously attached listeners * * @param EventManagerInterface $events * @return void */ public function detach(EventManagerInterface $events) { foreach ($this->listeners as $key => $listener) { if ($events->detach($listener)) { unset($this->listeners[$key]); } } }
/** * {@inheritDoc} */ public function detach(EventManagerInterface $events) { foreach ($this->handlers as $index => $listener) { if (false !== $events->detach($listener)) { unset($this->handlers[$index]); } } }
/** * Detach aggregate listeners from the specified event manager * @param \Zend\EventManager\EventManagerInterface $oEvents * @return void */ public function detach(\Zend\EventManager\EventManagerInterface $oEvents) { foreach ($this->listeners as $iIndex => $oListener) { if ($oEvents->detach($oListener)) { unset($this->listeners[$iIndex]); } } }
/** * Detach all previously attached listeners * * @param EventManagerInterface $events * * @return void */ public function detach(EventManagerInterface $events) { foreach ($this->listeners as $i => $listener) { if ($events->detach($listener)) { unset($this->listeners[$i]); } } return empty($this->listeners); }
/** * @param \Zend\EventManager\EventManagerInterface $oEventManager * @return \AssetsBundle\Service\Service */ public function detach(\Zend\EventManager\EventManagerInterface $oEventManager) { foreach ($this->listeners as $iIndex => $oCallback) { if ($oEventManager->detach($oCallback)) { unset($this->listeners[$iIndex]); } } return $this; }
/** * (non-PHPdoc) * * @see \Zend\EventManager\ListenerAggregateInterface::detach() */ public function detach(EventManagerInterface $events) { $sharedEvents = $events->getSharedManager(); foreach ($this->listeners as $index => $listener) { if ($events->detach($listener)) { unset($this->listeners[$index]); } } }
public function detach(EventManagerInterface $event) { if (!empty($this->listeners)) { foreach ($this->listeners as $index->{$listener}) { if ($event->detach($listener)) { unset($this->listeners[$index]); } } } }
/** * Detach all previously attached listeners * * @param EventManagerInterface $events * @return ConfigListener */ public function detach(EventManagerInterface $events) { foreach ($this->listeners as $key => $listener) { $events->detach($listener); unset($this->listeners[$key]); } $this->listeners = array(); return $this; }
public function detach(EventManagerInterface $events) { $events->detach($this->listener); }