2011-07-29 19:03:53 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* provides search functionalty
|
|
|
|
*/
|
2012-07-20 16:56:18 +00:00
|
|
|
abstract class OC_Search_Provider {
|
|
|
|
private $options;
|
2012-08-29 06:38:33 +00:00
|
|
|
|
2012-09-07 13:22:01 +00:00
|
|
|
public function __construct($options) {
|
2012-07-20 16:56:18 +00:00
|
|
|
$this->options=$options;
|
|
|
|
}
|
2012-08-29 06:38:33 +00:00
|
|
|
|
2011-07-29 19:03:53 +00:00
|
|
|
/**
|
|
|
|
* search for $query
|
|
|
|
* @param string $query
|
|
|
|
* @return array An array of OC_Search_Result's
|
|
|
|
*/
|
2012-07-20 16:56:18 +00:00
|
|
|
abstract public function search($query);
|
2011-07-29 19:03:53 +00:00
|
|
|
}
|