27 protected abstract function fetch($name, &$source, &$mtime);
51 $source->filepath = strtolower($source->type .
':' . $source->name);
52 $source->uid = sha1($source->type .
':' . $source->name);
55 if ($mtime !== null) {
56 $source->timestamp = $mtime;
58 $this->
fetch($source->name, $content, $timestamp);
59 $source->timestamp = isset($timestamp) ? $timestamp :
false;
61 $source->content = $content;
63 $source->exists = !!$source->timestamp;
75 $this->
fetch($source->name, $content, $timestamp);
76 if (isset($content)) {
80 throw new SmartyException(
"Unable to read template {$source->type} '{$source->name}'");
91 return basename($source->name);
populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
populate Source Object with meta data from Resource
getContent(Smarty_Template_Source $source)
Load template's source into current template object.
fetchTimestamp($name)
Fetch template's modification timestamp from data source.
fetch($name, &$source, &$mtime)
fetch template and its modification time from data source
getBasename(Smarty_Template_Source $source)
Determine basename for compiled filename.