PHP Класс Themosis\Load\Load

Наследование: implements Themosis\Load\ILoader
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$files array List of loaded files.
$paths array List of registered paths.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
append ( string $path ) : boolean Scan the directory at the given path and include all files. Only 1 level iteration.

Описание методов

__construct() публичный Метод

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

add() публичный Метод

Add paths to directories where to load files.
public add ( array $paths ) : Themosis\Load\ILoader
$paths array
Результат Themosis\Load\ILoader

append() защищенный Метод

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.
Результат boolean

getFiles() публичный Метод

Return a list of loaded files.
public getFiles ( ) : array
Результат array

load() публичный Метод

Load the files.
public load ( )

Описание свойств

$files защищенное свойство

List of loaded files.
protected array $files
Результат array

$paths защищенное свойство

List of registered paths.
protected array $paths
Результат array