]> granicus.if.org Git - php/commitdiff
- Add docu
authorMarcus Boerger <helly@php.net>
Sun, 30 Oct 2005 16:07:29 +0000 (16:07 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 30 Oct 2005 16:07:29 +0000 (16:07 +0000)
ext/spl/examples/class_tree.php

index c530112f47599211597b3ef40c451e6928f317e2..87d53ac730df7b0c4cce66e73f80159eb43ce47c 100755 (executable)
@@ -27,8 +27,13 @@ EOF;
 
 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 @@ class SubClasses extends RecursiveArrayIterator
                $this->uksort('strnatcasecmp');
        }
        
+       /** @return key() since that is the name we need
+        */
        function current()
        {
                return parent::key();