src/xPDO/xPDO.php
public function getDescendants($className) {
        $descendants = array();
        if (isset($this->classMap[$className])) {
            $descendants = $this->classMap[$className];
            if ($descendants) {
                foreach ($descendants as $descendant) {
                    $descendants = array_merge($descendants, $this->getDescendants($descendant));
                }
            }
        }
        return $descendants;
    }
public function getDescendants($className) {
        $descendants = array();
        if (isset($this->classMap[$className])) {
            $descendants = $this->classMap[$className];
            if ($descendants) {
                foreach ($descendants as $descendant) {
                    $descendants = array_merge($descendants, $this->getDescendants($descendant));
                }
            }
        }
        return $descendants;
    }
public function getDescendants ( $ className ) { $ descendants = array ( ) ; if ( isset ( $ this -> classMap [ $ className ] ) ) { $ descendants = $ this -> classMap [ $ className ] ; if ( $ descendants ) { foreach ( $ descendants as $ descendant ) { $ descendants = array_merge ( $ descendants , $ this -> getDescendants ( $ descendant ) ) ; } } } return $ descendants ; }
Gets a list of derivative classes for the specified className.

The specified className must be xPDOObject or a derivative class.

@param string $className The name of the class to retrieve derivatives for.
@return array An array of derivative classes or an empty array.
Gets a list of derivative classes for the specified className .