summaryrefslogtreecommitdiffstats
path: root/lib/search/provider.php
blob: cceed8b04a38f7353003650a54b61dcddc3994e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * provides search functionalty
 */
abstract class OC_Search_Provider{
	public function __construct(){
		OC_Search::registerProvider($this);
	}

	/**
	 * search for $query
	 * @param string $query
	 * @return array An array of OC_Search_Result's
	 */
	abstract function search($query);
}