SearchAPI-Standard.php 848 B

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