/**
* 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
) { $source->filepath =
strtolower($source->type . ':' .
$source->name
);
$source->uid =
sha1($source->type . ':' .
$source->name
);
$mtime =
$this->
fetchTimestamp($source->name
);
if ($mtime !== null
) { $source->timestamp =
$mtime;
} else { $this->
fetch($source->name,
$content,
$timestamp);
$source->timestamp =
isset($timestamp) ?
$timestamp : false;
if( isset($content) ) $source->content =
$content;
} $source->exists = !!
$source->timestamp;
}