Source for file foreachelse.php
Documentation is available at foreachelse.php
* This plugin serves as a {else} block specifically for the {foreach} plugin.
* 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.
* @author Jordi Boggiano <j.boggiano@seld.be>
* @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://dwoo.org/LICENSE Modified BSD License
public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
$with =
& $compiler->findBlock('foreach', true);
$params['initialized'] =
true;
$compiler->injectBlock($type, $params);
public static function postProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $content)
if (!isset
($params['initialized'])) {
$block =
& $compiler->getCurrentBlock();
Documentation generated on Sat, 18 Jul 2009 21:05:04 +0200 by phpDocumentor 1.4.0