PHP 클래스 Themosis\Load\Load

상속: implements Themosis\Load\ILoader
파일 보기 프로젝트 열기: themosis/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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