PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions
Smarty_Internal_Compile_For Class Reference
Inheritance diagram for Smarty_Internal_Compile_For:
Smarty_Internal_CompileBase

Public Member Functions

 compile ($args, $compiler, $parameter)
 Compiles code for the {for} tag. More...
 
- Public Member Functions inherited from Smarty_Internal_CompileBase
 getAttributes ($compiler, $attributes)
 This function checks if the attributes passed are valid. More...
 
 openTag ($compiler, $openTag, $data=null)
 Push opening tag name on stack. More...
 
 closeTag ($compiler, $expectedTag)
 Pop closing tag. More...
 

Additional Inherited Members

- Data Fields inherited from Smarty_Internal_CompileBase
 $required_attributes = array()
 
 $optional_attributes = array()
 
 $shorttag_order = array()
 
 $option_flags = array('nocache')
 

Detailed Description

Definition at line 18 of file smarty_internal_compile_for.php.

Member Function Documentation

compile (   $args,
  $compiler,
  $parameter 
)

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.

Parameters
array$argsarray with attributes from parser
object$compilercompiler object
array$parameterarray with compilation parameter
Returns
string compiled code

Definition at line 39 of file smarty_internal_compile_for.php.


The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.