Source for file extendsCheck.php
Documentation is available at extendsCheck.php
* Checks whether an extended file has been modified, and if so recompiles the current template. This is for internal use only, do not use.
* 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}
* @author Jordi Boggiano <j.boggiano@seld.be>
* @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
preg_match('#^["\']([a-z]{2,}):(.*?)["\']$#i', $file, $m);
return '// check for modification in '.
$resource.
':'.
$identifier.
'
$tpl = $this->templateFactory("'.
$resource.
'", "'.
$identifier.
'");
} catch (Dwoo_Exception $e) {
$this->triggerError(\'Extends : Resource <em>'.
$resource.
'</em> was not added to Dwoo, can not include <em>'.
$identifier.
'</em>\', E_USER_WARNING);
$this->triggerError(\'Extends : Resource "'.
$resource.
':'.
$identifier.
'" was not found.\', E_USER_WARNING);
$this->triggerError(\'Include : Extending "'.
$resource.
':'.
$identifier.
'" was not allowed for an unknown reason.\', E_USER_WARNING);
if ($tpl->getUid() != "'.
substr($uid, 1, -
1).
'") { ob_end_clean(); return false; }';
Documentation generated on Sat, 28 Jun 2008 01:38:23 +0200 by phpDocumentor 1.4.0