3 * Smarty Resource Plugin
6 * @subpackage TemplateResources
11 * Smarty Resource Plugin
12 * Base implementation for resource plugins that don't use the compiler
15 * @subpackage TemplateResources
17 abstract class Smarty_Resource_Uncompiled extends Smarty_Resource
20 * Flag that it's an uncompiled resource
24 public $uncompiled = true;
27 * Resource does implement populateCompiledFilepath() method
31 public $hasCompiledHandler = true;
34 * populate compiled object with compiled filepath
36 * @param Smarty_Template_Compiled $compiled compiled object
37 * @param Smarty_Internal_Template $_template template object
39 public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
41 $compiled->filepath = $_template->source->filepath;
42 $compiled->timestamp = $_template->source->timestamp;
43 $compiled->exists = $_template->source->exists;
44 if ($_template->smarty->merge_compiled_includes || $_template->source->handler->checkTimestamps()) {
45 $compiled->file_dependency[ $_template->source->uid ] =
46 array($compiled->filepath, $compiled->timestamp, $_template->source->type,);