src/xPDO/xPDO.php
public function getTableClass($className) {
        $tableClass= null;
        if ($className= $this->loadClass($className)) {
            if (isset ($this->map[$className]['table'])) {
                $tableClass= $className;
            }
            if (!$tableClass && $ancestry= $this->getAncestry($className, false)) {
                foreach ($ancestry as $ancestor) {
                    if (isset ($this->map[$ancestor]['table'])) {
                        $tableClass= $ancestor;
                        break;
                    }
                }
            }
        }
        if ($tableClass) {
            if ($this->getDebug() === true) {
                $this->log(xPDO::LOG_LEVEL_DEBUG, 'Returning table class: ' . $tableClass . ' for class: ' . $className);
            }
        } else {
            $this->log(xPDO::LOG_LEVEL_ERROR, 'Could not get table class for class: ' . $className);
        }
        return $tableClass;
    }
public function getTableClass($className) {
        $tableClass= null;
        if ($className= $this->loadClass($className)) {
            if (isset ($this->map[$className]['table'])) {
                $tableClass= $className;
            }
            if (!$tableClass && $ancestry= $this->getAncestry($className, false)) {
                foreach ($ancestry as $ancestor) {
                    if (isset ($this->map[$ancestor]['table'])) {
                        $tableClass= $ancestor;
                        break;
                    }
                }
            }
        }
        if ($tableClass) {
            if ($this->getDebug() === true) {
                $this->log(xPDO::LOG_LEVEL_DEBUG, 'Returning table class: ' . $tableClass . ' for class: ' . $className);
            }
        } else {
            $this->log(xPDO::LOG_LEVEL_ERROR, 'Could not get table class for class: ' . $className);
        }
        return $tableClass;
    }
public function getTableClass ( $ className ) { $ tableClass = null ; if ( $ className = $ this -> loadClass ( $ className ) ) { if ( isset ( $ this -> map [ $ className ] [ 'table' ] ) ) { $ tableClass = $ className ; } if ( ! $ tableClass && $ ancestry = $ this -> getAncestry ( $ className , false ) ) { foreach ( $ ancestry as $ ancestor ) { if ( isset ( $ this -> map [ $ ancestor ] [ 'table' ] ) ) { $ tableClass = $ ancestor ; break ; } } } } if ( $ tableClass ) { if ( $ this -> getDebug ( ) === true ) { $ this -> log ( xPDO :: LOG_LEVEL_DEBUG , 'Returning table class: ' . $ tableClass . ' for class: ' . $ className ) ; } } else { $ this -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not get table class for class: ' . $ className ) ; } return $ tableClass ; }
Get the class which defines the table for a specified className.

@param string $className The name of a class to determine the table class from.
@return null|string The name of a class defining the table for the specified className; null if not found.
Get the class which defines the table for a specified className .