nextcloud/lib/search/provider.php

19 lines
324 B
PHP
Raw Normal View History

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;
2012-08-29 10:38:33 +04:00
2012-09-07 17:22:01 +04:00
public function __construct($options) {
2012-07-20 20:56:18 +04:00
$this->options=$options;
}
2012-08-29 10:38:33 +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
}