public static function __shortcuts() { $shortcuts = array('config'); return array_merge(parent::__shortcuts(), $shortcuts); }
public function is_applicable() { return true; } public function get_form_content() { include_once $this->root_path . '/maintenance/includes/sql_update.class.php'; $sql_update = registry::register('sql_update', array(array(get_class($this), $this->lang[get_class($this)], $this->version, $this->plugin_path, $this->name), $this->in->get('update_all', false))); return $sql_update->a_get_form_content(); } public function get_sqls() { return $this->sqls; } public function init_lang() { if (isset($this->langs[$this->user->data['user_lang']])) { $lang = $this->langs[$this->user->data['user_lang']]; } elseif (isset($this->langs[$this->default_lang])) { $lang = $this->langs[$this->default_lang]; } if (!isset($lang)) { parent::init_lang(); } else { $this->lang = $lang; } } } if (version_compare(PHP_VERSION, '5.3.0', '<')) { registry::add_const('short_sql_update_task', sql_update_task::__shortcuts()); }