Source for file dynamic.php
Documentation is available at dynamic.php
* Marks the contents of the block as dynamic. Which means that it will not be cached.
* 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)
public static function postProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $content)
$output =
Dwoo_Compiler::PHP_OPEN .
'echo \'<dwoo:dynamic_\'.$dynamicId.\'>'.
str_replace('\'', '\\\'', $content) .
'</dwoo:dynamic_\'.$dynamicId.\'>\';'.
public static function unescape($output, $dynamicId)
return preg_replace_callback('/<dwoo:dynamic_('.
$dynamicId.
')>(.+?)<\/dwoo:dynamic_'.
$dynamicId.
'>/', array('self', 'unescapePhp'), $output);
return preg_replace('{<\?php /\*'.
$match[1].
'\*/ echo \'(.+?)\'; \?>}', '$1', $match[2]);
Documentation generated on Sun, 03 Aug 2008 15:12:31 +0200 by phpDocumentor 1.4.0