Lines Matching refs:class
49 * would cause the function to attempt to load the \SimplePie\SimplePie class
54 * @param string $class The fully-qualified class name.
57 spl_autoload_register(function ($class) {
65 // does the class use the namespace prefix?
67 if (strncmp($prefix, $class, $len) !== 0) {
72 // get the relative class name
73 $relative_class = substr($class, $len);
76 // separators with directory separators in the relative class name, append
95 * Autoloader class
100 class SimplePie_Autoloader
115 * @param string $class The name of the class to attempt to load.
117 public function autoload($class)
119 // Only load the class if it starts with "SimplePie"
120 if (strpos($class, 'SimplePie') !== 0)
125 $filename = $this->path . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';