Composer\Autoload

ClassLoader::loadClass()publicWPSCache 1.0

Loads the given class or interface.

Method of the class: ClassLoader{}

No Hooks.

Return

true|null. True if loaded, null otherwise

Usage

$ClassLoader = new ClassLoader();
$ClassLoader->loadClass( $class );
$class(string) (required)
The name of the class

ClassLoader::loadClass() code WPSCache 1.9.2

public function loadClass($class)
{
    if ($file = $this->findFile($class)) {
        includeFile($file);

        return true;
    }

    return null;
}