src/xPDO/xPDO.php
public function getPackage($className) {
        $package= '';
        if ($className= $this->loadClass($className)) {
            if (isset($this->map[$className]['package'])) {
                $package= $this->map[$className]['package'];
            }
            if (!$package && $ancestry= $this->getAncestry($className, false)) {
                foreach ($ancestry as $ancestor) {
                    if (isset ($this->map[$ancestor]['package']) && ($package= $this->map[$ancestor]['package'])) {
                        break;
                    }
                }
            }
        }
        return $package;
    }
public function getPackage($className) {
        $package= '';
        if ($className= $this->loadClass($className)) {
            if (isset($this->map[$className]['package'])) {
                $package= $this->map[$className]['package'];
            }
            if (!$package && $ancestry= $this->getAncestry($className, false)) {
                foreach ($ancestry as $ancestor) {
                    if (isset ($this->map[$ancestor]['package']) && ($package= $this->map[$ancestor]['package'])) {
                        break;
                    }
                }
            }
        }
        return $package;
    }
public function getPackage ( $ className ) { $ package = '' ; if ( $ className = $ this -> loadClass ( $ className ) ) { if ( isset ( $ this -> map [ $ className ] [ 'package' ] ) ) { $ package = $ this -> map [ $ className ] [ 'package' ] ; } if ( ! $ package && $ ancestry = $ this -> getAncestry ( $ className , false ) ) { foreach ( $ ancestry as $ ancestor ) { if ( isset ( $ this -> map [ $ ancestor ] [ 'package' ] ) && ( $ package = $ this -> map [ $ ancestor ] [ 'package' ] ) ) { break ; } } } } return $ package ; }
Gets the package name from a specified class name.

@param string $className The name of the class to lookup the package for.
@return string The package the class belongs to.
Gets the package name from a specified class name .