Smarty_Compiler Klassenreferenz

Abgeleitet von Smarty.

Zusammengehörigkeiten von Smarty_Compiler:

Collaboration graph
[Legende]

Aufstellung aller Elemente

Öffentliche Methoden

 Smarty_Compiler ()
 _compile_file ($resource_name, $source_content, &$compiled_content)
 _compile_tag ($template_tag)
 _compile_compiler_tag ($tag_command, $tag_args, &$output)
 _compile_block_tag ($tag_command, $tag_args, $tag_modifier, &$output)
 _compile_custom_tag ($tag_command, $tag_args, $tag_modifier, &$output)
 _compile_registered_object_tag ($tag_command, $attrs, $tag_modifier)
 _compile_insert_tag ($tag_args)
 _compile_include_tag ($tag_args)
 _compile_include_php_tag ($tag_args)
 _compile_section_start ($tag_args)
 _compile_foreach_start ($tag_args)
 _compile_capture_tag ($start, $tag_args= '')
 _compile_if_tag ($tag_args, $elseif=false)
 _compile_arg_list ($type, $name, $attrs, &$cache_code)
 _parse_is_expr ($is_arg, $tokens)
 _parse_attrs ($tag_args)
 _parse_vars_props (&$tokens)
 _parse_var_props ($val)
 _expand_quoted_text ($var_expr)
 _parse_var ($var_expr)
 _parse_parenth_args ($parenth_args)
 _parse_conf_var ($conf_var_expr)
 _parse_section_prop ($section_prop_expr)
 _parse_modifiers (&$output, $modifier_string)
 _add_plugin ($type, $name, $delayed_loading=null)
 _compile_smarty_ref (&$indexes)
 _compile_plugin_call ($type, $name)
 _load_filters ()
 _quote_replace ($string)
 _syntax_error ($error_msg, $error_type=E_USER_ERROR, $file=null, $line=null)
 _push_cacheable_state ($type, $name)
 _pop_cacheable_state ($type, $name)
 _push_tag ($open_tag)
 _pop_tag ($close_tag)

Öffentliche Attribute

 $_folded_blocks = array()
 $_current_file = null
 $_current_line_no = 1
 $_capture_stack = array()
 $_plugin_info = array()
 $_init_smarty_vars = false
 $_permitted_tokens = array('true','false','yes','no','on','off','null')
 $_db_qstr_regexp = null
 $_si_qstr_regexp = null
 $_qstr_regexp = null
 $_func_regexp = null
 $_reg_obj_regexp = null
 $_var_bracket_regexp = null
 $_num_const_regexp = null
 $_dvar_guts_regexp = null
 $_dvar_regexp = null
 $_cvar_regexp = null
 $_svar_regexp = null
 $_avar_regexp = null
 $_mod_regexp = null
 $_var_regexp = null
 $_parenth_param_regexp = null
 $_func_call_regexp = null
 $_obj_ext_regexp = null
 $_obj_start_regexp = null
 $_obj_params_regexp = null
 $_obj_call_regexp = null
 $_cacheable_state = 0
 $_cache_attrs_count = 0
 $_nocache_count = 0
 $_cache_serial = null
 $_cache_include = null
 $_strip_depth = 0
 $_additional_newline = "\n"


Ausführliche Beschreibung

Definiert in Zeile 35 der Datei Smarty_Compiler.class.php.


Dokumentation der Elementfunktionen

Smarty_Compiler::_add_plugin ( type,
name,
delayed_loading = null 
)

add plugin

Parameter:
string $type
string $name
boolean? $delayed_loading

Definiert in Zeile 1976 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag(), _compile_custom_tag(), _compile_insert_tag() und _parse_modifiers().

Smarty_Compiler::_compile_arg_list ( type,
name,
attrs,
&$  cache_code 
)

Definiert in Zeile 1423 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag() und _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

Parameter:
string $tag_command
string $tag_args
string $tag_modifier
string $output
Rückgabe:
boolean

Definiert in Zeile 675 der Datei Smarty_Compiler.class.php.

Benutzt _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() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_capture_tag ( start,
tag_args = '' 
)

Compile {capture} .. {/capture} tags

Parameter:
boolean $start true if this is the {capture} tag
string $tag_args
Rückgabe:
string

Definiert in Zeile 1220 der Datei Smarty_Compiler.class.php.

Benutzt _parse_attrs().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_compiler_tag ( tag_command,
tag_args,
&$  output 
)

compile the custom compiler tag

sets $output to the compiled custom compiler tag

Parameter:
string $tag_command
string $tag_args
string $output
Rückgabe:
boolean

Definiert in Zeile 606 der Datei Smarty_Compiler.class.php.

Benutzt Smarty::_get_plugin_filepath(), _pop_cacheable_state(), _push_cacheable_state() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_custom_tag ( tag_command,
tag_args,
tag_modifier,
&$  output 
)

compile custom function tag

Parameter:
string $tag_command
string $tag_args
string $tag_modifier
Rückgabe:
string

Definiert in Zeile 766 der Datei Smarty_Compiler.class.php.

Benutzt $_cacheable_state, _add_plugin(), _compile_arg_list(), _compile_plugin_call(), Smarty::_get_plugin_filepath(), _parse_attrs(), _parse_modifiers(), _pop_cacheable_state(), _push_cacheable_state() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_file ( resource_name,
source_content,
&$  compiled_content 
)

compile a resource

sets $compiled_content to the compiled source

Parameter:
string $resource_name
string $source_content
string $compiled_content
Rückgabe:
true

Definiert in Zeile 225 der Datei Smarty_Compiler.class.php.

Benutzt _compile_tag(), _load_filters(), _quote_replace(), _syntax_error() und Smarty::_trigger_fatal_error().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_foreach_start ( tag_args  ) 

Compile {foreach ...} tag.

Parameter:
string $tag_args
Rückgabe:
string

Definiert in Zeile 1159 der Datei Smarty_Compiler.class.php.

Benutzt Smarty::_dequote(), _parse_attrs() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_if_tag ( tag_args,
elseif = false 
)

Compile {if ...} tag

Parameter:
string $tag_args
boolean $elseif if true, uses elseif instead of if
Rückgabe:
string

Definiert in Zeile 1253 der Datei Smarty_Compiler.class.php.

Benutzt _parse_is_expr(), _parse_var_props() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_include_php_tag ( tag_args  ) 

Compile {include ...} tag

Parameter:
string $tag_args
Rückgabe:
string

Definiert in Zeile 1022 der Datei Smarty_Compiler.class.php.

Benutzt Smarty::_dequote(), _parse_attrs() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_include_tag ( tag_args  ) 

Compile {include ...} tag

Parameter:
string $tag_args
Rückgabe:
string

Definiert in Zeile 969 der Datei Smarty_Compiler.class.php.

Benutzt _parse_attrs() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_insert_tag ( tag_args  ) 

Compile {insert ...} tag

Parameter:
string $tag_args
Rückgabe:
string

Definiert in Zeile 931 der Datei Smarty_Compiler.class.php.

Benutzt _add_plugin(), Smarty::_dequote(), _parse_attrs() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

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

Parameter:
string $type
string $name
Rückgabe:
string

Definiert in Zeile 2186 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag(), _compile_custom_tag() und _parse_modifiers().

Smarty_Compiler::_compile_registered_object_tag ( tag_command,
attrs,
tag_modifier 
)

compile a registered object tag

Parameter:
string $tag_command
array $attrs
string $tag_modifier
Rückgabe:
string

Definiert in Zeile 839 der Datei Smarty_Compiler.class.php.

Benutzt Smarty::_dequote(), _parse_modifiers() und Smarty::_trigger_fatal_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_section_start ( tag_args  ) 

Compile {section ...} tag

Parameter:
string $tag_args
Rückgabe:
string

Definiert in Zeile 1054 der Datei Smarty_Compiler.class.php.

Benutzt _parse_attrs() und _syntax_error().

Wird benutzt von _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_smarty_ref ( &$  indexes  ) 

Compiles references of type $smarty.foo

Parameter:
string $indexes
Rückgabe:
string

Definiert in Zeile 1995 der Datei Smarty_Compiler.class.php.

Benutzt _parse_var_props() und _syntax_error().

Wird benutzt von _parse_var().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_compile_tag ( template_tag  ) 

Smarty_Compiler::_expand_quoted_text ( var_expr  ) 

expand quoted text with embedded variables

Parameter:
string $var_expr
Rückgabe:
string

Definiert in Zeile 1683 der Datei Smarty_Compiler.class.php.

Benutzt _parse_var().

Wird benutzt von _parse_var_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_load_filters (  ) 

load pre- and post-filters

Definiert in Zeile 2210 der Datei Smarty_Compiler.class.php.

Benutzt smarty_core_load_plugins().

Wird benutzt von _compile_file().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_attrs ( tag_args  ) 

Parse attribute string

Parameter:
string $tag_args
Rückgabe:
array

Definiert in Zeile 1524 der Datei Smarty_Compiler.class.php.

Benutzt _parse_vars_props() und _syntax_error().

Wird benutzt von _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() und _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_conf_var ( conf_var_expr  ) 

parse configuration variable expression into PHP code

Parameter:
string $conf_var_expr

Definiert in Zeile 1861 der Datei Smarty_Compiler.class.php.

Benutzt _parse_modifiers().

Wird benutzt von _parse_var_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_is_expr ( is_arg,
tokens 
)

Parse is expression

Parameter:
string $is_arg
array $tokens
Rückgabe:
array

Definiert in Zeile 1463 der Datei Smarty_Compiler.class.php.

Benutzt _parse_var_props() und _syntax_error().

Wird benutzt von _compile_if_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_modifiers ( &$  output,
modifier_string 
)

parse modifier chain into PHP code

sets $output to parsed modified chain

Parameter:
string $output
string $modifier_string

Definiert in Zeile 1907 der Datei Smarty_Compiler.class.php.

Benutzt _add_plugin(), _compile_plugin_call(), Smarty::_get_plugin_filepath(), _parse_vars_props() und Smarty::_trigger_fatal_error().

Wird benutzt von _compile_block_tag(), _compile_custom_tag(), _compile_registered_object_tag(), _parse_conf_var(), _parse_section_prop() und _parse_var_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_parenth_args ( parenth_args  ) 

parse arguments in function call parenthesis

Parameter:
string $parenth_args
Rückgabe:
string

Definiert in Zeile 1844 der Datei Smarty_Compiler.class.php.

Benutzt _parse_vars_props().

Wird benutzt von _parse_var().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_section_prop ( section_prop_expr  ) 

parse section property expression into PHP code

Parameter:
string $section_prop_expr
Rückgabe:
string

Definiert in Zeile 1882 der Datei Smarty_Compiler.class.php.

Benutzt _parse_modifiers().

Wird benutzt von _parse_var_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_var ( var_expr  ) 

parse variable expression into PHP code

Parameter:
string $var_expr
string $output
Rückgabe:
string

Definiert in Zeile 1709 der Datei Smarty_Compiler.class.php.

Benutzt _compile_smarty_ref(), _parse_parenth_args() und _syntax_error().

Wird benutzt von _expand_quoted_text() und _parse_var_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_var_props ( val  ) 

compile single variable and section properties token into PHP code

Parameter:
string $val
string $tag_attrs
Rückgabe:
string

Definiert in Zeile 1623 der Datei Smarty_Compiler.class.php.

Benutzt _expand_quoted_text(), _parse_conf_var(), _parse_modifiers(), _parse_section_prop() und _parse_var().

Wird benutzt von _compile_if_tag(), _compile_smarty_ref(), _compile_tag(), _parse_is_expr() und _parse_vars_props().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::_parse_vars_props ( &$  tokens  ) 

compile multiple variables and section properties tokens into PHP code

Parameter:
array $tokens

Definiert in Zeile 1608 der Datei Smarty_Compiler.class.php.

Benutzt _parse_var_props().

Wird benutzt von _parse_attrs(), _parse_modifiers() und _parse_parenth_args().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

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.

Rückgabe:
string

Definiert in Zeile 2284 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag(), _compile_compiler_tag() und _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

Parameter:
string the closing tag's name
Rückgabe:
string the opening tag's name

Definiert in Zeile 2309 der Datei Smarty_Compiler.class.php.

Benutzt _syntax_error().

Wird benutzt von _compile_block_tag() und _compile_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

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.

Rückgabe:
string

Definiert in Zeile 2266 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag(), _compile_compiler_tag() und _compile_custom_tag().

Smarty_Compiler::_push_tag ( open_tag  ) 

push opening tag-name, file-name and line-number on the tag-stack

Parameter:
string the opening tag's name

Definiert in Zeile 2298 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_block_tag() und _compile_tag().

Smarty_Compiler::_quote_replace ( string  ) 

Quote subpattern references

Parameter:
string $string
Rückgabe:
string

Definiert in Zeile 2241 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_file().

Smarty_Compiler::_syntax_error ( error_msg,
error_type = E_USER_ERROR,
file = null,
line = null 
)

display Smarty syntax error

Parameter:
string $error_msg
integer $error_type
string $file
integer $line

Definiert in Zeile 2254 der Datei Smarty_Compiler.class.php.

Benutzt Smarty::_trigger_fatal_error().

Wird benutzt von _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() und _pop_tag().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Smarty_Compiler::Smarty_Compiler (  ) 

#@- The class constructor.

Definiert in Zeile 81 der Datei Smarty_Compiler.class.php.


Dokumentation der Datenelemente

Smarty_Compiler::$_additional_newline = "\n"

Definiert in Zeile 75 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_avar_regexp = null

Definiert in Zeile 59 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_cache_attrs_count = 0

Definiert in Zeile 69 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_cache_include = null

Erneute Implementation von Smarty.

Definiert in Zeile 72 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_cache_serial = null

Definiert in Zeile 71 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_cacheable_state = 0

Definiert in Zeile 68 der Datei Smarty_Compiler.class.php.

Wird benutzt von _compile_custom_tag().

Smarty_Compiler::$_capture_stack = array()

Definiert in Zeile 44 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_current_file = null

Definiert in Zeile 42 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_current_line_no = 1

Definiert in Zeile 43 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_cvar_regexp = null

Definiert in Zeile 57 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_db_qstr_regexp = null

Definiert in Zeile 48 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_dvar_guts_regexp = null

Definiert in Zeile 55 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_dvar_regexp = null

Definiert in Zeile 56 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_folded_blocks = array()

#@+ private

Definiert in Zeile 41 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_func_call_regexp = null

Definiert in Zeile 63 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_func_regexp = null

Definiert in Zeile 51 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_init_smarty_vars = false

Definiert in Zeile 46 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_mod_regexp = null

Definiert in Zeile 60 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_nocache_count = 0

Definiert in Zeile 70 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_num_const_regexp = null

Definiert in Zeile 54 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_obj_call_regexp = null

Definiert in Zeile 67 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_obj_ext_regexp = null

Definiert in Zeile 64 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_obj_params_regexp = null

Definiert in Zeile 66 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_obj_start_regexp = null

Definiert in Zeile 65 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_parenth_param_regexp = null

Definiert in Zeile 62 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_permitted_tokens = array('true','false','yes','no','on','off','null')

Definiert in Zeile 47 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_plugin_info = array()

Definiert in Zeile 45 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_qstr_regexp = null

Definiert in Zeile 50 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_reg_obj_regexp = null

Definiert in Zeile 52 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_si_qstr_regexp = null

Definiert in Zeile 49 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_strip_depth = 0

Definiert in Zeile 74 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_svar_regexp = null

Definiert in Zeile 58 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_var_bracket_regexp = null

Definiert in Zeile 53 der Datei Smarty_Compiler.class.php.

Smarty_Compiler::$_var_regexp = null

Definiert in Zeile 61 der Datei Smarty_Compiler.class.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen