private function mfilterPlus() { if (!file_exists(DIR_SYSTEM . 'library/mfilter_plus.php')) { return false; } $this->_ctrl->load->library('mfilter_plus'); $mfilterPlus = Mfilter_Plus::getInstance($this->_ctrl); return $mfilterPlus->setValues($this->_attribs, $this->_options, $this->_filters); }
/** * Deinstalacja */ public function uninstall() { $this->language->load('module/' . $this->_name); /** * Sprawdź czy wtyczka jest na liście */ $this->load->model('extension/extension'); $this->load->model('setting/store'); $this->db->query("\n\t\t\tDELETE FROM\n\t\t\t\t`" . DB_PREFIX . "setting`\n\t\t\tWHERE\n\t\t\t\t`key` IN('mega_filter_module','mega_filter_status','mfilter_version','mega_filter_attribs','mega_filter_settings','mega_filter_filters','mega_filter_options','mfilter_plus_version','mfilter_mijoshop') OR\n\t\t\t\t`key` REGEXP '^mega_filter_at_img_[0-9]+_[0-9]+\$' OR \n\t\t\t\t`key` REGEXP '^mega_filter_at_sort_[0-9]+_[0-9]+\$'\n\t\t"); if (in_array($this->_name, $this->model_extension_extension->getInstalled('module'))) { $this->model_extension_extension->uninstall('module', $this->_name); } if (file_exists(DIR_SYSTEM . 'library/mfilter_plus.php')) { $this->load->library('mfilter_plus'); Mfilter_Plus::getInstance($this)->uninstall(); } foreach ($this->_mijoshop_update as $file => $changes) { $file = realpath(DIR_SYSTEM . $file); if (file_exists($file . '_backup_mf')) { if (copy($file . '_backup_mf', $file)) { unlink($file . '_backup_mf'); } } } $this->session->data['success'] = $this->language->get('success_uninstall'); // przekieruj do listy modułów $this->response->redirect($this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL')); }