SearchAPI-Standard.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Simple Machines Forum (SMF)
  4. *
  5. * @package SMF
  6. * @author Simple Machines http://www.simplemachines.org
  7. * @copyright 2013 Simple Machines and individual contributors
  8. * @license http://www.simplemachines.org/about/smf/license.php BSD
  9. *
  10. * @version 2.1 Alpha 1
  11. */
  12. if (!defined('SMF'))
  13. die('No direct access...');
  14. /**
  15. * Standard non full index, non custom index search
  16. */
  17. class standard_search
  18. {
  19. /**
  20. * This is the last version of SMF that this was tested on, to protect against API changes.
  21. *
  22. * @var type
  23. */
  24. public $version_compatible = 'SMF 2.1 ALpha';
  25. /**
  26. * This won't work with versions of SMF less than this.
  27. *
  28. * @var type
  29. */
  30. public $min_smf_version = 'SMF 2.1 Alpha 1';
  31. /**
  32. * Standard search is supported by default.
  33. * @var type
  34. */
  35. public $is_supported = true;
  36. /**
  37. * Method to check whether the method can be performed by the API.
  38. *
  39. * @param type $methodName
  40. * @param type $query_params
  41. * @return boolean
  42. */
  43. public function supportsMethod($methodName, $query_params = null)
  44. {
  45. // Always fall back to the standard search method.
  46. return false;
  47. }
  48. }
  49. ?>