aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/globalsearch/GlobalSearchFulltext.php
blob: fc6c2aa87d8932eb6618057170d8c7b2fbe178b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * Interface GlobalSearchFulltext
 *
 * Provides defeatable fulltext search with MATCH AGAINST. Only usable on MySQL 5.7.6+ or MariaDB 10.0.5+.
 *
 * @author      Thomas Hackl <thomas.hackl@uni-passau.de>
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
 * @category    Stud.IP
 * @since       4.1
 */

interface GlobalSearchFulltext
{
    /**
     * Enables fulltext (MATCH AGAINST) search by creating the corresponding indices.
     */
    public static function enable();

    /**
     * Disables fulltext (MATCH AGAINST) search by removing the corresponding indices.
     */
    public static function disable();
}