register_resource(self::$_resourceName, [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 = App_Settings_Obj::get(self::$_template); return empty($tpl_source) ? false : true; } public function getTimestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) { $tpl_timestamp = strtotime(App_Settings_Obj::getChanged(self::$_template)); return true; } }