Properties

$_tpldata

$_tpldata : string

_tpldata

Type

string

$files

$files : string

files

Type

string

$root

$root : string

root

Type

string

$compiled_code

$compiled_code : string

compiled_code

Type

string

$uncompiled_code

$uncompiled_code : string

uncompiled_code

Type

string

$resultString

$resultString : string

resultString

Type

string

$cacher

$cacher : string

cacher

Type

string

Methods

__construct()

__construct(  $root = ".") : \JCORE\TEMPLATER\none

Constructor set Root path of the template

Parameters

$root

Returns

\JCORE\TEMPLATER\none

__destruct()

__destruct() : NULL

DESCRIPTOR: __destruct

Returns

NULL

destroy()

destroy() : NULL

DESCRIPTOR: destroy

Returns

NULL

set_rootdir()

set_rootdir(  $dir) : NULL

DESCRIPTOR: set_rootdir

Parameters

$dir

Returns

NULL

set_filenames()

set_filenames(  $filename_array) : NULL

DESCRIPTOR: set_filenames

Parameters

$filename_array

Returns

NULL

pparse()

pparse(  $handle) : NULL

DESCRIPTOR: pparse

Parameters

$handle

Returns

NULL

sparse()

sparse(  $handle,   $do_not_echo = false,   $retvar = '') : string

DESCRIPTOR: renders the template to a string

Parameters

$handle
$do_not_echo
$retvar

Returns

string —

newVar

render()

render(  $handle,   $oBc = null) : mixed

DESCRIPTOR: sets up the class for file output oBc Output Buffering Control SETTINGS: default: NULL will return a string of the rendered data BUFFER will send the rendered data to the output buffer FLUSH the rendered data will be sent to the output buffer and the buffer flushed immediately this function will re-render the contents very time it is called

Parameters

$handle
$oBc

Returns

mixed

assign_var_from_handle()

assign_var_from_handle(  $varname,   $handle) : mixed

assign_var_from_handle

Parameters

$varname
$handle

Returns

mixed

unset_block_vars()

unset_block_vars(  $blockname,   $vararray = null) : mixed

unset_block_vars vararray dafuq not even a call back

Parameters

$blockname
$vararray

Returns

mixed

assign_block_vars()

assign_block_vars(  $blockname,   $vararray) : mixed

assign_block_vars

Parameters

$blockname
$vararray

Returns

mixed

assign_vars()

assign_vars(  $vararray) : mixed

assign_vars

Parameters

$vararray

Returns

mixed

assign_var()

assign_var(  $varname,   $varval) : mixed

assign_var

Parameters

$varname
$varval

Returns

mixed

check_filename()

check_filename(  $filename) : mixed

check_filename

Parameters

$filename

Returns

mixed

loadfile()

loadfile(  $handle) : mixed

loadfile

Parameters

$handle

Returns

mixed

loadCachedFile()

loadCachedFile(  $handle) : mixed

loadCachedFile still dragging this boat anchor.

..implement this cache sometime eh?

Parameters

$handle

Returns

mixed

compile()

compile(  $code,   $do_not_echo = false,   $retvar = '') : mixed

compile

Parameters

$code
$do_not_echo
$retvar

Returns

mixed

generate_block_varref()

generate_block_varref(  $namespace,   $varname) : mixed

generate_block_varref

Parameters

$namespace
$varname

Returns

mixed

generate_block_data_ref()

generate_block_data_ref(  $blockname,   $include_last_iterator) : mixed

generate_block_data_ref

Parameters

$blockname
$include_last_iterator

Returns

mixed