phpbb\search\fulltext_native::delete_index PHP Метод

delete_index() публичный Метод

Deletes all words from the index
public delete_index ( $acp_module, $u_action )
    public function delete_index($acp_module, $u_action)
    {
        switch ($this->db->get_sql_layer()) {
            case 'sqlite':
            case 'sqlite3':
                $this->db->sql_query('DELETE FROM ' . SEARCH_WORDLIST_TABLE);
                $this->db->sql_query('DELETE FROM ' . SEARCH_WORDMATCH_TABLE);
                $this->db->sql_query('DELETE FROM ' . SEARCH_RESULTS_TABLE);
                break;
            default:
                $this->db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDLIST_TABLE);
                $this->db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDMATCH_TABLE);
                $this->db->sql_query('TRUNCATE TABLE ' . SEARCH_RESULTS_TABLE);
                break;
        }
    }