[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
[Code source] [Imprimer] [Statistiques]
Project: Smarty: the PHP compiling template engine File: Smarty_Compiler.class.php This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Author: | Monte Ohrt |
Author: | Andrei Zmievski <andrei@php.net> |
Copyright: | 2001-2005 New Digital Group, Inc. |
Version: | 2.6.12 |
Poids: | 2313 lignes (91 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Smarty_Compiler:: (36 méthodes):
Smarty_Compiler()
_compile_file()
_compile_tag()
_compile_compiler_tag()
_compile_block_tag()
_compile_custom_tag()
_compile_registered_object_tag()
_compile_insert_tag()
_compile_include_tag()
_compile_include_php_tag()
_compile_section_start()
_compile_foreach_start()
_compile_capture_tag()
_compile_if_tag()
_compile_arg_list()
_parse_is_expr()
_parse_attrs()
_parse_vars_props()
_parse_var_props()
_expand_quoted_text()
_parse_var()
_parse_parenth_args()
_parse_conf_var()
_parse_section_prop()
_parse_modifiers()
_add_plugin()
_compile_smarty_ref()
_compile_plugin_call()
_load_filters()
_quote_replace()
_syntax_error()
_push_cacheable_state()
_pop_cacheable_state()
_push_tag()
_pop_tag()
_smarty_sort_length()
Classe: Smarty_Compiler - X-Ref
Template compiling classSmarty_Compiler() X-Ref |
The class constructor. |
_compile_file($resource_name, $source_content, &$compiled_content) X-Ref |
compile a resource sets $compiled_content to the compiled source param: string $resource_name param: string $source_content param: string $compiled_content return: true |
_compile_tag($template_tag) X-Ref |
Compile a template tag param: string $template_tag return: string |
_compile_compiler_tag($tag_command, $tag_args, &$output) X-Ref |
compile the custom compiler tag sets $output to the compiled custom compiler tag param: string $tag_command param: string $tag_args param: string $output return: boolean |
_compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output) X-Ref |
compile block function tag sets $output to compiled block function tag param: string $tag_command param: string $tag_args param: string $tag_modifier param: string $output return: boolean |
_compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output) X-Ref |
compile custom function tag param: string $tag_command param: string $tag_args param: string $tag_modifier return: string |
_compile_registered_object_tag($tag_command, $attrs, $tag_modifier) X-Ref |
compile a registered object tag param: string $tag_command param: array $attrs param: string $tag_modifier return: string |
_compile_insert_tag($tag_args) X-Ref |
Compile {insert ...} tag param: string $tag_args return: string |
_compile_include_tag($tag_args) X-Ref |
Compile {include ...} tag param: string $tag_args return: string |
_compile_include_php_tag($tag_args) X-Ref |
Compile {include ...} tag param: string $tag_args return: string |
_compile_section_start($tag_args) X-Ref |
Compile {section ...} tag param: string $tag_args return: string |
_compile_foreach_start($tag_args) X-Ref |
Compile {foreach ...} tag. param: string $tag_args return: string |
_compile_capture_tag($start, $tag_args = '') X-Ref |
Compile {capture} .. {/capture} tags param: boolean $start true if this is the {capture} tag param: string $tag_args return: string |
_compile_if_tag($tag_args, $elseif = false) X-Ref |
Compile {if ...} tag param: string $tag_args param: boolean $elseif if true, uses elseif instead of if return: string |
_compile_arg_list($type, $name, $attrs, &$cache_code) X-Ref |
Pas de description |
_parse_is_expr($is_arg, $tokens) X-Ref |
Parse is expression param: string $is_arg param: array $tokens return: array |
_parse_attrs($tag_args) X-Ref |
Parse attribute string param: string $tag_args return: array |
_parse_vars_props(&$tokens) X-Ref |
compile multiple variables and section properties tokens into PHP code param: array $tokens |
_parse_var_props($val) X-Ref |
compile single variable and section properties token into PHP code param: string $val param: string $tag_attrs return: string |
_expand_quoted_text($var_expr) X-Ref |
expand quoted text with embedded variables param: string $var_expr return: string |
_parse_var($var_expr) X-Ref |
parse variable expression into PHP code param: string $var_expr param: string $output return: string |
_parse_parenth_args($parenth_args) X-Ref |
parse arguments in function call parenthesis param: string $parenth_args return: string |
_parse_conf_var($conf_var_expr) X-Ref |
parse configuration variable expression into PHP code param: string $conf_var_expr |
_parse_section_prop($section_prop_expr) X-Ref |
parse section property expression into PHP code param: string $section_prop_expr return: string |
_parse_modifiers(&$output, $modifier_string) X-Ref |
parse modifier chain into PHP code sets $output to parsed modified chain param: string $output param: string $modifier_string |
_add_plugin($type, $name, $delayed_loading = null) X-Ref |
add plugin param: string $type param: string $name param: boolean? $delayed_loading |
_compile_smarty_ref(&$indexes) X-Ref |
Compiles references of type $smarty.foo param: string $indexes return: string |
_compile_plugin_call($type, $name) X-Ref |
compiles call to plugin of type $type with name $name returns a string containing the function-name or method call without the paramter-list that would have follow to make the call valid php-syntax param: string $type param: string $name return: string |
_load_filters() X-Ref |
load pre- and post-filters |
_quote_replace($string) X-Ref |
Quote subpattern references param: string $string return: string |
_syntax_error($error_msg, $error_type = E_USER_ERROR, $file=null, $line=null) X-Ref |
display Smarty syntax error param: string $error_msg param: integer $error_type param: string $file param: integer $line |
_push_cacheable_state($type, $name) X-Ref |
check if the compilation changes from cacheable to non-cacheable state with the beginning of the current plugin. return php-code to reflect the transition. return: string |
_pop_cacheable_state($type, $name) X-Ref |
check if the compilation changes from non-cacheable to cacheable state with the end of the current plugin return php-code to reflect the transition. return: string |
_push_tag($open_tag) X-Ref |
push opening tag-name, file-name and line-number on the tag-stack param: string the opening tag's name |
_pop_tag($close_tag) X-Ref |
pop closing tag-name raise an error if this stack-top doesn't match with the closing tag param: string the closing tag's name return: string the opening tag's name |
_smarty_sort_length($a, $b) X-Ref |
compare to values by their string length param: string $a param: string $b return: 0|-1|1 |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |