templateBase Template class.
Located in /includes/template.php (line 23)
bool
alter_block_array
(string $blockname, array $vararray, [mixed $key = false], [string $mode = 'insert'])
void
assign_display
( $handle, [ $template_var = ''], [ $return_content = true], [ $include_once = false])
mixed
$cachepath
= '' (line 36)
mixed
$compiled_code
= array() (line 44)
mixed
$filename
= array() (line 38)
mixed
$files
= array() (line 37)
mixed
$files_inherit
= array() (line 39)
mixed
$files_template
= array() (line 40)
mixed
$inherit_root
= '' (line 41)
mixed
$root
= '' (line 35)
mixed
$_rootref
(line 32)
mixed
$_tpldata
= array('.' => array(0 => array())) (line 31)
variable that holds all the data we'll be substituting into
the compiled templates. Takes form: --> $this->_tpldata[block][iteration#][child][iteration#][child2][iteration#][variablename] == value if it's a root-level variable, it'll be like this: --> $this->_tpldata[.][0][varname] == value
alter_block_array (line 507)
Change already assigned key variable pair (one-dimensional - single loop entry)
An example of how to use this function:
Key to search for
array: KEY => VALUE [the key/value pair to search for within the loop to determine the correct position]
int: Position [the position to change or insert at directly given]
If key is false the position is set to 0 If key is true the position is set to the last entry
Mode to execute (valid modes are 'insert' and 'change')
If insert, the vararray is inserted at the given position (position counting from zero). If change, the current block gets merged with the vararray (resulting in new key/value pairs be added and existing keys be replaced by the new value).
Since counting begins by zero, inserting at the last position will result in this array: array(vararray, last positioned array) and inserting at position 1 will result in this array: array(first positioned array, vararray, following vars)
assign_block_vars (line 416)
Assign key variable pairs from an array to a specified block
assign_display (line 197)
Display the handle and assign the output to a template variable or return the compiled result.
assign_var (line 405)
Assign a single variable to a single key
assign_vars (line 391)
Assign key variable pairs from an array
destroy (line 122)
Destroy template data set
destroy_block_vars (line 131)
Reset/empty complete block
display (line 161)
Display handle
set_custom_template (line 78)
Set custom template location (able to use directory outside of phpBB)
set_filenames (line 93)
Sets the template filenames for handles. $filename_array should be a hash of handle => filename pairs.
set_template (line 50)
Set template location
_tpl_include (line 593)
Include a separate template
_tpl_load (line 217)
Load a compiled template if possible, if not, recompile it
Documentation generated on Tue, 26 Aug 2008 08:34:09 +0200 by phpDocumentor 1.4.2