1 | <?php |
||
11 | class ForumSearch |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * The search class engine to use for the forum. By default use the standard |
||
16 | * Database Search but optionally allow other search engines. Must implement |
||
17 | * the {@link ForumSearch} interface. |
||
18 | * |
||
19 | * @var String |
||
20 | */ |
||
21 | private static $search_engine = 'ForumDatabaseSearch'; |
||
22 | |||
23 | /** |
||
24 | * Set the search class to use for the Forum search. Must implement the |
||
25 | * {@link ForumSearch} interface |
||
26 | * |
||
27 | * @param String |
||
28 | * |
||
29 | * @return The result of load() on the engine |
||
30 | */ |
||
31 | public static function set_search_engine($engine) |
||
47 | |||
48 | /** |
||
49 | * Return the search class for the forum search |
||
50 | * |
||
51 | * @return String |
||
52 | */ |
||
53 | public static function get_search_engine() |
||
57 | } |
||
58 |