library/smarty/libs/sysplugins/smarty_resource_recompiled.php
changeset 46 f11c31f7fa3e
parent 45 a56e7f9a0463
child 47 03388ec805b4
equal deleted inserted replaced
45:a56e7f9a0463 46:f11c31f7fa3e
     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 compile cache
       
    13  *
       
    14  * @package    Smarty
       
    15  * @subpackage TemplateResources
       
    16  */
       
    17 abstract class Smarty_Resource_Recompiled extends Smarty_Resource {
       
    18     /**
       
    19      * Flag that it's an recompiled resource
       
    20      *
       
    21      * @var bool
       
    22      */
       
    23     public $recompiled = true;
       
    24 
       
    25     /**
       
    26      * populate Compiled Object with compiled filepath
       
    27      *
       
    28      * @param  Smarty_Template_Compiled $compiled compiled object
       
    29      * @param  Smarty_Internal_Template $_template template object
       
    30      *
       
    31      * @return void
       
    32      */
       
    33     public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template) {
       
    34         $compiled->filepath = false;
       
    35         $compiled->timestamp = false;
       
    36         $compiled->exists = false;
       
    37     }
       
    38 }