113
113
*
114
114
* Talks on SPL:
115
115
* - SPL for the masses <a href="http://somabo.de/talks/200504_php_quebec_spl_for_the_masses.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_spl_for_the_masses.pdf">[pdf]</a>
116
- * - Debug session 1 <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_1.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_1.pdf">[pdf]</a>
117
- * - Debug session 2 <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_2.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_2.pdf">[pdf]</a>
118
116
* - From engine overloading to SPL <a href="http://somabo.de/talks/200505_cancun_from_engine_overloading_to_spl.pps">[pps]</a>, <a href="http://somabo.de/talks/200505_cancun_from_engine_overloading_to_spl.pdf">[pdf]</a>
117
+ * - Happy SPLing <a href="http://somabo.de/talks/200509_toronto_happy_spling.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_happy_spling.pdf">[pdf]</a>
118
+ * - Debug session 1 <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_1.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_1.pdf">[pdf]</a>
119
+ * - Debug session 2 <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_2.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_2.pdf">[pdf]</a>
119
120
*
120
121
* You can download this documentation as a chm file
121
122
* <a href="http://php.net/~helly/php/ext/spl/spl.chm">here</a>.
@@ -824,7 +825,7 @@ function getChildren();
824
825
}
825
826
826
827
/** @ingroup SPL
827
- * @brief observer of the observer pattern
828
+ * @brief Observer of the observer pattern
828
829
* @since PHP 5.1
829
830
*
830
831
* For a detailed explanation see Observer pattern in
@@ -833,29 +834,29 @@ function getChildren();
833
834
* Design Patterns
834
835
* </em>
835
836
*/
836
- interface Observer
837
+ interface SplObserver
837
838
{
838
839
/** Called from the subject (i.e. when it's value has changed).
839
840
* @param $subject the callee
840
841
*/
841
- function update (Subject $ subject );
842
+ function update (SplSubject $ subject );
842
843
}
843
844
844
845
/** @ingroup SPL
845
- * @brief ubject to the observer pattern
846
+ * @brief Subject to the observer pattern
846
847
* @since PHP 5.1
847
848
* @see Observer
848
849
*/
849
- interface Subject
850
+ interface SplSubject
850
851
{
851
852
/** @param $observer new observer to attach
852
853
*/
853
- function attach (Observer $ observer );
854
+ function attach (SplObserver $ observer );
854
855
855
856
/** @param $observer existing observer to detach
856
857
* @note a non attached observer shouldn't result in a warning or similar
857
858
*/
858
- function detach (Observer $ observer );
859
+ function detach (SplObserver $ observer );
859
860
860
861
/** Notify all observers
861
862
*/
0 commit comments