PHP 클래스 mult1mate\crontab\TaskLoader

저자: mult1mate
파일 보기 프로젝트 열기: MUlt1mate/cron-manager 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$class_folders array Contains array of directories from which TaskLoader will try to load classes

공개 메소드들

메소드 설명
getAllMethods ( string | array $folder, string | array $namespace = [] ) : array Scan folders for classes and return all their public methods
getControllerMethods ( string $class ) : array Returns all public methods for requested class
loadController ( $class_name ) : boolean Looks for and loads required class via require_once
setClassFolder ( $folder ) : array Sets folders which contain needed classes

보호된 메소드들

메소드 설명
getControllersList ( array $paths, $namespaces_list ) : array Returns names of all php files in directories

메소드 상세

getAllMethods() 공개 정적인 메소드

Scan folders for classes and return all their public methods
public static getAllMethods ( string | array $folder, string | array $namespace = [] ) : array
$folder string | array
$namespace string | array
리턴 array

getControllerMethods() 공개 정적인 메소드

Returns all public methods for requested class
public static getControllerMethods ( string $class ) : array
$class string
리턴 array

getControllersList() 보호된 정적인 메소드

Returns names of all php files in directories
protected static getControllersList ( array $paths, $namespaces_list ) : array
$paths array
$namespaces_list
리턴 array

loadController() 공개 정적인 메소드

Looks for and loads required class via require_once
public static loadController ( $class_name ) : boolean
$class_name
리턴 boolean

setClassFolder() 공개 정적인 메소드

Sets folders which contain needed classes
public static setClassFolder ( $folder ) : array
$folder
리턴 array

프로퍼티 상세

$class_folders 보호되어 있는 정적으로 프로퍼티

Contains array of directories from which TaskLoader will try to load classes
protected static array $class_folders
리턴 array