Merge remote-tracking branch 'skl85/hotfix-extautodetect'
[phorkie.git] / src / phorkie / Database / ISearch.php
1 <?php
2 namespace phorkie;
3
4 interface Database_ISearch
5 {
6     public function search($term, $page = 0, $perPage = 10);
7
8     /**
9      * List all repositories
10      *
11      * @param integer $page    Page of search results, starting with 0
12      * @param integer $perPage Number of results per page
13      * @param string  $sort    Sort order. Allowed values:
14      *                         - id     - repository id
15      *                         - crdate - creation date
16      *                         - tstamp - modification date
17      *
18      * @return Search_Result Search result object
19      */
20     public function listAll($page = 0, $perPage = 10, $sort = 'id', $sortOrder = null);
21
22 }
23
24 ?>