comparison forum/Sources/SearchAPI-Standard.php @ 76:e3e11437ecea website

Add forum code
author Chris Cannam
date Sun, 07 Jul 2013 11:25:48 +0200
parents
children
comparison
equal deleted inserted replaced
75:72f59aa7e503 76:e3e11437ecea
1 <?php
2
3 /**
4 * Simple Machines Forum (SMF)
5 *
6 * @package SMF
7 * @author Simple Machines http://www.simplemachines.org
8 * @copyright 2011 Simple Machines
9 * @license http://www.simplemachines.org/about/smf/license.php BSD
10 *
11 * @version 2.0
12 */
13
14 if (!defined('SMF'))
15 die('Hacking attempt...');
16
17 class standard_search
18 {
19 // This is the last version of SMF that this was tested on, to protect against API changes.
20 public $version_compatible = 'SMF 2.0';
21
22 // This won't work with versions of SMF less than this.
23 public $min_smf_version = 'SMF 2.0 Beta 2';
24
25 // Standard search is supported by default.
26 public $is_supported = true;
27
28 // Method to check whether the method can be performed by the API.
29 public function supportsMethod($methodName, $query_params = null)
30 {
31 // Always fall back to the standard search method.
32 return false;
33 }
34 }
35
36 ?>