src/xPDO/xPDO.php
public function getAncestry($className, $includeSelf= true) {
        $ancestry= array ();
        if ($actualClassName= $this->loadClass($className)) {
            $ancestor= $actualClassName;
            if ($includeSelf) {
                $ancestry[]= $actualClassName;
            }
            while ($ancestor= get_parent_class($ancestor)) {
                $ancestry[]= $ancestor;
            }
            if ($this->getDebug() === true) {
                $this->log(xPDO::LOG_LEVEL_DEBUG, "Returning ancestry for {$className}: " . print_r($ancestry, 1));
            }
        }
        return $ancestry;
    }
public function getAncestry($className, $includeSelf= true) {
        $ancestry= array ();
        if ($actualClassName= $this->loadClass($className)) {
            $ancestor= $actualClassName;
            if ($includeSelf) {
                $ancestry[]= $actualClassName;
            }
            while ($ancestor= get_parent_class($ancestor)) {
                $ancestry[]= $ancestor;
            }
            if ($this->getDebug() === true) {
                $this->log(xPDO::LOG_LEVEL_DEBUG, "Returning ancestry for {$className}: " . print_r($ancestry, 1));
            }
        }
        return $ancestry;
    }
public function getAncestry ( $ className , $ includeSelf = true ) { $ ancestry = array ( ) ; if ( $ actualClassName = $ this -> loadClass ( $ className ) ) { $ ancestor = $ actualClassName ; if ( $ includeSelf ) { $ ancestry [ ] = $ actualClassName ; } while ( $ ancestor = get_parent_class ( $ ancestor ) ) { $ ancestry [ ] = $ ancestor ; } if ( $ this -> getDebug ( ) === true ) { $ this -> log ( xPDO :: LOG_LEVEL_DEBUG , "Returning ancestry for {$className}: " . print_r ( $ ancestry , 1 ) ) ; } } return $ ancestry ; }
Retrieves the complete ancestry for a class.

@param string $className The name of the class.
@param bool $includeSelf Determines if the specified class should be
included in the resulting array.
@return array An array of string class names representing the class
hierarchy, or an empty array if unsuccessful.
Retrieves the complete ancestry for a class .