31 $source->filepath = $source->type .
':' . $source->name;
32 $source->uid = sha1($source->filepath);
33 if ($source->smarty->compile_check) {
35 $source->exists = !!$source->timestamp;
48 $source->exists = !!$source->timestamp;
61 call_user_func_array($source->smarty->registered_resources[$source->type][0][1], array($source->name, &$time_stamp, $source->smarty));
62 return is_numeric($time_stamp) ? (int) $time_stamp : $time_stamp;
75 $t = call_user_func_array($source->smarty->registered_resources[$source->type][0][0], array($source->name, &$source->content, $source->smarty));
76 if (is_bool($t) && !$t) {
77 throw new SmartyException(
"Unable to read template {$source->type} '{$source->name}'");
79 return $source->content;
90 return basename($source->name);
populateTimestamp(Smarty_Template_Source $source)
populate Source Object with timestamp and exists from Resource
getContent(Smarty_Template_Source $source)
Load template's source by invoking the registered callback into current template object.
populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
populate Source Object with meta data from Resource
getBasename(Smarty_Template_Source $source)
Determine basename for compiled filename.
getTemplateTimestamp(Smarty_Template_Source $source)
Get timestamp (epoch) the template source was modified.