/** * @access private * @return string - config file content */ function _generate_config_file_content() { $config_tempate = file_get_contents(SPHINXSEARCH_PLUGIN_DIR . '/rep/sphinx.conf'); $sphinxInst = new SphinxSearch_Install($this->_config); $content = $sphinxInst->generate_config_content($config_tempate); return $content; }
/** * Install table structure * */ function sphinx_plugin_activation() { //create neccessary tables $config = new SphinxSearch_Config(); $sphinxInstall = new SphinxSearch_Install($config); $sphinxInstall->setup_sphinx_counter_tables(); }