PHP Class Themosis\Load\Load

Inheritance: implements Themosis\Load\ILoader
ファイルを表示 Open project: themosis/framework Class Usage Examples

Protected Properties

Property Type Description
$files array List of loaded files.
$paths array List of registered paths.

Public Methods

Method Description
__construct ( array $paths = [] ) Loader constructor.
add ( array $paths ) : Themosis\Load\ILoader Add paths to directories where to load files.
getFiles ( ) : array Return a list of loaded files.
load ( ) Load the files.

Protected Methods

Method Description
append ( string $path ) : boolean Scan the directory at the given path and include all files. Only 1 level iteration.

Method Details

__construct() public method

Loader constructor.
public __construct ( array $paths = [] )
$paths array Paths to look at (optional).

add() public method

Add paths to directories where to load files.
public add ( array $paths ) : Themosis\Load\ILoader
$paths array
return Themosis\Load\ILoader

append() protected method

Scan the directory at the given path and include all files. Only 1 level iteration.
protected append ( string $path ) : boolean
$path string The directory path.
return boolean

getFiles() public method

Return a list of loaded files.
public getFiles ( ) : array
return array

load() public method

Load the files.
public load ( )

Property Details

$files protected_oe property

List of loaded files.
protected array $files
return array

$paths protected_oe property

List of registered paths.
protected array $paths
return array