Smarty_Compiler
Template compiling class
Located in /includes/classes/smarty/Smarty_Compiler.class.php (line 35)
Smarty | --Smarty_Compiler
boolean
_compile_block_tag
(string $tag_command, string $tag_args, string $tag_modifier, &$output, string $output)
true
_compile_file
(string $resource_name, string $source_content, &$compiled_content, string $compiled_content)
void
_syntax_error
(string $error_msg, [integer $error_type = E_USER_ERROR], [string $file = null], [integer $line = null])
Inherited Variables
Inherited from Smarty
Smarty::$autoload_filters
Smarty::$cache_dir
Smarty::$cache_handler_func
Smarty::$cache_lifetime
Smarty::$cache_modified_check
Smarty::$caching
Smarty::$compiler_class
Smarty::$compiler_file
Smarty::$compile_check
Smarty::$compile_dir
Smarty::$compile_id
Smarty::$config_booleanize
Smarty::$config_class
Smarty::$config_dir
Smarty::$config_fix_newlines
Smarty::$config_overwrite
Smarty::$config_read_hidden
Smarty::$debugging
Smarty::$debugging_ctrl
Smarty::$debug_tpl
Smarty::$default_modifiers
Smarty::$default_resource_type
Smarty::$default_template_handler_func
Smarty::$error_reporting
Smarty::$force_compile
Smarty::$left_delimiter
Smarty::$php_handling
Smarty::$plugins_dir
Smarty::$request_use_auto_globals
Smarty::$request_vars_order
Smarty::$right_delimiter
Smarty::$secure_dir
Smarty::$security
Smarty::$security_settings
Smarty::$template_dir
Smarty::$trusted_dir
Smarty::$use_sub_dirs
Constructor Smarty_Compiler (line 84)
The class constructor.
_add_plugin (line 1997)
add plugin
- string $type
- string $name
- boolean? $delayed_loading
_compile_arg_list (line 1432)
- $type
- $name
- $attrs
- &$cache_code
_compile_block_tag (line 684)
compile block function tag
sets $output to compiled block function tag
- string $tag_command
- string $tag_args
- string $tag_modifier
- string $output
- &$output
_compile_capture_tag (line 1229)
Compile {capture} .. {/capture} tags
- boolean $start: true if this is the {capture} tag
- string $tag_args
_compile_compiler_tag (line 615)
compile the custom compiler tag
sets $output to the compiled custom compiler tag
- string $tag_command
- string $tag_args
- string $output
- &$output
_compile_custom_tag (line 775)
compile custom function tag
- string $tag_command
- string $tag_args
- string $tag_modifier
- &$output
_compile_file (line 234)
compile a resource
sets $compiled_content to the compiled source
- string $resource_name
- string $source_content
- string $compiled_content
- &$compiled_content
_compile_foreach_start (line 1168)
Compile {foreach ...} tag.
- string $tag_args
_compile_if_tag (line 1262)
Compile {if ...} tag
- string $tag_args
- boolean $elseif: if true, uses elseif instead of if
_compile_include_php_tag (line 1031)
Compile {include ...} tag
- string $tag_args
_compile_include_tag (line 978)
Compile {include ...} tag
- string $tag_args
_compile_insert_tag (line 940)
Compile {insert ...} tag
- string $tag_args
_compile_plugin_call (line 2172)
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
_compile_registered_object_tag (line 848)
compile a registered object tag
- string $tag_command
- array $attrs
- string $tag_modifier
_compile_section_start (line 1063)
Compile {section ...} tag
- string $tag_args
_compile_smarty_ref (line 2016)
Compiles references of type $smarty.foo
- string $indexes
- &$indexes
_compile_tag (line 444)
Compile a template tag
- string $template_tag
_expand_quoted_text (line 1692)
expand quoted text with embedded variables
- string $var_expr
_load_filters (line 2196)
load pre- and post-filters
_parse_attrs (line 1533)
Parse attribute string
- string $tag_args
_parse_conf_var (line 1882)
parse configuration variable expression into PHP code
- string $conf_var_expr
_parse_is_expr (line 1472)
Parse is expression
- string $is_arg
- array $tokens
_parse_modifiers (line 1928)
parse modifier chain into PHP code
sets $output to parsed modified chain
- string $output
- string $modifier_string
- &$output
_parse_parenth_args (line 1865)
parse arguments in function call parenthesis
- string $parenth_args
_parse_section_prop (line 1903)
parse section property expression into PHP code
- string $section_prop_expr
_parse_var (line 1720)
parse variable expression into PHP code
- string $var_expr
- string $output
_parse_vars_props (line 1617)
compile multiple variables and section properties tokens into PHP code
- array $tokens
- &$tokens
_parse_var_props (line 1632)
compile single variable and section properties token into PHP code
- string $val
- string $tag_attrs
_pop_cacheable_state (line 2270)
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.
- $type
- $name
_pop_tag (line 2295)
pop closing tag-name
raise an error if this stack-top doesn't match with the closing tag
- string $close_tag: the closing tag's name
_push_cacheable_state (line 2252)
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.
- $type
- $name
_push_tag (line 2284)
push opening tag-name, file-name and line-number on the tag-stack
- string $open_tag: the opening tag's name
_quote_replace (line 2227)
Quote subpattern references
- string $string
_syntax_error (line 2240)
display Smarty syntax error
- string $error_msg
- integer $error_type
- string $file
- integer $line
Inherited Methods
Inherited From Smarty
Smarty::Smarty()
Smarty::append()
Smarty::append_by_ref()
Smarty::assign()
Smarty::assign_by_ref()
Smarty::clear_all_assign()
Smarty::clear_all_cache()
Smarty::clear_assign()
Smarty::clear_cache()
Smarty::clear_compiled_tpl()
Smarty::clear_config()
Smarty::config_load()
Smarty::display()
Smarty::fetch()
Smarty::get_config_vars()
Smarty::get_registered_object()
Smarty::get_template_vars()
Smarty::is_cached()
Smarty::load_filter()
Smarty::register_block()
Smarty::register_compiler_function()
Smarty::register_function()
Smarty::register_modifier()
Smarty::register_object()
Smarty::register_outputfilter()
Smarty::register_postfilter()
Smarty::register_prefilter()
Smarty::register_resource()
Smarty::template_exists()
Smarty::trigger_error()
Smarty::unregister_block()
Smarty::unregister_compiler_function()
Smarty::unregister_function()
Smarty::unregister_modifier()
Smarty::unregister_object()
Smarty::unregister_outputfilter()
Smarty::unregister_postfilter()
Smarty::unregister_prefilter()
Smarty::unregister_resource()
Smarty::_compile_resource()
Smarty::_compile_source()
Smarty::_dequote()
Smarty::_eval()
Smarty::_fetch_resource_info()
Smarty::_get_auto_filename()
Smarty::_get_auto_id()
Smarty::_get_compile_path()
Smarty::_get_filter_name()
Smarty::_get_plugin_filepath()
Smarty::_include()
Smarty::_is_compiled()
Smarty::_parse_resource_name()
Smarty::_process_compiled_include_callback()
Smarty::_read_file()
Smarty::_run_mod_handler()
Smarty::_smarty_cache_attrs()
Smarty::_smarty_include()
Smarty::_trigger_fatal_error()
Smarty::_unlink()

