helly           Sun Oct 30 11:07:31 2005 EDT

  Modified files:              
    /php-src/ext/spl/examples   class_tree.php 
  Log:
  - Add docu
  
http://cvs.php.net/diff.php/php-src/ext/spl/examples/class_tree.php?r1=1.5&r2=1.6&ty=u
Index: php-src/ext/spl/examples/class_tree.php
diff -u php-src/ext/spl/examples/class_tree.php:1.5 
php-src/ext/spl/examples/class_tree.php:1.6
--- php-src/ext/spl/examples/class_tree.php:1.5 Fri Oct 21 19:42:56 2005
+++ php-src/ext/spl/examples/class_tree.php     Sun Oct 30 11:07:29 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)
@@ -72,6 +77,8 @@
                $this->uksort('strnatcasecmp');
        }
        
+       /** @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