1: <?php
2: /**
3: * Smarty Resource Plugin
4: *
5: * @package Smarty
6: * @subpackage TemplateResources
7: * @author Rodney Rehm
8: */
9:
10: /**
11: * Smarty Resource Plugin
12: * Base implementation for resource plugins that don't use the compiler
13: *
14: * @package Smarty
15: * @subpackage TemplateResources
16: */
17: abstract class Smarty_Resource_Uncompiled extends Smarty_Resource
18: {
19: /**
20: * Render and output the template (without using the compiler)
21: *
22: * @param Smarty_Template_Source $source source object
23: * @param Smarty_Internal_Template $_template template object
24: *
25: * @throws SmartyException on failure
26: */
27: abstract public function renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template);
28:
29: /**
30: * populate compiled object with compiled filepath
31: *
32: * @param Smarty_Template_Compiled $compiled compiled object
33: * @param Smarty_Internal_Template $_template template object (is ignored)
34: */
35: public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
36: {
37: $compiled->filepath = false;
38: $compiled->timestamp = false;
39: $compiled->exists = false;
40: }
41: }
42: