TemplatesRepository
class TemplatesRepository
Class TemplatesRepository is used to retrieve template data
Methods
No description
Get template and any related data by using its template path to retrieve its related data from the templates config
Get an array of all template paths and human names
Get an array of all registered templates as an array of paths and human names; registered means already in templates config
Get list of unregistered templates by finding all app template files which are not stored (do not have path key) in the templates config
compiles an array of all of the variables used in the application
Details
at line 13
__construct(TemplatesManager $TemplatesManager, Framework $Framework, $File = null)
at line 31
array
getTemplateByPath(string $templatePath)
Get template and any related data by using its template path to retrieve its related data from the templates config
at line 62
array
allTemplatesPaginated(integer $perPage = 25)
Get an array of all template paths and human names
at line 85
array
registeredTemplatesList(boolean $showHumanName = true)
Get an array of all registered templates as an array of paths and human names; registered means already in templates config
at line 119
array
unregisteredTemplatesList()
Get list of unregistered templates by finding all app template files which are not stored (do not have path key) in the templates config
at line 158
array
compileAllUsedVars()
compiles an array of all of the variables used in the application