cvs: php-src /ext/spl spl.php

From: Date: Sun, 18 Sep 2005 17:44:53 +0000
Subject: cvs: php-src /ext/spl spl.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34004@lists.php.net to get a copy of this message
helly Sun Sep 18 13:44:53 2005 EDT Modified files: /php-src/ext/spl spl.php Log: - Observer/Subject have been renamed http://cvs.php.net/diff.php/php-src/ext/spl/spl.php?r1=1.55&r2=1.56&ty=u Index: php-src/ext/spl/spl.php diff -u php-src/ext/spl/spl.php:1.55 php-src/ext/spl/spl.php:1.56 --- php-src/ext/spl/spl.php:1.55 Sun Sep 18 13:39:12 2005 +++ php-src/ext/spl/spl.php Sun Sep 18 13:44:50 2005 @@ -824,7 +824,7 @@ } /** @ingroup SPL - * @brief observer of the observer pattern + * @brief Observer of the observer pattern * @since PHP 5.1 * * For a detailed explanation see Observer pattern in @@ -833,29 +833,29 @@ * Design Patterns * </em> */ -interface Observer +interface SplObserver { /** Called from the subject (i.e. when it's value has changed). * @param $subject the callee */ - function update(Subject $subject); + function update(SplSubject $subject); } /** @ingroup SPL - * @brief ubject to the observer pattern + * @brief Subject to the observer pattern * @since PHP 5.1 * @see Observer */ -interface Subject +interface SplSubject { /** @param $observer new observer to attach */ - function attach(Observer $observer); + function attach(SplObserver $observer); /** @param $observer existing observer to detach * @note a non attached observer shouldn't result in a warning or similar */ - function detach(Observer $observer); + function detach(SplObserver $observer); /** Notify all observers */

« previous php.cvs (#34004) next »