Autoload needed classes

author etessore
version 1.0.1
package classes

 Methods

Initializes the autoloader

__construct() 

Set the loading template

add_loading_template(string $tpl) : \ClassAutoloader

Parameters

$tpl

string

the template

Returns

\ClassAutoloader$this for chainability

Register the autoload function to PHP

register_autoload() 

Autoload needed classes

loader(String $className) : \ClassAutoloader

Parameters

$className

String

the name of the class

Returns

\ClassAutoloader$this for chainability

 Properties

 

stores the path the system will scan for files

$loading_template : array

 Constants

 

WORDPRESS_THEME_UTILS_CLASS_DIR

WORDPRESS_THEME_UTILS_CLASS_DIR