Source for file withelse.php
Documentation is available at withelse.php
* This plugin serves as a {else} block specifically for the {with} 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.
* This file is released under the LGPL
* "GNU Lesser General Public License"
* More information can be found here:
* {@link http://www.gnu.org/copyleft/lesser.html}
* @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
$foreach =
& $compiler->findBlock('with', true);
$out =
$foreach['params']['postOutput'];
$foreach['params']['postOutput'] =
'';
$compiler->injectBlock($type, $params, 1);
public static function postProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $content)
return $content .
Dwoo_Compiler::PHP_OPEN.
'}'.
Dwoo_Compiler::PHP_CLOSE;
Documentation generated on Sun, 03 Aug 2008 15:12:48 +0200 by phpDocumentor 1.4.0