template_compileExtension of template class - Functions needed for compiling templates only.
psoTFX, phpBB Development Team - Completion of file caching, decompilation routines and implementation of conditionals/keywords and associated changes
The interface was inspired by PHPLib templates, and the template file (formats are quite similar)
The keyword/conditional implementation is currently based on sections of code from the Smarty templating engine (c) 2001 ispi of Lincoln, Inc. which is released (on its own and in whole) under the LGPL. Section 3 of the LGPL states that any code derived from an LGPL application may be relicenced under the GPL, this applies to this source
DEFINE directive inspired by a request by Cyberalien
Located in /includes/functions_template.php (line 38)
Constructor template_compile (line 49)
constuctor
compile (line 110)
The all seeing all doing compile method. Parts are inspired by or directly from Smarty
compile_tag_block (line 277)
Compile blocks
compile_tag_define (line 539)
Compile DEFINE tags
compile_tag_if (line 382)
Compile IF tags - much of this is from Smarty with
some adaptions for our block level methods
compile_tag_include (line 592)
Compile INCLUDE tag
compile_tag_include_php (line 601)
Compile INCLUDE_PHP tag
compile_var_tags (line 235)
Compile variables
compile_write (line 745)
Write compiled file to cache directory
generate_block_data_ref (line 707)
Generates a reference to the array of data values for the given (possibly nested) block namespace. This is a string of the form: $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. NOTE: does not expect a trailing "." on the blockname.
generate_block_varref (line 682)
Generates a reference to the given variable inside the given (possibly nested) block namespace. This is a string of the form: ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' It's ready to be inserted into an "echo" line in one of the templates.
NOTE: expects a trailing "." on the namespace.
remove_php_tags (line 94)
Remove any PHP tags that do not belong, these regular expressions are derived from
the ones that exist in zend_language_scanner.l
_parse_is_expr (line 611)
parse expression
This is from Smarty
_tpl_load_file (line 58)
Load template source from file
Documentation generated on Tue, 26 Aug 2008 08:34:05 +0200 by phpDocumentor 1.4.2