ClassLoader
class ClassLoader
A class that handles loading classes and interfaces from a class manifest instance.
Methods
No description
Returns the currently active class manifest instance that is used for loading classes.
Returns true if this class loader has a manifest.
Pushes a class manifest instance onto the top of the stack.
No description
No description
Loads a class or interface if it is present in the currently active manifest.
Returns the path for a class or interface in the currently active manifest, or any previous ones if later manifests aren't set to "exclusive".
Initialise the class loader
Returns true if a class or interface name exists in the manifest.
Details
at line 31
static ClassLoader
inst()
at line 42
ClassManifest
getManifest()
Returns the currently active class manifest instance that is used for loading classes.
at line 50
hasManifest()
Returns true if this class loader has a manifest.
at line 62
pushManifest(ClassManifest $manifest, bool $exclusive = true)
Pushes a class manifest instance onto the top of the stack.
at line 70
ClassManifest
popManifest()
at line 76
registerAutoloader()
at line 88
String
loadClass(string $class)
Loads a class or interface if it is present in the currently active manifest.
at line 103
string|false
getItemPath(string $class)
Returns the path for a class or interface in the currently active manifest, or any previous ones if later manifests aren't set to "exclusive".
at line 124
init(bool $includeTests = false, bool $forceRegen = false)
Initialise the class loader
at line 141
bool
classExists(string $class)
Returns true if a class or interface name exists in the manifest.