helly           Sun Oct 30 11:07:45 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/spl/examples   class_tree.php 
  Log:
  - MFH Add docu
  
http://cvs.php.net/diff.php/php-src/ext/spl/examples/class_tree.php?r1=1.1.2.4&r2=1.1.2.5&ty=u
Index: php-src/ext/spl/examples/class_tree.php
diff -u php-src/ext/spl/examples/class_tree.php:1.1.2.4 
php-src/ext/spl/examples/class_tree.php:1.1.2.5
--- php-src/ext/spl/examples/class_tree.php:1.1.2.4     Sat Oct  8 15:09:58 2005
+++ php-src/ext/spl/examples/class_tree.php     Sun Oct 30 11:07:45 2005
@@ -27,8 +27,13 @@
 
 if (!class_exists("RecursiveTreeIterator", false)) 
require_once("recursivetreeiterator.inc");
 
+/** \brief Collects sub classes for given class or interface
+ */
 class SubClasses extends RecursiveArrayIterator
 {
+       /** @param base  base class to collect sub classes for
+        * @param check_interfaces whether we deal with interfaces
+        */
        function __construct($base, $check_interfaces = false)
        {
                foreach(get_declared_classes() as $cname)
@@ -62,7 +67,9 @@
                        }
                }
        }
-       
+
+       /** @return key() since that is the name we need
+        */
        function current()
        {
                return parent::key();

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

Reply via email to