helly           Fri Sep  2 15:10:53 2005 EDT

  Modified files:              
    /php-src/ext/spl    spl.php 
  Log:
  - Update docu
  
http://cvs.php.net/diff.php/php-src/ext/spl/spl.php?r1=1.49&r2=1.50&ty=u
Index: php-src/ext/spl/spl.php
diff -u php-src/ext/spl/spl.php:1.49 php-src/ext/spl/spl.php:1.50
--- php-src/ext/spl/spl.php:1.49        Wed May  4 15:14:08 2005
+++ php-src/ext/spl/spl.php     Fri Sep  2 15:10:51 2005
@@ -495,6 +495,7 @@
 /** @ingroup SPL
  * @brief An Array wrapper
  * @since PHP 5.0
+ * @version 1.1
  *
  * This array wrapper allows to recursively iterate over Arrays and public 
  * Object properties.
@@ -507,8 +508,28 @@
         * That is any Array or Object.
         *
         * @param $array the array to use.
+        * @param $flags see setFlags().
         */
-       function __construct($array);
+       function __construct($array, $flags = 0);
+
+       /** Set behavior flags.
+        *      
+        * @param $flags bitmask as follows:
+        *        0 set: properties of the object have their normal 
functionality
+        *               when accessed as list (var_dump, foreach, etc.)
+        *        1 set: array indices can be accessed as properties in 
read/write
+        */
+       function setFlags($flags);
+                           
+       /**
+        * @ return current flags
+        */
+       function getFlags();
+
+       /**
+        * @param $array new array or object
+        */
+       function exchangeArray($array);
 
        /** @return the iterator which is an ArrayIterator object connected to
         * this object.
@@ -555,6 +576,7 @@
 /** @ingroup SPL
  * @brief An Array iterator
  * @since PHP 5.0
+ * @version 1.1
  *
  * This iterator allows to unset and modify values and keys while iterating
  * over Arrays and Objects.
@@ -570,8 +592,23 @@
         * That is any Array or Object.
         *
         * @param $array the array to use.
+        * @param $flags see setFlags().
+        */
+       function __construct($array, $flags = 0);
+
+       /** Set behavior flags.
+        *      
+        * @param $flags bitmask as follows:
+        *        0 set: properties of the object have their normal 
functionality
+        *               when accessed as list (var_dump, foreach, etc.)
+        *        1 set: array indices can be accessed as properties in 
read/write
+        */
+       function setFlags($flags);
+                           
+       /**
+        * @ return current flags
         */
-       public function __construct($array);
+       function getFlags();
 
        /** @param $index offset to inspect
         * @return whetehr offset $index esists

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to