Lines Matching refs:class
422 * @param string $class The name of the class
425 public function loadClass($class) argument
427 if ($file = $this->findFile($class)) {
439 * @param string $class The name of the class
443 public function findFile($class) argument
446 if (isset($this->classMap[$class])) {
447 return $this->classMap[$class];
449 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
453 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
459 $file = $this->findFileWithExtension($class, '.php');
463 $file = $this->findFileWithExtension($class, '.hh');
467 apcu_add($this->apcuPrefix.$class, $file);
472 $this->missingClasses[$class] = true;
489 * @param string $class
493 private function findFileWithExtension($class, $ext) argument
496 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
498 $first = $class[0];
500 $subPath = $class;
523 if (false !== $pos = strrpos($class, '\\')) {
529 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
534 if (0 === strpos($class, $prefix)) {