Class Smarty_Internal_CompileBase
This class does extend all internal compile plugins
Direct known subclasses
Smarty_Compiler_Break
,
Smarty_Compiler_Case
,
Smarty_Internal_Compile_CaptureClose
,
Smarty_Internal_Compile_Config_Load
,
Smarty_Internal_Compile_Continue
,
Smarty_Internal_Compile_Debug
,
Smarty_Internal_Compile_Else
,
Smarty_Internal_Compile_Elseif
,
Smarty_Internal_Compile_Eval
,
Smarty_Internal_Compile_For
,
Smarty_Internal_Compile_Forclose
,
Smarty_Internal_Compile_Foreachclose
,
Smarty_Compiler_Caseclose
,
Smarty_Internal_Compile_Foreachelse
,
Smarty_Internal_Compile_Forelse
,
Smarty_Internal_Compile_Function
,
Smarty_Internal_Compile_Functionclose
,
Smarty_Internal_Compile_If
,
Smarty_Internal_Compile_Ifclose
,
Smarty_Internal_Compile_Include
,
Smarty_Internal_Compile_Include_Php
,
Smarty_Internal_Compile_Insert
,
Smarty_Internal_Compile_Ldelim
,
Smarty_Compiler_Default
,
Smarty_Internal_Compile_Make_Nocache
,
Smarty_Internal_Compile_Nocache
,
Smarty_Internal_Compile_Nocacheclose
,
Smarty_Internal_Compile_Private_Block_Plugin
,
Smarty_Internal_Compile_Private_ForeachSection
,
Smarty_Internal_Compile_Private_Function_Plugin
,
Smarty_Internal_Compile_Private_Modifier
,
Smarty_Internal_Compile_Private_Object_Function
,
Smarty_Internal_Compile_Private_Php
,
Smarty_Internal_Compile_Private_Print_Expression
,
Smarty_Compiler_Switch
,
Smarty_Internal_Compile_Private_Registered_Function
,
Smarty_Internal_Compile_Private_Special_Variable
,
Smarty_Internal_Compile_Rdelim
,
Smarty_Internal_Compile_Sectionclose
,
Smarty_Internal_Compile_Sectionelse
,
Smarty_Internal_Compile_Setfilter
,
Smarty_Internal_Compile_Setfilterclose
,
Smarty_Internal_Compile_Shared_Inheritance
,
Smarty_Internal_Compile_While
,
Smarty_Internal_Compile_Whileclose
,
Smarty_Compiler_Switchclose
,
Smarty_Internal_Compile_Assign
,
Smarty_Internal_Compile_Break
,
Smarty_Internal_Compile_Call
,
Smarty_Internal_Compile_Capture
Indirect known subclasses
Smarty_Internal_Compile_Append
,
Smarty_Internal_Compile_Block
,
Smarty_Internal_Compile_Blockclose
,
Smarty_Internal_Compile_Extends
,
Smarty_Internal_Compile_Foreach
,
Smarty_Internal_Compile_Private_Object_Block_Function
,
Smarty_Internal_Compile_Private_Registered_Block
,
Smarty_Internal_Compile_Section
Package: Smarty\Compiler
Author: Uwe Tews
Located at tpl/smarty/sysplugins/smarty_internal_compilebase.php
Methods summary
public
array
|
#
getAttributes( object $compiler, array $attributes )
This function checks if the attributes passed are valid The attributes passed for the tag to compile are checked against the list of required and optional attributes. Required attributes must be present. Optional attributes are check against the corresponding list. The keyword '_any' specifies that any attribute will be accepted as valid |
public
|
#
openTag( object $compiler, string $openTag, mixed $data = null )
Push opening tag name on stack Optionally additional data can be saved on stack |
public
mixed
|
#
closeTag( object $compiler, array|string $expectedTag )
Pop closing tag Raise an error if this stack-top doesn't match with expected opening tags |
Properties summary
public
array
|
$required_attributes
Array of names of required attribute required by tag |
#
array()
|
public
array
|
$optional_attributes
Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names |
#
array()
|
public
array
|
$shorttag_order
Shorttag attribute order defined by its names |
#
array()
|
public
array
|
$option_flags
Array of names of valid option flags |
#
array('nocache')
|
public
array
|
$optionMap
Mapping array for boolqn option value |
#
array(1 => true, 0 => false, 'true' => true, 'false' => false)
|
public
array
|
$mapCache
Mapping array with attributes as key |
#
array()
|