Class Smarty_Internal_Compile_For
Smarty Internal Plugin Compile For Class
- Smarty_Internal_CompileBase
- Smarty_Internal_Compile_For
Package: Smarty\Compiler
Author: Uwe Tews
Located at plugins/smarty/smarty_source/sysplugins/smarty_internal_compile_for.php
Author: Uwe Tews
Located at plugins/smarty/smarty_source/sysplugins/smarty_internal_compile_for.php
public
string
|
#
compile( array $args, object $compiler, array $parameter )
Compiles code for the {for} tag Smarty 3 does implement two different syntax's: - {for $var in $array} For looping over arrays or iterators - {for $x=0; $x<$y; $x++} For general loops The parser is generating different sets of attribute by which this compiler can determine which syntax is used. |
closeTag(),
getAttributes(),
openTag()
|
$option_flags,
$optional_attributes,
$required_attributes,
$shorttag_order
|