Methods
All methods in the Solar_Class_Stack class.
Public
-
__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.
Protected
-
_buildConfig() -
Builds and returns the default config for a class, including all configs inherited from its parents.
-
_exception() -
Convenience method for returning exceptions with localized text.
-
_postConfig() -
A hook that activates after _buildConfig() in the constructor.
-
_postConstruct() -
A hook that activates at the end of the constructor.
-
_preConfig() -
A hook that activates before _buildConfig() in the constructor.
-
_run() -
Loads the class file in a limited scope.
Private
None.