Properties

$theme

$theme : 

Type

$templates

$templates : 

Type

$compiledTemplates

$compiledTemplates : 

Type

$templateTags

$templateTags : 

Type

$staticTags

$staticTags : 

Type

$sidebar

$sidebar : array

Type

array — 默认侧栏

$sidebar2

$sidebar2 : array

Type

array — 侧栏2

$sidebar3

$sidebar3 : array

Type

array — 侧栏3

$sidebar4

$sidebar4 : array

Type

array — 侧栏4

$sidebar5

$sidebar5 : array

Type

array — 侧栏5

$sidebar6

$sidebar6 : array

Type

array — 侧栏6

$sidebar7

$sidebar7 : array

Type

array — 侧栏77

$sidebar8

$sidebar8 : array

Type

array — 侧栏8

$sidebar9

$sidebar9 : array

Type

array — 侧栏9

$path

$path : 

Type

$entryPage

$entryPage : 

Type

$uncompiledCodeStore

$uncompiledCodeStore : 

Type

Methods

__construct()

__construct() 

SetPath()

SetPath(  $path) 

Parameters

$path

GetPath()

GetPath() : null

Returns

null

HasTemplate()

HasTemplate(  $name) : boolean

Parameters

$name

Returns

boolean

GetTemplate()

GetTemplate(  $name) : string

Parameters

$name

Returns

string

SetTemplate()

SetTemplate(  $templatename) 

Parameters

$templatename

GetTags()

GetTags(  $name) : mixed

Parameters

$name

Returns

mixed

SetTags()

SetTags(  $name,   $value) 

Parameters

$name
$value

GetTagsAll()

GetTagsAll() : array

Returns

array

SetTagsAll()

SetTagsAll(  $array) 

Parameters

$array

CompileFiles()

CompileFiles() 

编译所有文件.

BuildTemplate()

BuildTemplate() : boolean

初始化并编译所有文件.

Returns

boolean

CompileFile()

CompileFile(  $content) : mixed

Parameters

$content

Returns

mixed

Display()

Display(string  $entryPage = "") 

显示模板

Parameters

string $entryPage

Throws

\Exception

Output()

Output(string  $entryPage = "") : string

获取输出内容.

Parameters

string $entryPage

Throws

\Exception

Returns

string

LoadCompiledTemplates()

LoadCompiledTemplates() 

载入已编译模板s.

LoadTemplates()

LoadTemplates() 

载入未编译模板s.

MakeTemplateTags()

MakeTemplateTags() 

解析模板标签.

ReplaceStaticTags()

ReplaceStaticTags(  $s) 

Parameters

$s

GetCurrentTemplate()

GetCurrentTemplate() 

addNonexistendTags()

addNonexistendTags() 

remove_php_blocks()

remove_php_blocks(  $content) 

Parameters

$content

parse_comments()

parse_comments(  $content) 

Parameters

$content

parse_uncompile_code()

parse_uncompile_code(  $content) 

Parameters

$content

parse_back_uncompile_code()

parse_back_uncompile_code(  $content) 

Parameters

$content

parse_template()

parse_template(  $content) 

Parameters

$content

parse_module()

parse_module(  $content) 

Parameters

$content

parse_option()

parse_option(  $content) 

Parameters

$content

parse_vars()

parse_vars(  $content) 

Parameters

$content

parse_function()

parse_function(  $content) 

Parameters

$content

parse_if()

parse_if(  $content) 

Parameters

$content

parse_if_sub()

parse_if_sub(  $matches) : string

Parameters

$matches

Returns

string

parse_elseif()

parse_elseif(  $matches) : string

Parameters

$matches

Returns

string

parse_foreach()

parse_foreach(  $content) 

Parameters

$content

parse_foreach_sub()

parse_foreach_sub(  $matches) : string

Parameters

$matches

Returns

string

parse_for()

parse_for(  $content) 

Parameters

$content

parse_for_sub()

parse_for_sub(  $matches) : string

Parameters

$matches

Returns

string

parse_vars_replace_dot()

parse_vars_replace_dot(  $matches) : string

Parameters

$matches

Returns

string

parse_funtion_replace_dot()

parse_funtion_replace_dot(  $matches) : string

Parameters

$matches

Returns

string

replace_dot()

replace_dot(  $content) : mixed

Parameters

$content

Returns

mixed