/** * @public private */ public function run() { if (isset($this->action)) { if ($this->action === 'add') { if (isset($this->version)) { $this->database(); } } } else { app_model_smarty::getInstance()->display('upgrade/index.tpl'); } }
/** * @access public */ public function run() { if (isset($this->action)) { if ($this->action == 'remove') { if (isset($this->cache)) { //Si on veut supprimer les caches $this->removeCache(); } } } else { app_model_smarty::getInstance()->display('clear/index.tpl'); } }
public function run() { app_model_smarty::getInstance()->display('home/index.tpl'); }
public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new app_model_smarty(); } return self::$instance; }
/** * */ public function run() { $header = new magixglobal_model_header(); if (magixcjquery_filter_request::isGet('json_check')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_check(); } elseif (magixcjquery_filter_request::isGet('json_chmod')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_chmod(); } else { app_model_smarty::getInstance()->display('analysis/index.tpl'); } }
/** * @access public */ public function run() { if (isset($this->action)) { if ($this->action === 'add') { $this->insert_user(); } } else { app_model_smarty::getInstance()->display('user/index.tpl'); } }
/** * Smarty {autoload_i18n} function plugin * * Type: function * Name: * Date: * Update * Purpose: * Examples: * Output: * @link * @author Gerits Aurelien * @version 1.0 * @param array * @param Smarty * @return string */ function smarty_function_autoload_i18n($params, $template) { app_model_smarty::getInstance()->configLoad('local_' . app_model_language::current_Language() . '.conf'); }
/** * @access public */ public function run() { if (isset($this->action)) { if ($this->action === 'add') { if (isset($this->M_DBHOST)) { $this->create_config_file(); } } elseif ($this->action === 'testconnexion') { if (isset($this->M_DBHOST)) { $this->test_connexion(); } } } else { app_model_smarty::getInstance()->display('config/index.tpl'); } }