[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/Smarty/libs/sysplugins/ -> smarty_internal_compile_for.php (summary)

Smarty Internal Plugin Compile For Compiles the {for} {forelse} {/for} tags

Author: Uwe Tews
File Size: 151 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

Smarty_Internal_Compile_For:: (1 method):
  compile()

Smarty_Internal_Compile_Forelse:: (1 method):
  compile()

Smarty_Internal_Compile_Forclose:: (1 method):
  compile()


Class: Smarty_Internal_Compile_For  - X-Ref

Smarty Internal Plugin Compile For Class

compile($args, $compiler, $parameter)   X-Ref
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.

param: array  $args      array with attributes from parser
param: object $compiler  compiler object
param: array  $parameter array with compilation parameter
return: string compiled code

Class: Smarty_Internal_Compile_Forelse  - X-Ref

Smarty Internal Plugin Compile Forelse Class

compile($args, $compiler, $parameter)   X-Ref
Compiles code for the {forelse} tag

param: array  $args      array with attributes from parser
param: object $compiler  compiler object
param: array  $parameter array with compilation parameter
return: string compiled code

Class: Smarty_Internal_Compile_Forclose  - X-Ref

Smarty Internal Plugin Compile Forclose Class

compile($args, $compiler, $parameter)   X-Ref
Compiles code for the {/for} tag

param: array  $args      array with attributes from parser
param: object $compiler  compiler object
param: array  $parameter array with compilation parameter
return: string compiled code



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1