public function loadClass($class)
    {
        foreach (spl_autoload_functions() as $func) {
            if (is_array($func) && $func[0] === $this) {
                continue;
            }
            $this->classList->push($class);
            if (call_user_func($func, $class)) {
                break;
            }
        }

        $this->classList->next();

        return true;
    }
public function loadClass($class)
    {
        foreach (spl_autoload_functions() as $func) {
            if (is_array($func) && $func[0] === $this) {
                continue;
            }
            $this->classList->push($class);
            if (call_user_func($func, $class)) {
                break;
            }
        }

        $this->classList->next();

        return true;
    }
public function loadClass ( $ class ) { foreach ( spl_autoload_functions ( ) as $ func ) { if ( is_array ( $ func ) && $ func [ 0 ] === $ this ) { continue ; } $ this -> classList -> push ( $ class ) ; if ( call_user_func ( $ func , $ class ) ) { break ; } } $ this -> classList -> next ( ) ; return true ; }
Loads the given class, interface or trait.

We'll return true if it was loaded.

@param string $class

@return bool
Loads the given class interface or trait .