/**
  * Loads the given class or interface.
  *
  * @param   string  $class  The name of the class
  *
  * @return  boolean|null  True if loaded, null otherwise
  *
  * @since   3.4
  */
 public function loadClass($class)
 {
     if ($result = $this->loader->loadClass($class)) {
         JLoader::applyAliasFor($class);
     }
     return $result;
 }
Esempio n. 2
0
 /**
  * Loads the given class or interface.
  *
  * @param   string  $class  The name of the class
  *
  * @return  bool|null True if loaded, null otherwise
  *
  * @since   3.4
  */
 public function loadClass($class)
 {
     if ($file = $this->findFile($class)) {
         includeFile($file);
         \JLoader::applyAliasFor($class);
         return true;
     }
 }