provider.php 298 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * provides search functionalty
  4. */
  5. abstract class OC_Search_Provider{
  6. public function __construct(){
  7. OC_Search::registerProvider($this);
  8. }
  9. /**
  10. * search for $query
  11. * @param string $query
  12. * @return array An array of OC_Search_Result's
  13. */
  14. abstract function search($query);
  15. }