From 347d191850d9a3c5a84f3dff1971e6d955555ac9 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 7 May 2012 22:22:59 +0200 Subject: implement request #3: show recent pastes in "New paste" screen sidebar --- src/phorkie/Database/ISearch.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/phorkie/Database/ISearch.php') diff --git a/src/phorkie/Database/ISearch.php b/src/phorkie/Database/ISearch.php index b18d43a..c33867b 100644 --- a/src/phorkie/Database/ISearch.php +++ b/src/phorkie/Database/ISearch.php @@ -4,6 +4,21 @@ 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); + } ?> -- cgit v1.2.3