Home
last modified time | relevance | path

Searched refs:observer (Results 1 – 3 of 3) sorted by relevance

/PHP-7.1/ext/spl/tests/
H A Dobserver_001.phpt36 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);
H A Dobserver_002.phpt70 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);
/PHP-7.1/ext/spl/
H A Dspl.php1148 function attach(SplObserver $observer); argument
1153 function detach(SplObserver $observer); argument

Completed in 8 milliseconds