smarty_resource_uncompiled.php 1.2 KB

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