Class Dwoo_Plugin_for

Description

Implements interfaces:

Similar to the php for block

  * name : foreach name to access it's iterator variables through {$.foreach.name.var} see http://wiki.dwoo.org/index.php/IteratorVariables for details
  * from : array to iterate from (which equals 0) or a number as a start value
  * to : value to stop iterating at (equals count($array) by default if you set an array in from)
  * step : defines the incrementation of the pointer at each iteration
  * skip : allows you to skip some entries at the start, mostly useless excepted for smarty compatibility
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html

Located in /plugins/builtin/blocks/for.php (line 28)

Dwoo_Plugin
   |
   --Dwoo_Block_Plugin
      |
      --Dwoo_Plugin_for
Variable Summary
static mixed $cnt
Method Summary
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)
void init ( $name,  $from, [ $to = null], [ $step = 1], [ $skip = 0])
Variables
static mixed $cnt (line 30)
  • access: public

Inherited Variables

Inherited from Dwoo_Block_Plugin

Dwoo_Block_Plugin::$buffer

Inherited from Dwoo_Plugin

Dwoo_Plugin::$dwoo
Methods
static postProcessing (line 124)
  • access: public
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
  • Dwoo_Compiler $compiler
  • array $params
  • $prepend
  • $append
  • $content

Redefinition of:
Dwoo_Block_Plugin::postProcessing()
called at compile time to define what the block should output in the compiled template code, happens when the block is ended
static preProcessing (line 36)
  • access: public
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)

Redefinition of:
Dwoo_Block_Plugin::preProcessing()
called at compile time to define what the block should output in the compiled template code, happens when the block is declared
init (line 32)
  • access: public
void init ( $name,  $from, [ $to = null], [ $step = 1], [ $skip = 0])
  • $name
  • $from
  • $to
  • $step
  • $skip

Inherited Methods

Inherited From Dwoo_Block_Plugin

Dwoo_Block_Plugin::buffer()
Dwoo_Block_Plugin::end()
Dwoo_Block_Plugin::postProcessing()
Dwoo_Block_Plugin::preProcessing()
Dwoo_Block_Plugin::process()

Inherited From Dwoo_Plugin

Dwoo_Plugin::__construct()
Dwoo_Plugin::paramsToAttributes()

Documentation generated on Sun, 03 Aug 2008 15:12:36 +0200 by phpDocumentor 1.4.0