annotate forum/Sources/SearchAPI-Standard.php @ 85:6d7b61434be7 website

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