Inheritance diagram for PEIP_Simple_Autoload:
Public Member Functions | |
setClassPath ($class, $path) | |
setClassPaths (array $classPaths) | |
getClassPath ($class) | |
autoload ($class) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
__construct () | |
init () | |
Static Protected Member Functions | |
static | doGetInstance () |
Protected Attributes | |
$baseDir = null | |
$classPaths = array() | |
Static Protected Attributes | |
static | $instance |
Definition at line 19 of file PEIP_Simple_Autoload.php.
PEIP_Simple_Autoload::__construct | ( | ) | [protected] |
Constructor.
protected
Reimplemented in PEIP_Autoload.
Definition at line 33 of file PEIP_Simple_Autoload.php.
References init().
PEIP_Simple_Autoload::init | ( | ) | [protected] |
Initialization method. Registers autoload with this class.
protected
Definition at line 43 of file PEIP_Simple_Autoload.php.
References autoload().
Referenced by __construct(), and PEIP_Autoload::__construct().
static PEIP_Simple_Autoload::getInstance | ( | ) | [static] |
Retrieves Singleton instance
public
Definition at line 58 of file PEIP_Simple_Autoload.php.
static PEIP_Simple_Autoload::doGetInstance | ( | ) | [static, protected] |
Retrieves Singleton instance To be overwritten by subclasses
protected
Reimplemented in PEIP_Autoload.
Definition at line 72 of file PEIP_Simple_Autoload.php.
PEIP_Simple_Autoload::setClassPath | ( | $ | class, | |
$ | path | |||
) |
Sets a single file-path for a class
public
string | $class the class name | |
string | $path the path to the class-file |
Definition at line 84 of file PEIP_Simple_Autoload.php.
PEIP_Simple_Autoload::setClassPaths | ( | array $ | classPaths | ) |
Sets all class-paths as key(class)/value(path) pairs array
public
array | $classPaths class-paths as key(class)/value(path) pairs array |
Definition at line 95 of file PEIP_Simple_Autoload.php.
Referenced by PEIP_Autoload::__construct().
PEIP_Simple_Autoload::getClassPath | ( | $ | class | ) |
returns the path to a class-file (if registered)
public
string | $class the class name |
Definition at line 106 of file PEIP_Simple_Autoload.php.
Referenced by autoload().
PEIP_Simple_Autoload::autoload | ( | $ | class | ) |
handles the autoloading of classes
public
string | $class the class to load |
Definition at line 120 of file PEIP_Simple_Autoload.php.
References getClassPath().
Referenced by init().
PEIP_Simple_Autoload::$baseDir = null [protected] |
Definition at line 22 of file PEIP_Simple_Autoload.php.
Referenced by PEIP_Autoload::findPaths(), and PEIP_Autoload::make().
PEIP_Simple_Autoload::$classPaths = array() [protected] |
Definition at line 23 of file PEIP_Simple_Autoload.php.
PEIP_Simple_Autoload::$instance [static, protected] |
Definition at line 26 of file PEIP_Simple_Autoload.php.