Lines Matching refs:class
295 * @param string $class The name of the class
298 public function loadClass($class) argument
300 if ($file = $this->findFile($class)) {
310 * @param string $class The name of the class
314 public function findFile($class) argument
317 if ('\\' == $class[0]) {
318 $class = substr($class, 1);
322 if (isset($this->classMap[$class])) {
323 return $this->classMap[$class];
329 $file = $this->findFileWithExtension($class, '.php');
333 $file = $this->findFileWithExtension($class, '.hh');
338 return $this->classMap[$class] = false;
344 private function findFileWithExtension($class, $ext) argument
347 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
349 $first = $class[0];
352 if (0 === strpos($class, $prefix)) {
370 if (false !== $pos = strrpos($class, '\\')) {
376 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
381 if (0 === strpos($class, $prefix)) {