includes/AutoLoader.php
/**
     * Find class path for given class and loads it by including class file.
     *
     * @param string $className
     */
Find class path for given class and loads it by including class file.
@param string $className
Find class path for given class and loads it by including class file . @param string $className
public function loadClass($className) {
        $classPath = $this->getClassPath($className);
        try {
            if (!empty($classPath)) {
                require_once $classPath;
            } else {
                $classPath = $this->getLibraryClassPath($className);
                if (!empty($classPath)) {
                    require_once $classPath;
                }
            }
        } catch (Exception $e) {
            Logger::getLogger()->LogFatal("Class '$className' not found");
        }
    }
public function loadClass ( $ className ) { $ classPath = $ this -> getClassPath ( $ className ) ; try { if ( ! empty ( $ classPath ) ) { require_once $ classPath ; } else { $ classPath = $ this -> getLibraryClassPath ( $ className ) ; if ( ! empty ( $ classPath ) ) { require_once $ classPath ; } } } catch ( Exception $ e ) { Logger :: getLogger ( ) -> LogFatal ( " Class ' $ className ' not found " ) ; } }
Find class path for given class and loads it by including class file.
Find class path for given class and loads it by including class file .