Lines Matching refs:class
420 * @param string $class The name of the class
423 public function loadClass($class) argument
425 if ($file = $this->findFile($class)) {
438 * @param string $class The name of the class
442 public function findFile($class) argument
445 if (isset($this->classMap[$class])) {
446 return $this->classMap[$class];
448 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
452 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
458 $file = $this->findFileWithExtension($class, '.php');
462 $file = $this->findFileWithExtension($class, '.hh');
466 apcu_add($this->apcuPrefix.$class, $file);
471 $this->missingClasses[$class] = true;
488 * @param string $class
492 private function findFileWithExtension($class, $ext) argument
495 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
497 $first = $class[0];
499 $subPath = $class;
522 if (false !== $pos = strrpos($class, '\\')) {
528 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
533 if (0 === strpos($class, $prefix)) {