XOOPS
2.6.0
|
Public Member Functions | |
addNamespace ($prefix, $base_dir, $prepend=false) | |
loadClass ($class) | |
register () | |
Static Public Member Functions | |
static | addLoader ($namespace, $path) |
Protected Member Functions | |
loadMappedFile ($prefix, $relative_class) | |
requireFile ($file) | |
Protected Attributes | |
$prefixes = array() | |
Definition at line 91 of file Psr4ClassLoader.php.
|
static |
addLoader sets all basic options and registers the autoloader
type | $namespace | namespace |
mixed | $path | path(s) to the namespace's directories Can be string - only one directory or array of strings - multiple directories |
Definition at line 111 of file Psr4ClassLoader.php.
References $path.
Xoops\Core\Psr4ClassLoader::addNamespace | ( | $prefix, | |
$base_dir, | |||
$prepend = false |
|||
) |
Adds a base directory for a namespace prefix.
string | $prefix | The namespace prefix. |
string | $base_dir | Base directory for class files in namespace. |
bool | $prepend | If true, prepend the base directory to the stack instead of appending it; this causes it to be searched first rather than last. |
Definition at line 147 of file Psr4ClassLoader.php.
References DIRECTORY_SEPARATOR.
Xoops\Core\Psr4ClassLoader::loadClass | ( | $class | ) |
Loads the class file for a given class name.
string | $class | The fully-qualified class name. |
Definition at line 177 of file Psr4ClassLoader.php.
References Xoops\Core\Psr4ClassLoader\loadMappedFile().
|
protected |
Load the mapped file for a namespace prefix and relative class.
string | $prefix | The namespace prefix. |
string | $relative_class | The relative class name. |
Definition at line 215 of file Psr4ClassLoader.php.
References $file, and Xoops\Core\Psr4ClassLoader\requireFile().
Referenced by Xoops\Core\Psr4ClassLoader\loadClass().
Xoops\Core\Psr4ClassLoader::register | ( | ) |
Register loader with SPL autoloader stack.
Definition at line 131 of file Psr4ClassLoader.php.
|
protected |
If a file exists, require it from the file system.
string | $file | The file to require. |
Definition at line 249 of file Psr4ClassLoader.php.
References $file.
Referenced by Xoops\Core\Psr4ClassLoader\loadMappedFile().
|
protected |
Definition at line 99 of file Psr4ClassLoader.php.