Source for file TemplateCacheStorage.php

Documentation is available at TemplateCacheStorage.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette\Templates
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Template cache storage.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Templates
  20. 20:  */
  21. 22: {
  22. 23:  
  23. 24:     /**
  24. 25:      * Reads cache data from disk.
  25. 26:      * @param  array 
  26. 27:      * @return mixed 
  27. 28:      */
  28. 29:     protected function readData($meta)
  29. 30:     {
  30. 31:         return array(
  31. 32:             'file' => $meta[self::FILE],
  32. 33:             'handle' => $meta[self::HANDLE],
  33. 34:         );
  34. 35:     }
  35. 36:  
  36. 37:  
  37. 38:  
  38. 39:     /**
  39. 40:      * Returns file name.
  40. 41:      * @param  string 
  41. 42:      * @return string 
  42. 43:      */
  43. 44:     protected function getCacheFile($key)
  44. 45:     {
  45. 46:         return parent::getCacheFile($key'.php';
  46. 47:     }
  47. 48:  
  48. 49: }