\Orpheus\CoreClassLoader

Official Orpheus class loader

Summary

Methods
Properties
Constants
__construct()
__toString()
unregister()
register()
loadClass()
setClass()
get()
set()
isValid()
getClasses()
No public properties found
No constants found
No protected methods found
$classes
$loader
N/A
No private methods found
No private properties found
N/A

Properties

$classes

$classes : array

The known class mapping

Type

array

Methods

__construct()

__construct() 

Constructor

__toString()

__toString() : string

Get the string representation of the ClassLoader

Returns

string

unregister()

unregister() 

Unregister object from the SPL

register()

register(  $prepend = false) 

Register object to the SPL

Parameters

$prepend

loadClass()

loadClass(string  $className) 

Load class file

Parameters

string $className

Throws

\Exception

setClass()

setClass(string  $className, string  $classPath) : boolean

Set the file path to the class

Parameters

string $className
string $classPath

Throws

\Exception

Returns

boolean

isValid()

isValid() : boolean

Check if active loader is valid

Returns

boolean

getClasses()

getClasses() : array

Get the known classes

Returns

array