2011-07-29 23:03:53 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* provides search functionalty
|
|
|
|
*/
|
|
|
|
abstract class OC_Search_Provider{
|
|
|
|
public function __construct(){
|
2011-07-29 23:36:03 +04:00
|
|
|
OC_Search::registerProvider($this);
|
2011-07-29 23:03:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* search for $query
|
|
|
|
* @param string $query
|
|
|
|
* @return array An array of OC_Search_Result's
|
|
|
|
*/
|
|
|
|
abstract function search($query);
|
|
|
|
}
|