Lines Matching refs:listenerId
98 * @param string $listenerId Listener ID.
103 public function attach($listenerId, $callable) argument
105 if (false === $this->listenerExists($listenerId)) {
109 $listenerId
114 $this->_callables[$listenerId][$callable->getHash()] = $callable;
122 * @param string $listenerId Listener ID.
126 public function detach($listenerId, $callable) argument
128 unset($this->_callables[$listenerId][xcallable($callable)->getHash()]);
136 * @param string $listenerId Listener ID.
139 public function detachAll($listenerId) argument
141 unset($this->_callables[$listenerId]);
149 * @param string $listenerId Listener ID.
152 public function listenerExists($listenerId) argument
154 return array_key_exists($listenerId, $this->_callables);
160 * @param string $listenerId Listener ID.
165 public function fire($listenerId, Bucket $data) argument
167 if (false === $this->listenerExists($listenerId)) {
171 $listenerId
178 foreach ($this->_callables[$listenerId] as $callable) {