The Autoload class.
More...
|
static | register (string $namespace, string $path, array $suffixes=null) |
| Register ourself with php. More...
|
|
The Autoload class.
Used to autoload classes
◆ get_namespace()
EPF\Autoload::get_namespace |
( |
| ) |
|
Get the namespace.
- Return values
-
◆ get_path()
EPF\Autoload::get_path |
( |
| ) |
|
Get the base path.
- Return values
-
◆ get_suffixes()
EPF\Autoload::get_suffixes |
( |
| ) |
|
Get the suffixes.
- Return values
-
◆ load()
EPF\Autoload::load |
( |
string |
$class | ) |
|
Load a class.
- Parameters
-
[in] | string | class The class to load (namespaced) |
◆ register()
static EPF\Autoload::register |
( |
string |
$namespace, |
|
|
string |
$path, |
|
|
array |
$suffixes = null |
|
) |
| |
|
static |
Register ourself with php.
- Parameters
-
[in] | string | namespace Namespace |
[in] | string | path Base path |
[in] | array | suffixes Suffixes |
- Return values
-
◆ DEFAULT_SUFFIXES
const EPF\Autoload::DEFAULT_SUFFIXES |
Initial value:Default suffixes for file lookups
The documentation for this class was generated from the following file: