Inheritance diagram for SubClasses:


Public Member Functions | |
| __construct ($base, $check_interfaces=false) | |
| append ($value) | |
| asort () | |
| count () | |
| current () | |
| getArrayCopy () | |
| getChildren () | |
| getFlags () | |
| hasChildren () | |
| key () | |
| ksort () | |
| natcasesort () | |
| natsort () | |
| next () | |
| offsetExists ($index) | |
| offsetGet ($index) | |
| offsetSet ($index, $newval) | |
| offsetUnset ($index) | |
| rewind () | |
| seek ($position) | |
| setFlags ($flags) | |
| uasort (mixed cmp_function) | |
| uksort (mixed cmp_function) | |
| valid () | |
Public Attributes | |
| const | ARRAY_AS_PROPS = 0x00000002 |
| const | STD_PROP_LIST = 0x00000001 |
Definition at line 32 of file class_tree.php.
| SubClasses::__construct | ( | $ | base, | |
| $ | check_interfaces = false | |||
| ) |
| base | base class to collect sub classes for |
| check_interfaces | whether we deal with interfaces |
Reimplemented from ArrayIterator.
Definition at line 37 of file class_tree.php.
References ArrayIterator::offsetSet().
00038 { 00039 foreach(get_declared_classes() as $cname) 00040 { 00041 if (strcasecmp(get_parent_class($cname), $base) == 0) 00042 { 00043 $this->offsetSet($cname, new SubClasses($cname)); 00044 } 00045 if ($check_interfaces) 00046 { 00047 foreach(class_implements($cname) as $iname) 00048 { 00049 if (strcasecmp($iname, $base) == 0) 00050 { 00051 $this->offsetSet($cname, new SubClasses($cname)); 00052 } 00053 } 00054 } 00055 } 00056 if ($check_interfaces) 00057 { 00058 foreach(get_declared_interfaces() as $cname) 00059 { 00060 foreach(class_implements($cname) as $iname) 00061 { 00062 if (strcasecmp($iname, $base) == 0) 00063 { 00064 $this->offsetSet($cname, new SubClasses($cname, true)); 00065 } 00066 } 00067 } 00068 } 00069 }
Here is the call graph for this function:

| ArrayIterator::append | ( | $ | value | ) | [inherited] |
| $value | is appended as last element |
Definition at line 804 of file spl.php.
| ArrayIterator::asort | ( | ) | [inherited] |
| ArrayIterator::count | ( | ) | [inherited] |
| SubClasses::current | ( | ) |
Reimplemented from ArrayIterator.
Definition at line 73 of file class_tree.php.
| ArrayIterator::getArrayCopy | ( | ) | [inherited] |
Definition at line 810 of file spl.php.
| RecursiveArrayIterator::getChildren | ( | ) | [inherited] |
Implements RecursiveIterator.
Definition at line 43 of file recursivearrayiterator.inc.
References ArrayIterator::current().
00044 { 00045 if ($this->current() instanceof self) 00046 { 00047 return $this->current(); 00048 } 00049 if (empty($this->ref)) 00050 { 00051 $this->ref = new ReflectionClass($this); 00052 } 00053 return $this->ref->newInstance($this->current()); 00054 }
Here is the call graph for this function:

| ArrayIterator::getFlags | ( | ) | [inherited] |
| RecursiveArrayIterator::hasChildren | ( | ) | [inherited] |
Implements RecursiveIterator.
Definition at line 34 of file recursivearrayiterator.inc.
References ArrayIterator::current().
00035 { 00036 return is_array($this->current()); 00037 }
Here is the call graph for this function:

| ArrayIterator::key | ( | ) | [inherited] |
| ArrayIterator::ksort | ( | ) | [inherited] |
| ArrayIterator::natcasesort | ( | ) | [inherited] |
| ArrayIterator::natsort | ( | ) | [inherited] |
| ArrayIterator::next | ( | ) | [inherited] |
| ArrayIterator::offsetExists | ( | $ | index | ) | [inherited] |
| $index | offset to inspect |
Implements ArrayAccess.
Definition at line 784 of file spl.php.
| ArrayIterator::offsetGet | ( | $ | index | ) | [inherited] |
| $index | offset to return value for |
Implements ArrayAccess.
Definition at line 789 of file spl.php.
| ArrayIterator::offsetSet | ( | $ | index, | |
| $ | newval | |||
| ) | [inherited] |
| $index | index to set |
| $newval | new value to store at offset $index |
Implements ArrayAccess.
Definition at line 794 of file spl.php.
Referenced by __construct().
| ArrayIterator::offsetUnset | ( | $ | index | ) | [inherited] |
| ArrayIterator::rewind | ( | ) | [inherited] |
| ArrayIterator::seek | ( | $ | position | ) | [inherited] |
| $position | offset to seek to |
| OutOfBoundsException | if $position is invalid |
Implements SeekableIterator.
Definition at line 815 of file spl.php.
| ArrayIterator::setFlags | ( | $ | flags | ) | [inherited] |
| ArrayIterator::uasort | ( | mixed | cmp_function | ) | [inherited] |
| ArrayIterator::uksort | ( | mixed | cmp_function | ) | [inherited] |
| ArrayIterator::valid | ( | ) | [inherited] |
const ArrayIterator::ARRAY_AS_PROPS = 0x00000002 [inherited] |
const ArrayIterator::STD_PROP_LIST = 0x00000001 [inherited] |
1.5.2