Class ztemplate
zTemplate class
Located at ztemplate/opensourceame.ztemplate.php
public
boolean
|
#
__construct(
string
$file = null,
array
$options = null
)
Class constructor
Class constructor Parameters
Returnsbooleantrue on successul load and parse of the template, otherwise false |
public
|
#
load_template(
$file
)
used to to manually load a template if one is not specified when constructing
used to to manually load a template if one is not specified when constructing |
public
|
|
public
array
|
|
private
|
|
private
|
|
public
|
|
public
|
#
assign_file(
$var,
$file
)
assign a file that can be included into the current template
assign a file that can be included into the current template |
public
|
|
public
|
|
public
|
|
private
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
var_is_set(
string
$var
)
Check if a variable has been set
Check if a variable has been set Parameters
Returnsboolean |
private
|
|
private
boolean
|
#
parse_add_line(
string
$block,
string
$line
)
Add a line to the parsed block
Add a line to the parsed block Parameters
Returnsboolean |
private
boolean
|
#
parse_template_file(
string
$file,
string
$bp = null
)
Parse a template
Parse a template Parameters
Returnsboolean |
public
string
|
string
|
version
|
'1.1.8' |
private
boolean
|
$template | true |
|
private
array
|
$cachedblocks | array() |
|
private
array
|
$blocks | array() |
|
private
array
|
$parsed | array() |
|
protected
array
|
$stblocks | array() |