ClassLoader::loadClass PHP Method

loadClass() public method

Called when there is a class to load
public loadClass ( string $name ) : boolean
$name string
return boolean
    public function loadClass($name);

Usage Example

 /**
  * Loads the class by first checking if the file path is cached.
  * @param string $class Full name of the class
  * @return bool|null True if the class was loaded, false if not
  */
 public function loadClass($class)
 {
     $result = $this->loadCachedClass($class);
     if ($result === false) {
         $result = parent::loadClass($class);
     }
     if ($this->verbose) {
         return $result !== false;
     }
 }
All Usage Examples Of ClassLoader::loadClass