You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smarty_resource_recompiled.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 compile cache
  12. *
  13. * @package Smarty
  14. * @subpackage TemplateResources
  15. */
  16. abstract class Smarty_Resource_Recompiled extends Smarty_Resource
  17. {
  18. /**
  19. * Flag that it's an recompiled resource
  20. *
  21. * @var bool
  22. */
  23. public $recompiled = true;
  24. /**
  25. * Resource does implement populateCompiledFilepath() method
  26. *
  27. * @var bool
  28. */
  29. public $hasCompiledHandler = true;
  30. /**
  31. * populate Compiled Object with compiled filepath
  32. *
  33. * @param Smarty_Template_Compiled $compiled compiled object
  34. * @param Smarty_Internal_Template $_template template object
  35. *
  36. * @return void
  37. */
  38. public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
  39. {
  40. $compiled->filepath = false;
  41. $compiled->timestamp = false;
  42. $compiled->exists = false;
  43. }
  44. }