Source for file auto_escape.php
Documentation is available at auto_escape.php
* Overrides the compiler auto-escape setting within the block
* * enabled : if set to "on", "enable", true or 1 then the compiler autoescaping is enabled inside this block. set to "off", "disable", false or 0 to disable it
* 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
protected static $stack =
array();
public function init($enabled)
public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
$params =
$compiler->getCompiledParams($params);
switch(strtolower(trim((string)
$params['enabled'], '"\''))) {
throw
new Dwoo_Compilation_Exception($compiler, 'Auto_Escape : Invalid parameter ('.
$params['enabled'].
'), valid parameters are "enable"/true or "disable"/false');
self::$stack[] =
$compiler->getAutoEscape();
$compiler->setAutoEscape($enable);
public static function postProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $content)
$compiler->setAutoEscape(array_pop(self::$stack));
Documentation generated on Sun, 07 Feb 2010 17:53:12 +0000 by phpDocumentor 1.4.0