Метод | Описание | |
---|---|---|
__construct ( |
||
allTemplatesPaginated ( integer $perPage = 25 ) : array | Get an array of all template paths and human names | |
compileAllUsedVars ( ) : array | compiles an array of all of the variables used in the application | |
getTemplateByPath ( string $templatePath ) : array | Get template and any related data by using its template path to retrieve its related data from the templates config | |
registeredTemplatesList ( boolean $showHumanName = true ) : array | Get an array of all registered templates as an array of paths and human names; registered means already in templates config | |
unregisteredTemplatesList ( ) : array | Get list of unregistered templates by finding all app template files which are not stored (do not have path key) in the templates config |
Метод | Описание | |
---|---|---|
getTemplateExtends ( string $templateSource ) : array | Get the extends/layout string from given template source/contents | |
getTemplateSourceByPath ( $templatePath ) : array | Get the extends/layout string from given template path | |
getVarsFromSource ( array $template, string $templateSource, string $excludeArr = ['$page', '$input', '$params'] ) : array | Regex template source/contents to find all variables. An array of variables to ignore from results is also accepted |
Метод | Описание | |
---|---|---|
splitVarsAndNewVars ( $template ) |
public __construct ( |
||
$TemplatesManager | ||
$Framework |
public allTemplatesPaginated ( integer $perPage = 25 ) : array | ||
$perPage | integer | |
Результат | array |
public compileAllUsedVars ( ) : array | ||
Результат | array |
public getTemplateByPath ( string $templatePath ) : array | ||
$templatePath | string | |
Результат | array |
protected getTemplateExtends ( string $templateSource ) : array | ||
$templateSource | string | |
Результат | array |
protected getTemplateSourceByPath ( $templatePath ) : array | ||
Результат | array |
public registeredTemplatesList ( boolean $showHumanName = true ) : array | ||
$showHumanName | boolean | False returns just paths array |
Результат | array |
public unregisteredTemplatesList ( ) : array | ||
Результат | array |