function __construct(SphinxSearch_Config $config)
 {
     global $wpdb, $table_prefix;
     $this->_sphinx = $config->init_sphinx();
     $this->_wpdb = $wpdb;
     $this->_table_prefix = $table_prefix;
     $this->view = $config->get_view();
     $this->_config = $config;
     $this->view->assign('header', 'Sphinx Search :: Statistics');
 }
 function indexing_action()
 {
     $this->view->devOptions = $this->_config->get_admin_options();
     if (!empty($_POST['skip_wizard_indexsation'])) {
         $this->view->success_message = 'Step was skipped.';
         return $this->_next_action('indexing');
     }
     if (!empty($_POST['process_indexing'])) {
         $sphinxService = new SphinxService($this->_config);
         $res = $sphinxService->reindex();
         if (true === $res) {
             $this->view->indexsation_done = true;
             $this->view->success_message = 'Indexing is done successfully!';
             return $this->_next_action('indexing');
         } else {
             $this->view->error_message = $res['err'];
         }
     }
     $this->view->indexsation_done = false;
     $this->view->render('admin/wizard/sphinx_indexsation.phtml');
     exit;
 }