class SS_ClassLoader (View source)

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

Properties

protected array $manifests

Methods

public static 
instance()

No description

public
getManifest()

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

public
hasManifest()

Returns true if this class loader has a manifest.

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

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

public
popManifest()

No description

public
registerAutoloader()

No description

public
string
loadClass(string $class)

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

public
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".

public
bool
classExists(string $class)

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

Details

static SS_ClassLoader instance()

No description

Return Value

SS_ClassLoader

SS_ClassManifest getManifest()

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

Return Value

SS_ClassManifest

hasManifest()

Returns true if this class loader has a manifest.

pushManifest(SS_ClassManifest $manifest, $exclusive = true)

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

Parameters

SS_ClassManifest $manifest
$exclusive

SS_ClassManifest popManifest()

No description

Return Value

SS_ClassManifest

registerAutoloader()

No description

string loadClass(string $class)

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

Parameters

string $class

Return Value

string

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

bool classExists(string $class)

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

Parameters

string $class

Return Value

bool