XOOPS 2.5.6
Final
|
Public Member Functions | |
_add_plugin ($type, $name, $delayed_loading=null) | |
_compile_arg_list ($type, $name, $attrs, &$cache_code) | |
_compile_block_tag ($tag_command, $tag_args, $tag_modifier, &$output) | |
_compile_capture_tag ($start, $tag_args= '') | |
_compile_compiler_tag ($tag_command, $tag_args, &$output) | |
_compile_custom_tag ($tag_command, $tag_args, $tag_modifier, &$output) | |
_compile_file ($resource_name, $source_content, &$compiled_content) | |
_compile_foreach_start ($tag_args) | |
_compile_if_tag ($tag_args, $elseif=false) | |
_compile_include_php_tag ($tag_args) | |
_compile_include_tag ($tag_args) | |
_compile_insert_tag ($tag_args) | |
_compile_plugin_call ($type, $name) | |
_compile_registered_object_tag ($tag_command, $attrs, $tag_modifier) | |
_compile_section_start ($tag_args) | |
_compile_smarty_ref (&$indexes) | |
_compile_tag ($template_tag) | |
_expand_quoted_text ($var_expr) | |
_load_filters () | |
_parse_attrs ($tag_args) | |
_parse_conf_var ($conf_var_expr) | |
_parse_is_expr ($is_arg, $tokens) | |
_parse_modifiers (&$output, $modifier_string) | |
_parse_parenth_args ($parenth_args) | |
_parse_section_prop ($section_prop_expr) | |
_parse_var ($var_expr) | |
_parse_var_props ($val) | |
_parse_vars_props (&$tokens) | |
_pop_cacheable_state ($type, $name) | |
_pop_tag ($close_tag) | |
_push_cacheable_state ($type, $name) | |
_push_tag ($open_tag) | |
_quote_replace ($string) | |
_syntax_error ($error_msg, $error_type=E_USER_ERROR, $file=null, $line=null) | |
Smarty_Compiler () | |
Public Member Functions inherited from Smarty | |
_compile_resource ($resource_name, $compile_path) | |
_compile_source ($resource_name, &$source_content, &$compiled_content, $cache_include_path=null) | |
_dequote ($string) | |
_eval ($code, $params=null) | |
_fetch_resource_info (&$params) | |
_get_auto_filename ($auto_base, $auto_source=null, $auto_id=null) | |
_get_auto_id ($cache_id=null, $compile_id=null) | |
_get_compile_path ($resource_name) | |
_get_filter_name ($function) | |
_get_plugin_filepath ($type, $name) | |
_include ($filename, $once=false, $params=null) | |
_is_compiled ($resource_name, $compile_path) | |
_parse_resource_name (&$params) | |
_process_compiled_include_callback ($match) | |
_read_file ($filename) | |
_run_mod_handler () | |
& | _smarty_cache_attrs ($cache_serial, $count) |
_smarty_include ($params) | |
_trigger_fatal_error ($error_msg, $tpl_file=null, $tpl_line=null, $file=null, $line=null, $error_type=E_USER_ERROR) | |
_unlink ($resource, $exp_time=null) | |
append ($tpl_var, $value=null, $merge=false) | |
append_by_ref ($tpl_var, &$value, $merge=false) | |
assign ($tpl_var, $value=null) | |
assign_by_ref ($tpl_var, &$value) | |
clear_all_assign () | |
clear_all_cache ($exp_time=null) | |
clear_assign ($tpl_var) | |
clear_cache ($tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) | |
clear_compiled_tpl ($tpl_file=null, $compile_id=null, $exp_time=null) | |
clear_config ($var=null) | |
config_load ($file, $section=null, $scope= 'global') | |
display ($resource_name, $cache_id=null, $compile_id=null) | |
fetch ($resource_name, $cache_id=null, $compile_id=null, $display=false) | |
& | get_config_vars ($name=null) |
& | get_registered_object ($name) |
& | get_template_vars ($name=null) |
is_cached ($tpl_file, $cache_id=null, $compile_id=null) | |
load_filter ($type, $name) | |
register_block ($block, $block_impl, $cacheable=true, $cache_attrs=null) | |
register_compiler_function ($function, $function_impl, $cacheable=true) | |
register_function ($function, $function_impl, $cacheable=true, $cache_attrs=null) | |
register_modifier ($modifier, $modifier_impl) | |
register_object ($object, &$object_impl, $allowed=array(), $smarty_args=true, $block_methods=array()) | |
register_outputfilter ($function) | |
register_postfilter ($function) | |
register_prefilter ($function) | |
register_resource ($type, $functions) | |
Smarty () | |
template_exists ($tpl_file) | |
trigger_error ($error_msg, $error_type=E_USER_WARNING) | |
unregister_block ($block) | |
unregister_compiler_function ($function) | |
unregister_function ($function) | |
unregister_modifier ($modifier) | |
unregister_object ($object) | |
unregister_outputfilter ($function) | |
unregister_postfilter ($function) | |
unregister_prefilter ($function) | |
unregister_resource ($type) | |
Definition at line 35 of file Smarty_Compiler.class.php.
Smarty_Compiler::_add_plugin | ( | $type, | |
$name, | |||
$delayed_loading = null |
|||
) |
add plugin
string | $type | |
string | $name | |
boolean? | $delayed_loading |
Definition at line 1976 of file Smarty_Compiler.class.php.
References $type.
Referenced by _compile_block_tag(), _compile_custom_tag(), _compile_insert_tag(), and _parse_modifiers().
Smarty_Compiler::_compile_arg_list | ( | $type, | |
$name, | |||
$attrs, | |||
& | $cache_code | ||
) |
Definition at line 1423 of file Smarty_Compiler.class.php.
References $type.
Referenced by _compile_block_tag(), and _compile_custom_tag().
Smarty_Compiler::_compile_block_tag | ( | $tag_command, | |
$tag_args, | |||
$tag_modifier, | |||
& | $output | ||
) |
compile block function tag
sets $output to compiled block function tag
string | $tag_command | |
string | $tag_args | |
string | $tag_modifier | |
string | $output |
Definition at line 675 of file Smarty_Compiler.class.php.
References _add_plugin(), _compile_arg_list(), _compile_plugin_call(), Smarty\_get_plugin_filepath(), _parse_attrs(), _parse_modifiers(), _pop_cacheable_state(), _pop_tag(), _push_cacheable_state(), _push_tag(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_capture_tag | ( | $start, | |
$tag_args = '' |
|||
) |
Compile {capture} .. {/capture} tags
boolean | $start | true if this is the {capture} tag |
string | $tag_args |
Definition at line 1220 of file Smarty_Compiler.class.php.
References $start, and _parse_attrs().
Referenced by _compile_tag().
Smarty_Compiler::_compile_compiler_tag | ( | $tag_command, | |
$tag_args, | |||
& | $output | ||
) |
compile the custom compiler tag
sets $output to the compiled custom compiler tag
string | $tag_command | |
string | $tag_args | |
string | $output |
Definition at line 606 of file Smarty_Compiler.class.php.
References Smarty\_get_plugin_filepath(), _pop_cacheable_state(), _push_cacheable_state(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_custom_tag | ( | $tag_command, | |
$tag_args, | |||
$tag_modifier, | |||
& | $output | ||
) |
compile custom function tag
string | $tag_command | |
string | $tag_args | |
string | $tag_modifier |
Definition at line 766 of file Smarty_Compiler.class.php.
References $_additional_newline, $_cacheable_state, _add_plugin(), _compile_arg_list(), _compile_plugin_call(), Smarty\_get_plugin_filepath(), _parse_attrs(), _parse_modifiers(), _pop_cacheable_state(), _push_cacheable_state(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_file | ( | $resource_name, | |
$source_content, | |||
& | $compiled_content | ||
) |
compile a resource
sets $compiled_content to the compiled source
string | $resource_name | |
string | $source_content | |
string | $compiled_content |
Definition at line 225 of file Smarty_Compiler.class.php.
References $i, $j, _compile_tag(), _load_filters(), _quote_replace(), _syntax_error(), Smarty\_trigger_fatal_error(), SMARTY_PHP_ALLOW, and SMARTY_PHP_PASSTHRU.
Smarty_Compiler::_compile_foreach_start | ( | $tag_args | ) |
Compile {foreach ...} tag.
string | $tag_args |
Definition at line 1159 of file Smarty_Compiler.class.php.
References Smarty\_dequote(), _parse_attrs(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_if_tag | ( | $tag_args, | |
$elseif = false |
|||
) |
Compile {if ...} tag
string | $tag_args | |
boolean | $elseif | if true, uses elseif instead of if |
Definition at line 1253 of file Smarty_Compiler.class.php.
References $i, $token, _parse_is_expr(), _parse_var_props(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_include_php_tag | ( | $tag_args | ) |
Compile {include ...} tag
string | $tag_args |
Definition at line 1022 of file Smarty_Compiler.class.php.
References $_additional_newline, Smarty\_dequote(), _parse_attrs(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_include_tag | ( | $tag_args | ) |
Compile {include ...} tag
string | $tag_args |
Definition at line 969 of file Smarty_Compiler.class.php.
References _parse_attrs(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_insert_tag | ( | $tag_args | ) |
Compile {insert ...} tag
string | $tag_args |
Definition at line 931 of file Smarty_Compiler.class.php.
References $_additional_newline, _add_plugin(), Smarty\_dequote(), _parse_attrs(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_plugin_call | ( | $type, | |
$name | |||
) |
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
string | $type | |
string | $name |
Definition at line 2186 of file Smarty_Compiler.class.php.
References $type.
Referenced by _compile_block_tag(), _compile_custom_tag(), and _parse_modifiers().
Smarty_Compiler::_compile_registered_object_tag | ( | $tag_command, | |
$attrs, | |||
$tag_modifier | |||
) |
compile a registered object tag
string | $tag_command | |
array | $attrs | |
string | $tag_modifier |
Definition at line 839 of file Smarty_Compiler.class.php.
References $_additional_newline, Smarty\_dequote(), _parse_modifiers(), and Smarty\_trigger_fatal_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_section_start | ( | $tag_args | ) |
Compile {section ...} tag
string | $tag_args |
Definition at line 1054 of file Smarty_Compiler.class.php.
References _parse_attrs(), and _syntax_error().
Referenced by _compile_tag().
Smarty_Compiler::_compile_smarty_ref | ( | & | $indexes | ) |
Compiles references of type $smarty.foo
string | $indexes |
Definition at line 1995 of file Smarty_Compiler.class.php.
References _parse_var_props(), and _syntax_error().
Referenced by _parse_var().
Smarty_Compiler::_compile_tag | ( | $template_tag | ) |
Compile a template tag
string | $template_tag |
Definition at line 435 of file Smarty_Compiler.class.php.
References $_additional_newline, Smarty\$left_delimiter, Smarty\$right_delimiter, _compile_block_tag(), _compile_capture_tag(), _compile_compiler_tag(), _compile_custom_tag(), _compile_foreach_start(), _compile_if_tag(), _compile_include_php_tag(), _compile_include_tag(), _compile_insert_tag(), _compile_registered_object_tag(), _compile_section_start(), _parse_attrs(), _parse_var_props(), _pop_tag(), _push_tag(), and _syntax_error().
Referenced by _compile_file().
Smarty_Compiler::_expand_quoted_text | ( | $var_expr | ) |
expand quoted text with embedded variables
string | $var_expr |
Definition at line 1683 of file Smarty_Compiler.class.php.
References _parse_var().
Referenced by _parse_var_props().
Smarty_Compiler::_load_filters | ( | ) |
load pre- and post-filters
Definition at line 2210 of file Smarty_Compiler.class.php.
References smarty_core_load_plugins().
Referenced by _compile_file().
Smarty_Compiler::_parse_attrs | ( | $tag_args | ) |
Parse attribute string
string | $tag_args |
Definition at line 1524 of file Smarty_Compiler.class.php.
References $token, _parse_vars_props(), and _syntax_error().
Referenced by _compile_block_tag(), _compile_capture_tag(), _compile_custom_tag(), _compile_foreach_start(), _compile_include_php_tag(), _compile_include_tag(), _compile_insert_tag(), _compile_section_start(), and _compile_tag().
Smarty_Compiler::_parse_conf_var | ( | $conf_var_expr | ) |
parse configuration variable expression into PHP code
string | $conf_var_expr |
Definition at line 1861 of file Smarty_Compiler.class.php.
References _parse_modifiers().
Referenced by _parse_var_props().
Smarty_Compiler::_parse_is_expr | ( | $is_arg, | |
$tokens | |||
) |
Parse is expression
string | $is_arg | |
array | $tokens |
Definition at line 1463 of file Smarty_Compiler.class.php.
References _parse_var_props(), and _syntax_error().
Referenced by _compile_if_tag().
Smarty_Compiler::_parse_modifiers | ( | & | $output, |
$modifier_string | |||
) |
parse modifier chain into PHP code
sets $output to parsed modified chain
string | $output | |
string | $modifier_string |
Definition at line 1907 of file Smarty_Compiler.class.php.
References _add_plugin(), _compile_plugin_call(), Smarty\_get_plugin_filepath(), _parse_vars_props(), and Smarty\_trigger_fatal_error().
Referenced by _compile_block_tag(), _compile_custom_tag(), _compile_registered_object_tag(), _parse_conf_var(), _parse_section_prop(), and _parse_var_props().
Smarty_Compiler::_parse_parenth_args | ( | $parenth_args | ) |
parse arguments in function call parenthesis
string | $parenth_args |
Definition at line 1844 of file Smarty_Compiler.class.php.
References $i, and _parse_vars_props().
Referenced by _parse_var().
Smarty_Compiler::_parse_section_prop | ( | $section_prop_expr | ) |
parse section property expression into PHP code
string | $section_prop_expr |
Definition at line 1882 of file Smarty_Compiler.class.php.
References _parse_modifiers().
Referenced by _parse_var_props().
Smarty_Compiler::_parse_var | ( | $var_expr | ) |
parse variable expression into PHP code
string | $var_expr | |
string | $output |
Definition at line 1709 of file Smarty_Compiler.class.php.
References _compile_smarty_ref(), _parse_parenth_args(), and _syntax_error().
Referenced by _expand_quoted_text(), and _parse_var_props().
Smarty_Compiler::_parse_var_props | ( | $val | ) |
compile single variable and section properties token into PHP code
string | $val | |
string | $tag_attrs |
Definition at line 1623 of file Smarty_Compiler.class.php.
References _expand_quoted_text(), _parse_conf_var(), _parse_modifiers(), _parse_section_prop(), and _parse_var().
Referenced by _compile_if_tag(), _compile_smarty_ref(), _compile_tag(), _parse_is_expr(), and _parse_vars_props().
Smarty_Compiler::_parse_vars_props | ( | & | $tokens | ) |
compile multiple variables and section properties tokens into PHP code
array | $tokens |
Definition at line 1608 of file Smarty_Compiler.class.php.
References _parse_var_props().
Referenced by _parse_attrs(), _parse_modifiers(), and _parse_parenth_args().
Smarty_Compiler::_pop_cacheable_state | ( | $type, | |
$name | |||
) |
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.
Definition at line 2284 of file Smarty_Compiler.class.php.
References $type.
Referenced by _compile_block_tag(), _compile_compiler_tag(), and _compile_custom_tag().
Smarty_Compiler::_pop_tag | ( | $close_tag | ) |
pop closing tag-name raise an error if this stack-top doesn't match with the closing tag
string | the closing tag's name |
Definition at line 2309 of file Smarty_Compiler.class.php.
References _syntax_error().
Referenced by _compile_block_tag(), and _compile_tag().
Smarty_Compiler::_push_cacheable_state | ( | $type, | |
$name | |||
) |
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.
Definition at line 2266 of file Smarty_Compiler.class.php.
References $type.
Referenced by _compile_block_tag(), _compile_compiler_tag(), and _compile_custom_tag().
Smarty_Compiler::_push_tag | ( | $open_tag | ) |
push opening tag-name, file-name and line-number on the tag-stack
string | the opening tag's name |
Definition at line 2298 of file Smarty_Compiler.class.php.
Referenced by _compile_block_tag(), and _compile_tag().
Smarty_Compiler::_quote_replace | ( | $string | ) |
Quote subpattern references
string | $string |
Definition at line 2241 of file Smarty_Compiler.class.php.
Referenced by _compile_file().
Smarty_Compiler::_syntax_error | ( | $error_msg, | |
$error_type = E_USER_ERROR , |
|||
$file = null , |
|||
$line = null |
|||
) |
display Smarty syntax error
string | $error_msg | |
integer | $error_type | |
string | $file | |
integer | $line |
Definition at line 2254 of file Smarty_Compiler.class.php.
References $file, and Smarty\_trigger_fatal_error().
Referenced by _compile_block_tag(), _compile_compiler_tag(), _compile_custom_tag(), _compile_file(), _compile_foreach_start(), _compile_if_tag(), _compile_include_php_tag(), _compile_include_tag(), _compile_insert_tag(), _compile_section_start(), _compile_smarty_ref(), _compile_tag(), _parse_attrs(), _parse_is_expr(), _parse_var(), and _pop_tag().
Smarty_Compiler::Smarty_Compiler | ( | ) |
#@- The class constructor.
Definition at line 81 of file Smarty_Compiler.class.php.
References $_dvar_guts_regexp.
Smarty_Compiler::$_additional_newline = "\n" |
Definition at line 75 of file Smarty_Compiler.class.php.
Referenced by _compile_custom_tag(), _compile_include_php_tag(), _compile_insert_tag(), _compile_registered_object_tag(), and _compile_tag().
Smarty_Compiler::$_avar_regexp = null |
Definition at line 59 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_cache_attrs_count = 0 |
Definition at line 69 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_cache_include = null |
Definition at line 72 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_cache_serial = null |
Definition at line 71 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_cacheable_state = 0 |
Definition at line 68 of file Smarty_Compiler.class.php.
Referenced by _compile_custom_tag().
Smarty_Compiler::$_capture_stack = array() |
Definition at line 44 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_current_file = null |
Definition at line 42 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_current_line_no = 1 |
Definition at line 43 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_cvar_regexp = null |
Definition at line 57 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_db_qstr_regexp = null |
Definition at line 48 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_dvar_guts_regexp = null |
Definition at line 55 of file Smarty_Compiler.class.php.
Referenced by Smarty_Compiler().
Smarty_Compiler::$_dvar_regexp = null |
Definition at line 56 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_folded_blocks = array() |
#@+ private
Definition at line 41 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_func_call_regexp = null |
Definition at line 63 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_func_regexp = null |
Definition at line 51 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_init_smarty_vars = false |
Definition at line 46 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_mod_regexp = null |
Definition at line 60 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_nocache_count = 0 |
Definition at line 70 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_num_const_regexp = null |
Definition at line 54 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_obj_call_regexp = null |
Definition at line 67 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_obj_ext_regexp = null |
Definition at line 64 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_obj_params_regexp = null |
Definition at line 66 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_obj_start_regexp = null |
Definition at line 65 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_parenth_param_regexp = null |
Definition at line 62 of file Smarty_Compiler.class.php.
Definition at line 47 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_plugin_info = array() |
Definition at line 45 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_qstr_regexp = null |
Definition at line 50 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_reg_obj_regexp = null |
Definition at line 52 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_si_qstr_regexp = null |
Definition at line 49 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_strip_depth = 0 |
Definition at line 74 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_svar_regexp = null |
Definition at line 58 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_var_bracket_regexp = null |
Definition at line 53 of file Smarty_Compiler.class.php.
Smarty_Compiler::$_var_regexp = null |
Definition at line 61 of file Smarty_Compiler.class.php.