PHP Class Redaxscript\Autoloader

Since: 3.0.0
Author: Henry Ruhs
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_autoloadArray array array of the autoload
$_fileExtension string file extension

Public Methods

Method Description
init ( mixed $autoload = null ) init the class

Protected Methods

Method Description
_getFile ( string $className = null, string $namespace = null ) : string get the file
_load ( string $className = null ) load the class file

Method Details

_getFile() protected method

get the file
Since: 3.0.0
protected _getFile ( string $className = null, string $namespace = null ) : string
$className string name of the class
$namespace string
return string

_load() protected method

load the class file
Since: 3.0.0
protected _load ( string $className = null )
$className string name of the class

init() public method

init the class
Since: 3.0.0
public init ( mixed $autoload = null )
$autoload mixed key or collection of the autoload

Property Details

$_autoloadArray protected property

array of the autoload
protected array $_autoloadArray
return array

$_fileExtension protected property

file extension
protected string $_fileExtension
return string