PHP Class Mlp_Autoload_Rule

Since: 2013.08.18
Author: toscho
Inheritance: implements Inpsyde_Autoload_Rule_Interface
Mostra file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( string $dir ) Constructor
load ( string $name ) : boolean Parse class/trait/interface name and load file.

Private Methods

Method Description
prepare_name ( string $name ) : string | boolean Check for namespaces and matching file name.

Method Details

__construct() public method

Constructor
public __construct ( string $dir )
$dir string

load() public method

Parse class/trait/interface name and load file.
public load ( string $name ) : boolean
$name string
return boolean