Lines Matching refs:class
316 * @param string $class The name of the class
319 public function loadClass($class) argument
321 if ($file = $this->findFile($class)) {
331 * @param string $class The name of the class
335 public function findFile($class) argument
338 if (isset($this->classMap[$class])) {
339 return $this->classMap[$class];
341 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
345 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
351 $file = $this->findFileWithExtension($class, '.php');
355 $file = $this->findFileWithExtension($class, '.hh');
359 apcu_add($this->apcuPrefix.$class, $file);
364 $this->missingClasses[$class] = true;
370 private function findFileWithExtension($class, $ext) argument
373 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
375 $first = $class[0];
377 $subPath = $class;
400 if (false !== $pos = strrpos($class, '\\')) {
406 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
411 if (0 === strpos($class, $prefix)) {