class TemplatesRepository

Class TemplatesRepository is used to retrieve template data

Methods

__construct(TemplatesManager $TemplatesManager, Framework $Framework, $File = null)

No description

array
getTemplateByPath(string $templatePath)

Get template and any related data by using its template path to retrieve its related data from the templates config

array
allTemplatesPaginated(integer $perPage = 25)

Get an array of all template paths and human names

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

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

array
compileAllUsedVars()

compiles an array of all of the variables used in the application

Details

at line 13
__construct(TemplatesManager $TemplatesManager, Framework $Framework, $File = null)

Parameters

TemplatesManager $TemplatesManager
Framework $Framework
$File

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

Parameters

string $templatePath

Return Value

array

at line 62
array allTemplatesPaginated(integer $perPage = 25)

Get an array of all template paths and human names

Parameters

integer $perPage

Return Value

array

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

Parameters

boolean $showHumanName False returns just paths array

Return Value

array

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

Return Value

array

at line 158
array compileAllUsedVars()

compiles an array of all of the variables used in the application

Return Value

array