helly Thu Jun 19 13:38:53 2003 EDT Modified files: /spl spl.php Log: Forget to remove these namespace crap (thanks to george to remind me) Index: spl/spl.php diff -u spl/spl.php:1.2 spl/spl.php:1.3 --- spl/spl.php:1.2 Mon Jun 9 12:58:51 2003 +++ spl/spl.php Thu Jun 19 13:38:53 2003 @@ -29,7 +29,7 @@ * can be used as a parameter to be iterated (normally an array). * * \code - class c implements spl::foreach, spl::forward { + class c implements spl_foreach, spl_forward { private $num = 0; function new_iterator() { $this->num = 0; @@ -62,13 +62,13 @@ * If you need this you must split the two parts. * * \code - class c implements spl::foreach { + class c implements spl_foreach { public $max = 3; function new_iterator() { return new c_iter($this); } } - class c_iter implements spl::forward { + class c_iter implements spl_forward { private $obj; private $num = 0; function __construct($obj) { @@ -97,13 +97,13 @@ * You can also use this interface with the for() construct. * * \code - class c implements spl::foreach { + class c implements spl_foreach { public $max = 3; function new_iterator() { return new c_iter($this); } } - class c_iter implements spl::forward { + class c_iter implements spl_forward { private $obj; private $num = 0; function __construct($obj) { @@ -212,7 +212,7 @@ * * The following example shows how to use an array_writer: * \code - class array_emulation implemets spl::array_access { + class array_emulation implemets spl_array_access { private $ar = array(); function exists($index) { return array_key_exists($index, $this->ar); @@ -245,7 +245,7 @@ * * The following example shows how to use a customized array_writer: * \code - class array_emulation_ex extends array_emulation implemets spl::array_access_ex { + class array_emulation_ex extends array_emulation implemets spl_array_access_ex { private $last_index = NULL; function new_writer($index) { $last_index = $index;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php