
Public Member Functions | |
| configure (array $configuration=array()) | |
| getNamespace () | |
| setNamespace ($namespace) | |
| getBaseDir () | |
| setBaseDir ($baseDir) | |
| getClassName ($className) | |
| getFileName ($className) | |
| load ($className) | |
| loadInstance ($className, array $parameters=array()) | |
Protected Attributes | |
| $namespace | |
| $baseDir | |
Definition at line 13 of file Abstract.php.
| Panda_Loader_Abstract::configure | ( | array $ | configuration = array() |
) |
Configures the loader
Configurable values are:
[namespace] string The namespace to use
[baseDir] string The base directory to use
[load] string|array A class or array of classes to automatically load
| array | $configuration |
Implements Panda_Configurable_Interface.
Definition at line 41 of file Abstract.php.
References load(), setBaseDir(), and setNamespace().
| Panda_Loader_Abstract::getNamespace | ( | ) |
Returns the current namespace
Implements Panda_Loader_Interface.
Definition at line 68 of file Abstract.php.
| Panda_Loader_Abstract::setNamespace | ( | $ | namespace | ) |
Sets the namespace
| string | $namespace |
Implements Panda_Loader_Interface.
Definition at line 78 of file Abstract.php.
References $namespace.
Referenced by configure().
| Panda_Loader_Abstract::getBaseDir | ( | ) |
Returns the base directory to load from
Implements Panda_Loader_Interface.
Definition at line 88 of file Abstract.php.
| Panda_Loader_Abstract::setBaseDir | ( | $ | baseDir | ) |
Sets the base directory to load from
| string | $baseDir |
Implements Panda_Loader_Interface.
Definition at line 98 of file Abstract.php.
References $baseDir.
Referenced by configure().
| Panda_Loader_Abstract::getClassName | ( | $ | className | ) |
Returns a fully namespaced class name
| string | $className |
Implements Panda_Loader_Interface.
Definition at line 109 of file Abstract.php.
Referenced by getFileName(), and loadInstance().
| Panda_Loader_Abstract::getFileName | ( | $ | className | ) |
Returns a full path and file name of the given class
| string | $className |
Implements Panda_Loader_Interface.
Definition at line 125 of file Abstract.php.
References getClassName().
Referenced by load().
| Panda_Loader_Abstract::load | ( | $ | className | ) |
Loads a class file in from a class name
| string | $className |
Implements Panda_Loader_Interface.
Definition at line 142 of file Abstract.php.
References getFileName().
Referenced by configure(), and loadInstance().
| Panda_Loader_Abstract::loadInstance | ( | $ | className, | |
| array $ | parameters = array() | |||
| ) |
Loads a class file and returns an instance from the provided class name
| string | $className | |
| array | $parameters | |
| object | The instance of the class |
Implements Panda_Loader_Interface.
Definition at line 162 of file Abstract.php.
References getClassName(), and load().
Panda_Loader_Abstract::$namespace [protected] |
Panda_Loader_Abstract::$baseDir [protected] |
1.5.4