$#! | |
__construct | |
C | |
call_tag, STECore | |
E | |
evalbool, STECore | |
exectemplate, STECore | |
G | |
get_var_by_name, STECore | |
get_var_reference, STECore | |
L | |
load | |
P | |
parse, FatalRuntimeError | |
precompile, FatalRuntimeError | |
R | |
register_tag, STECore | |
S | |
save, StorageAccess | |
set_var_by_name, STECore | |
T | |
transcompile, FatalRuntimeError |
public function __construct( $src, $transc )
public function __construct( $storage_access )
Calling a custom tag (builtin ones can not be called)
public function call_tag( $name, $params, $sub )
Test, if a text represents false (an empty / only whitespace text) or true (everything else).
public function evalbool( $txt )
Executes a template and returns the result.
public function exectemplate( $tpl )
Get a template variable by its name.
public function get_var_by_name( $name )
Get a reference to a template variable using a variable name.
public function &get_var_reference( $name, $create_if_not_exist )
Load a template and return its result (blocks not included, use exectemplate for this).
public function load( $tpl, $quiet = False )
Loading a template.
public function load( $tpl, & $mode )
Parsing a STE T/PL template.
function parse( $code, $tpl )
Precompiling STE T/PL templates.
function precompile( $code )
Register a custom tag.
public function register_tag( $name, $callback )
Saves a template.
public function save( $tpl, $data, $mode )
Set a template variable by its name.
public function set_var_by_name( $name, $val )
Transcompiles an abstract syntax tree to PHP.
function transcompile( $ast ) /* Transcompile and add some boilerplate code. */