class SS_ClassLoader

A class that handles loading classes and interfaces from a class manifest instance.

Methods

static SS_ClassLoader
instance()

No description

getManifest()

Returns the currently active class manifest instance that is used for loading classes.

hasManifest()

Returns true if this class loader has a manifest.

pushManifest(SS_ClassManifest $manifest, Boolean $exclusive = true)

Pushes a class manifest instance onto the top of the stack.

popManifest()

No description

registerAutoloader()

No description

String
loadClass(string $class)

Loads a class or interface if it is present in the currently active manifest.

String
getItemPath($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".

bool
classExists(string $class)

Returns true if a class or interface name exists in the manifest.

Details

at line 24
static SS_ClassLoader instance()

Return Value

SS_ClassLoader

at line 34
SS_ClassManifest getManifest()

Returns the currently active class manifest instance that is used for loading classes.

Return Value

SS_ClassManifest

at line 41
hasManifest()

Returns true if this class loader has a manifest.

at line 52
pushManifest(SS_ClassManifest $manifest, Boolean $exclusive = true)

Pushes a class manifest instance onto the top of the stack.

Parameters

SS_ClassManifest $manifest
Boolean $exclusive Marks the manifest as exclusive. If set to FALSE, will look for classes in earlier manifests as well.

at line 59
SS_ClassManifest popManifest()

Return Value

SS_ClassManifest

at line 64
registerAutoloader()

at line 75
String loadClass(string $class)

Loads a class or interface if it is present in the currently active manifest.

Parameters

string $class

Return Value

String

at line 88
String getItemPath($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".

Parameters

$class

Return Value

String

at line 103
bool classExists(string $class)

Returns true if a class or interface name exists in the manifest.

Parameters

string $class

Return Value

bool