[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (c) 2005 phpBB Group, sections (c) 2001 ispi of Lincoln Inc |
License: | http://opensource.org/licenses/gpl-license.php GNU Public License |
Version: | $Id$ |
File Size: | 814 lines (23 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
template_compile:: (14 methods):
template_compile()
_tpl_load_file()
remove_php_tags()
compile()
compile_var_tags()
compile_tag_block()
compile_tag_if()
compile_tag_define()
compile_tag_include()
compile_tag_include_php()
_parse_is_expr()
generate_block_varref()
generate_block_data_ref()
compile_write()
Class: template_compile - X-Ref
Extension of template class - Functions needed for compiling templates only.template_compile(&$template) X-Ref |
constuctor |
_tpl_load_file($handle, $store_in_db = false) X-Ref |
Load template source from file |
remove_php_tags(&$code) X-Ref |
Remove any PHP tags that do not belong, these regular expressions are derived from the ones that exist in zend_language_scanner.l |
compile($code, $no_echo = false, $echo_var = '') X-Ref |
The all seeing all doing compile method. Parts are inspired by or directly from Smarty |
compile_var_tags(&$text_blocks) X-Ref |
Compile variables |
compile_tag_block($tag_args) X-Ref |
Compile blocks |
compile_tag_if($tag_args, $elseif) X-Ref |
Compile IF tags - much of this is from Smarty with some adaptions for our block level methods |
compile_tag_define($tag_args, $op) X-Ref |
Compile DEFINE tags |
compile_tag_include($tag_args) X-Ref |
Compile INCLUDE tag |
compile_tag_include_php($tag_args) X-Ref |
Compile INCLUDE_PHP tag |
_parse_is_expr($is_arg, $tokens) X-Ref |
parse expression This is from Smarty |
generate_block_varref($namespace, $varname, $echo = true, $defop = false) X-Ref |
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. |
generate_block_data_ref($blockname, $include_last_iterator, $defop = false) X-Ref |
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. |
compile_write($handle, $data) X-Ref |
Write compiled file to cache directory |
Generated: Wed Oct 2 15:03:47 2013 | Cross-referenced by PHPXref 0.7.1 |