Autoloader
in package
Table of Contents
- CLASSES_NAMESPACE_PREFIX = 'MPHB\\'
- $basePath : string
- $classDirSeparator : string
- $customPathList : mixed
- $prefixLength : int
- __construct() : mixed
- autoload() : mixed
- convertClassToPath() : string
- convertToFilePath() : mixed
- defaultConvert() : mixed
- lowerCamelCase() : mixed
- replaceUnderscores() : mixed
- setupCustomPathList() : mixed
Constants
CLASSES_NAMESPACE_PREFIX
public
mixed
CLASSES_NAMESPACE_PREFIX
= 'MPHB\\'
Properties
$basePath
private
string
$basePath
$classDirSeparator
private
string
$classDirSeparator
$customPathList
private
mixed
$customPathList
= array()
$prefixLength
private
int
$prefixLength
Methods
__construct()
public
__construct(string $basePath) : mixed
Parameters
- $basePath : string
-
Path to plugin directory
Return values
mixed —autoload()
public
autoload(string $class) : mixed
Parameters
- $class : string
Return values
mixed —convertClassToPath()
private
convertClassToPath(string $class) : string
Parameters
- $class : string
Return values
string —Relative path to classfile.
convertToFilePath()
private
convertToFilePath(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —defaultConvert()
private
defaultConvert(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —lowerCamelCase()
private
lowerCamelCase(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —replaceUnderscores()
private
replaceUnderscores(mixed $path) : mixed
Parameters
- $path : mixed
Return values
mixed —setupCustomPathList()
private
setupCustomPathList() : mixed