Lines Matching refs:class
338 * @param string $class The name of the class
341 public function loadClass($class) argument
343 if ($file = $this->findFile($class)) {
353 * @param string $class The name of the class
357 public function findFile($class) argument
360 if (isset($this->classMap[$class])) {
361 return $this->classMap[$class];
363 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
367 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
373 $file = $this->findFileWithExtension($class, '.php');
377 $file = $this->findFileWithExtension($class, '.hh');
381 apcu_add($this->apcuPrefix.$class, $file);
386 $this->missingClasses[$class] = true;
402 private function findFileWithExtension($class, $ext) argument
405 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
407 $first = $class[0];
409 $subPath = $class;
432 if (false !== $pos = strrpos($class, '\\')) {
438 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
443 if (0 === strpos($class, $prefix)) {