Searched refs:observer (Results 1 – 3 of 3) sorted by relevance
36 function attach(SplObserver $observer)38 echo '$sub->' . __METHOD__ . '(' . $observer->getName() . ");\n";39 if (!in_array($observer, $this->observers))41 $this->observers[] = $observer;45 function detach(SplObserver $observer)47 echo '$sub->' . __METHOD__ . '(' . $observer->getName() . ");\n";48 $idx = array_search($observer, $this->observers);58 foreach($this->observers as $observer)60 $observer->update($this);
70 function attach(SplObserver $observer)72 echo $this->name . '->' . __METHOD__ . '(' . $observer->getName() . ");\n";73 $this->observers->attach($observer);76 function detach(SplObserver $observer)78 echo $this->name . '->' . __METHOD__ . '(' . $observer->getName() . ");\n";79 $this->observers->detach($observer);90 foreach($this->observers as $key => $observer)92 $observer->update($this);
1148 function attach(SplObserver $observer); argument1153 function detach(SplObserver $observer); argument
Completed in 8 milliseconds