Class Smarty_Internal_Compile_For

Description

Smarty Internal Plugin Compile For Class

Located in /libs/sysplugins/smarty_internal_compile_for.php (line 18)

Smarty_Internal_CompileBase
   |
   --Smarty_Internal_Compile_For
Method Summary
string compile (array $args, object $compiler, array $parameter)
Variables
Methods
compile (line 39)

Compiles code for the {for} tag

Smarty 3 does implement two different sytaxes:

  • {for $var in $array}
For looping over arrays or iterators

  • {for $x=0; $x<$y; $x++}
For general loops

The parser is gereration different sets of attribute by which this compiler can determin which syntax is used.

  • return: compiled code
  • access: public
string compile (array $args, object $compiler, array $parameter)
  • array $args: array with attributes from parser
  • object $compiler: compiler object
  • array $parameter: array with compilation parameter

Inherited Methods

Inherited From Smarty_Internal_CompileBase

Smarty_Internal_CompileBase::closeTag()
Smarty_Internal_CompileBase::getAttributes()
Smarty_Internal_CompileBase::openTag()

Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by phpDocumentor 1.4.1