Overview
Stack for loading classes from user-defined hierarchies.
As you add classes to the stack, they are searched-for first when you call Solar_Class_Stack::load().
Configuration Keys
None.
Constants
None.
Public Properties
The Solar_Class_Stack class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Class_Stack class.
You can also view the list of all public, protected, and private methods.
-
__construct()
-
Constructor.
-
__destruct()
-
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
-
add()
-
Adds one or more classes to the stack.
-
addByParents()
-
Given a class or object, add itself and its parents to the stack, optionally tracking cross-hierarchy shifts around a base name.
-
addByVendors()
-
Given a class or object, add its vendor and its parent vendors to the stack; optionally, add a standard suffix base to the vendor name.
-
dump()
-
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
get()
-
Gets a copy of the current stack.
-
load()
-
Loads a class using the class stack prefixes.
-
locale()
-
Looks up class-specific locale strings based on a key.
-
set()
-
Clears the stack and adds one or more classes.
-
setByParents()
-
Given a class or object, set the stack based on itself and its parents, optionally tracking cross-hierarchy shifts around a base name.
-
setByVendors()
-
Given a class or object, set the stack based on its vendor and its parent vendors; optionally, add a standard suffix base to the vendor name.