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'); }
/** * SphinxSearch_Backend Constructor * * @param SphinxSearch_Config $config * @return SphinxSearch_Backend */ function SphinxSearch_Backend($config) { $this->config = $config; $this->view = $config->get_view(); if (!empty($_GET['menu']) && !empty($_REQUEST['action'])) { if ('terms_editor' == $_GET['menu'] && $_REQUEST['action'] == 'export') { $terms_editor = new TermsEditorController($this->config); $terms_editor->_export_keywords(); } } }
function __construct(SphinxSearch_Config $config) { $this->view = $config->get_view(); $this->_config = $config; $this->view->assign('header', 'Sphinx Search :: Wizard'); }