register_resource(self::$_resourceName, array(self::getInstance(), "getTemplate", "getTimestamp", "getSecure", "getTrusted")); self::_assignVariables($data); $template = self::getObject()->fetch(self::$_resourceName . ':' . self::$_templateName); return $template; } public function getTemplate($tpl_name, &$tpl_source, &$smarty_obj) { $tpl_source = self::$_template; return empty($tpl_source) ? false : true; } public function getTimestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) { $tpl_timestamp = time(); return true; } }