mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-04 14:21:36 +01:00
23 lines
695 B
PHP
23 lines
695 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class Smarty_Resource_Filetest extends Smarty_Internal_Resource_File
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* populate Source Object with meta data from Resource
|
||
|
|
*
|
||
|
|
* @param Smarty_Template_Source $source source object
|
||
|
|
* @param Smarty_Internal_Template $_template template object
|
||
|
|
*/
|
||
|
|
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
|
||
|
|
{
|
||
|
|
parent::populate($source, $_template);
|
||
|
|
if ($source->exists) {
|
||
|
|
if (isset(CacheResourceTestCommon::$touchResource[$source->filepath])) {
|
||
|
|
$source->timestamp = CacheResourceTestCommon::$touchResource[$source->filepath];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|