diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/forum/Sources/SearchAPI-Standard.php	Sun Jul 07 11:25:48 2013 +0200
@@ -0,0 +1,36 @@
+<?php
+
+/**
+ * Simple Machines Forum (SMF)
+ *
+ * @package SMF
+ * @author Simple Machines http://www.simplemachines.org
+ * @copyright 2011 Simple Machines
+ * @license http://www.simplemachines.org/about/smf/license.php BSD
+ *
+ * @version 2.0
+ */
+
+if (!defined('SMF'))
+	die('Hacking attempt...');
+
+class standard_search
+{
+	// This is the last version of SMF that this was tested on, to protect against API changes.
+	public $version_compatible = 'SMF 2.0';
+
+	// This won't work with versions of SMF less than this.
+	public $min_smf_version = 'SMF 2.0 Beta 2';
+
+	// Standard search is supported by default.
+	public $is_supported = true;
+
+	// Method to check whether the method can be performed by the API.
+	public function supportsMethod($methodName, $query_params = null)
+	{
+		// Always fall back to the standard search method.
+		return false;
+	}
+}
+
+?>
\ No newline at end of file