EC-CUBE
Public メソッド | 変数
クラス Smarty_Compiler
Smarty_Compilerに対する継承グラフ
Inheritance graph
[凡例]
Smarty_Compilerのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

 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)

変数

 $_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"

関数

_add_plugin ( type,
name,
delayed_loading = null 
)

add plugin

引数:
string$type
string$name
boolean?$delayed_loading
_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
戻り値:
boolean
_compile_capture_tag ( start,
tag_args = '' 
)

Compile {capture} .. {/capture} tags

引数:
boolean$starttrue if this is the {capture} tag
string$tag_args
戻り値:
string
_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
戻り値:
boolean
_compile_custom_tag ( tag_command,
tag_args,
tag_modifier,
&$  output 
)

compile custom function tag

引数:
string$tag_command
string$tag_args
string$tag_modifier
戻り値:
string
_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
戻り値:
true
_compile_foreach_start ( tag_args)

Compile {foreach ...} tag.

引数:
string$tag_args
戻り値:
string
_compile_if_tag ( tag_args,
elseif = false 
)

Compile {if ...} tag

引数:
string$tag_args
boolean$elseifif true, uses elseif instead of if
戻り値:
string
_compile_include_php_tag ( tag_args)

Compile {include ...} tag

引数:
string$tag_args
戻り値:
string
_compile_include_tag ( tag_args)

Compile {include ...} tag

引数:
string$tag_args
戻り値:
string
_compile_insert_tag ( tag_args)

Compile {insert ...} tag

引数:
string$tag_args
戻り値:
string
_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
戻り値:
string
_compile_registered_object_tag ( tag_command,
attrs,
tag_modifier 
)

compile a registered object tag

引数:
string$tag_command
array$attrs
string$tag_modifier
戻り値:
string
_compile_section_start ( tag_args)

Compile {section ...} tag

引数:
string$tag_args
戻り値:
string
_compile_smarty_ref ( &$  indexes)

Compiles references of type $smarty.foo

引数:
string$indexes
戻り値:
string
_compile_tag ( template_tag)

Compile a template tag

引数:
string$template_tag
戻り値:
string
_expand_quoted_text ( var_expr)

expand quoted text with embedded variables

引数:
string$var_expr
戻り値:
string

load pre- and post-filters

_parse_attrs ( tag_args)

Parse attribute string

引数:
string$tag_args
戻り値:
array
_parse_conf_var ( conf_var_expr)

parse configuration variable expression into PHP code

引数:
string$conf_var_expr
_parse_is_expr ( is_arg,
tokens 
)

Parse is expression

引数:
string$is_arg
array$tokens
戻り値:
array
_parse_modifiers ( &$  output,
modifier_string 
)

parse modifier chain into PHP code

sets $output to parsed modified chain

引数:
string$output
string$modifier_string
_parse_parenth_args ( parenth_args)

parse arguments in function call parenthesis

引数:
string$parenth_args
戻り値:
string
_parse_section_prop ( section_prop_expr)

parse section property expression into PHP code

引数:
string$section_prop_expr
戻り値:
string
_parse_var ( var_expr)

parse variable expression into PHP code

引数:
string$var_expr
string$output
戻り値:
string
_parse_var_props ( val)

compile single variable and section properties token into PHP code

引数:
string$val
string$tag_attrs
戻り値:
string
_parse_vars_props ( &$  tokens)

compile multiple variables and section properties tokens into PHP code

引数:
array$tokens
_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.

戻り値:
string
_pop_tag ( close_tag)

pop closing tag-name raise an error if this stack-top doesn't match with the closing tag

引数:
stringthe closing tag's name
戻り値:
string the opening tag's name
_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.

戻り値:
string
_push_tag ( open_tag)

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

引数:
stringthe opening tag's name
_quote_replace ( string)

Quote subpattern references

引数:
string$string
戻り値:
string
_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

#@- The class constructor.


構造体

$_folded_blocks = array()

#@+ private


このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数