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