PHP 클래스 Devise\Templates\TemplatesRepository

파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
__construct ( TemplatesManager $TemplatesManager, Framework $Framework, $File = null )
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( TemplatesManager $TemplatesManager, Framework $Framework, $File = null )
$TemplatesManager TemplatesManager
$Framework Devise\Support\Framework

allTemplatesPaginated() 공개 메소드

Get an array of all template paths and human names
public allTemplatesPaginated ( integer $perPage = 25 ) : array
$perPage integer
리턴 array

compileAllUsedVars() 공개 메소드

compiles an array of all of the variables used in the application
public compileAllUsedVars ( ) : array
리턴 array

getTemplateByPath() 공개 메소드

Get template and any related data by using its template path to retrieve its related data from the templates config
public getTemplateByPath ( string $templatePath ) : array
$templatePath string
리턴 array

getTemplateExtends() 보호된 메소드

Get the extends/layout string from given template source/contents
protected getTemplateExtends ( string $templateSource ) : array
$templateSource string
리턴 array

getTemplateSourceByPath() 보호된 메소드

Get the extends/layout string from given template path
protected getTemplateSourceByPath ( $templatePath ) : array
리턴 array

getVarsFromSource() 보호된 메소드

Regex template source/contents to find all variables. An array of variables to ignore from results is also accepted
protected getVarsFromSource ( array $template, string $templateSource, string $excludeArr = ['$page', '$input', '$params'] ) : array
$template array
$templateSource string
$excludeArr string Strings to be excluded/omitted
리턴 array

registeredTemplatesList() 공개 메소드

Get an array of all registered templates as an array of paths and human names; registered means already in templates config
public registeredTemplatesList ( boolean $showHumanName = true ) : array
$showHumanName boolean False returns just paths array
리턴 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
public unregisteredTemplatesList ( ) : array
리턴 array