public static function importClass($path)
    {
        // extract classname
        if (($pos = strrpos($path, '.')) === false) {
            $class = $path;
        } else {
            $class = substr($path, $pos + 1);
        }

        // check if class exists, using autoloader to attempt to load it.
        if (class_exists($class, $useAutoload = true)) {
            return $class;
        }

        // turn to filesystem path
        $path = strtr($path, '.', DIRECTORY_SEPARATOR) . '.php';

        // include class
        $ret = include_once($path);
        if ($ret === false) {
            throw new PropelException("Unable to import class: " . $class . " from " . $path);
        }

        // return qualified name
        return $class;
    }
public static function importClass($path)
    {
        // extract classname
        if (($pos = strrpos($path, '.')) === false) {
            $class = $path;
        } else {
            $class = substr($path, $pos + 1);
        }

        // check if class exists, using autoloader to attempt to load it.
        if (class_exists($class, $useAutoload = true)) {
            return $class;
        }

        // turn to filesystem path
        $path = strtr($path, '.', DIRECTORY_SEPARATOR) . '.php';

        // include class
        $ret = include_once($path);
        if ($ret === false) {
            throw new PropelException("Unable to import class: " . $class . " from " . $path);
        }

        // return qualified name
        return $class;
    }
public static function importClass ( $ path ) { // extract classname if ( ( $ pos = strrpos ( $ path , '.' ) ) === false ) { $ class = $ path ; } else { $ class = substr ( $ path , $ pos + 1 ) ; } // check if class exists, using autoloader to attempt to load it. if ( class_exists ( $ class , $ useAutoload = true ) ) { return $ class ; } // turn to filesystem path $ path = strtr ( $ path , '.' , DIRECTORY_SEPARATOR ) . '.php' ; // include class $ ret = include_once ( $ path ) ; if ( $ ret === false ) { throw new PropelException ( "Unable to import class: " . $ class . " from " . $ path ) ; } // return qualified name return $ class ; }
Include once a file specified in DOT notation and return unqualified classname.

Typically, Propel uses autoload is used to load classes and expects that all classes
referenced within Propel are included in Propel's autoload map.  This method is only
called when a specific non-Propel classname was specified -- for example, the
classname of a validator in the schema.xml.  This method will attempt to include that
class via autoload and then relative to a location on the include_path.

@param string $class dot-path to clas (e.g. path.to.my.ClassName).

@return string unqualified classname

@throws PropelException
Include once a file specified in DOT notation and return unqualified classname .