Implements interfaces:
Loops over an array and moves the scope into each value, allowing for shorter loop constructs
Note that to access the array key within a loop block, you have to use the {$_key} variable, you can not specify it yourself.
* from : the array that you want to iterate over * name : loop name to access it's iterator variables through {$.loop.name.var} see http://wiki.dwoo.org/index.php/IteratorVariables for detailsExample :
instead of a foreach block such as :
you can do :
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/loop.php (line 46)
Dwoo_Plugin | --Dwoo_Block_Plugin | --Dwoo_Plugin_loop
Inherited from Dwoo_Block_Plugin
Dwoo_Block_Plugin::$buffer
Inherited from Dwoo_Plugin
Dwoo_Plugin::$dwoo
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:41 +0200 by phpDocumentor 1.4.0