/**
  * Implementation Zend_EventManager_ListenerAggregate
  * 
  * @param \Zend_EventManager_EventCollection $events
  */
 public function detach(\Zend_EventManager_EventCollection $events)
 {
     foreach ($this->listeners as $index => $listener) {
         if ($events->detach($listener)) {
             unset($this->listeners[$index]);
         }
     }
 }
 public function attach(Zend_EventManager_EventCollection $events, $priority = null)
 {
     $this->priority = $priority;
     $listeners = array();
     $listeners[] = $events->attach('foo.bar', array($this, 'fooBar'));
     $listeners[] = $events->attach('foo.baz', array($this, 'fooBaz'));
     $this->listeners[spl_object_hash($events)] = $listeners;
     return __METHOD__;
 }