LegacyClassLoader
in package
LegacyClassLoader
Tags
Table of Contents
Properties
- $classLoader : mixed
- $bytes : mixed
- $cx : mixed
- $extraClassRepositoryFile : mixed
- $instance : mixed
- $mapTable : mixed
- $subBytes : mixed
- $tab : mixed
- $timeUsed : mixed
- $userClassCacheFile : mixed
Methods
- __construct() : mixed
- autoload() : mixed
- getInstance() : mixed
- getRamUsed() : mixed
- getTimeUsed() : mixed
- checkClassExistsInFile() : bool
- This function checks if the class exists in the given file. The namespace will also be check if isset
- fallbackLoad() : mixed
- This method won't work for all files at once because max exec time is too short
- loadClass() : mixed
- loadFromCache() : mixed
- searchClass() : mixed
- testLoad() : mixed
Properties
$classLoader
protected
mixed
$classLoader
= null
$bytes
private
mixed
$bytes
= 0
$cx
private
mixed
$cx
= null
$extraClassRepositoryFile
private
mixed
$extraClassRepositoryFile
$instance
private
static mixed
$instance
= null
$mapTable
private
mixed
$mapTable
= array()
$subBytes
private
mixed
$subBytes
= 0
$tab
private
mixed
$tab
= 0
$timeUsed
private
mixed
$timeUsed
= 0
$userClassCacheFile
private
mixed
$userClassCacheFile
Methods
__construct()
public
__construct(mixed $classLoader, mixed $cx) : mixed
Parameters
- $classLoader : mixed
- $cx : mixed
autoload()
public
autoload(mixed $name) : mixed
Parameters
- $name : mixed
getInstance()
public
static getInstance() : mixed
getRamUsed()
public
getRamUsed() : mixed
getTimeUsed()
public
getTimeUsed() : mixed
checkClassExistsInFile()
This function checks if the class exists in the given file. The namespace will also be check if isset
protected
checkClassExistsInFile(mixed $name, mixed $file[, string $namespace = "" ]) : bool
Parameters
- $name : mixed
-
Classname
- $file : mixed
-
name of file where class should be
- $namespace : string = ""
-
namespace of the class
Tags
Return values
boolfallbackLoad()
This method won't work for all files at once because max exec time is too short
private
fallbackLoad(type $name, type $className) : mixed
Parameters
- $name : type
- $className : type
loadClass()
private
loadClass(mixed $path, mixed $name) : mixed
Parameters
- $path : mixed
- $name : mixed
loadFromCache()
private
loadFromCache(mixed $name) : mixed
Parameters
- $name : mixed
searchClass()
private
searchClass(mixed $name, mixed $namespace[, mixed $path = '' ]) : mixed
Parameters
- $name : mixed
- $namespace : mixed
- $path : mixed = ''
testLoad()
private
testLoad(mixed $path, mixed $name) : mixed
Parameters
- $path : mixed
- $name : mixed