summaryrefslogtreecommitdiff
path: root/src/phorkie/Database/ISearch.php
blob: c33867b78dc8ca5f7ee5d68d89681075720418ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace phorkie;

interface Database_ISearch
{
    public function search($term, $page = 0, $perPage = 10);

    /**
     * List all repositories
     *
     * @param integer $page    Page of search results, starting with 0
     * @param integer $perPage Number of results per page
     * @param string  $sort    Sort order. Allowed values:
     *                         - id     - repository id
     *                         - crdate - creation date
     *                         - tstamp - modification date
     *
     * @return Search_Result Search result object
     */
    public function listAll($page = 0, $perPage = 10, $sort = 'id', $sortOrder = null);

}

?>