Свойство | Тип | Описание | |
---|---|---|---|
$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 |
public static getControllerMethods ( string $class ) : array | ||
$class | string | |
Результат | array |
protected static getControllersList ( array $paths, $namespaces_list ) : array | ||
$paths | array | |
$namespaces_list | ||
Результат | array |
public static loadController ( $class_name ) : boolean | ||
$class_name | ||
Результат | boolean |
public static setClassFolder ( $folder ) : array | ||
$folder | ||
Результат | array |
protected static array $class_folders | ||
Результат | array |