public function load($class)
    {
        $class = ltrim($class, '\\');
        if (strncasecmp($class, 'Plop\\', 4)) {
            return false;
        }

        if (strpos($class, '://') !== false) {
            throw new \Exception('Possible exploitation attempt detected');
        }

        $class = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, substr($class, 5));
        require_once(__DIR__ . DIRECTORY_SEPARATOR . $class . '.php');
        return true;
    }
public function load($class)
    {
        $class = ltrim($class, '\\');
        if (strncasecmp($class, 'Plop\\', 4)) {
            return false;
        }

        if (strpos($class, '://') !== false) {
            throw new \Exception('Possible exploitation attempt detected');
        }

        $class = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, substr($class, 5));
        require_once(__DIR__ . DIRECTORY_SEPARATOR . $class . '.php');
        return true;
    }
public function load ( $ class ) { $ class = ltrim ( $ class , '\\' ) ; if ( strncasecmp ( $ class , 'Plop\\' , 4 ) ) { return false ; } if ( strpos ( $ class , '://' ) !== false ) { throw new \ Exception ( 'Possible exploitation attempt detected' ) ; } $ class = str_replace ( array ( '_' , '\\' ) , DIRECTORY_SEPARATOR , substr ( $ class , 5 ) ) ; require_once ( __DIR__ . DIRECTORY_SEPARATOR . $ class . '.php' ) ; return true ; }
Attempt to load the given class.

\param string $class
Name of the class to load.

\note
This method only attempts to load Plop's classes.
It will return \a false if an attempt is made to
load a class that does not belong to Plop.

\retval bool
Whether the given class was successfully loaded
(\a true) or not (\a false).
Attempt to load the given class .