/** * instance backend_db_config with singleton */ public static function frontendDCconfig() { if (!isset(self::$frontenddbconfig)) { self::$frontenddbconfig = new frontend_db_config(); } return self::$frontenddbconfig; }
/** * @param $create */ public function load_data_setting($create) { $data = parent::s_data_setting(); $assign_exclude = array('webmaster', 'analytics', 'magix_version'); foreach ($data as $key) { if (!array_search($key['setting_id'], $assign_exclude)) { $create->assign($key['setting_id'], $key['setting_value']); } } }
/** * Smarty {module} function plugin * * Type: function * Name: module * Date: Janvier 17, 2009 * Purpose: * Examples: {module type=""} * Output: * @link * @author Gerits Aurelien * @version 1.0 * @param array * @param Smarty * @return string * */ function smarty_function_module($params, $template) { $type = $params['type']; $config = frontend_db_config::frontendDCconfig()->s_public_config_named($type); return $config['status']; }