Panda_Loader_Abstract Class Reference

Inheritance diagram for Panda_Loader_Abstract:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Definition at line 13 of file Abstract.php.


Member Function Documentation

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

Parameters:
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

Returns:
string

Implements Panda_Loader_Interface.

Definition at line 68 of file Abstract.php.

Panda_Loader_Abstract::setNamespace ( namespace  ) 

Sets the namespace

Parameters:
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

Returns:
string

Implements Panda_Loader_Interface.

Definition at line 88 of file Abstract.php.

Panda_Loader_Abstract::setBaseDir ( baseDir  ) 

Sets the base directory to load from

Parameters:
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

Parameters:
string $className
Returns:
string

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

Parameters:
string $className
Returns:
string

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

Parameters:
string $className
Returns:
boolean True if the file was loaded, false otherwise.

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

Parameters:
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().


Member Data Documentation

Panda_Loader_Abstract::$namespace [protected]

Definition at line 22 of file Abstract.php.

Referenced by setNamespace().

Panda_Loader_Abstract::$baseDir [protected]

Definition at line 29 of file Abstract.php.

Referenced by setBaseDir().


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 01:56:50 2008 for Panda PHP Components by  doxygen 1.5.4