1 | <?php |
||
7 | class FavoriteMapper extends Mapper { |
||
8 | |||
9 | public function __construct(IDB $db) { |
||
12 | |||
13 | /** |
||
14 | * @param int $id |
||
15 | * @throws \OCP\AppFramework\Db\DoesNotExistException if not found |
||
16 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result |
||
17 | * @return Favorite |
||
18 | */ |
||
19 | public function find($id) { |
||
24 | |||
25 | /** |
||
26 | * @param string $name |
||
27 | * @return Favorite[] |
||
28 | */ |
||
29 | public function findByName($name) { |
||
34 | |||
35 | /** |
||
36 | * @param string $userId |
||
37 | * @param string $from |
||
38 | * @param string $until |
||
39 | * @param int $limit |
||
40 | * @param int $offset |
||
41 | * @return Favorite[] |
||
42 | */ |
||
43 | public function findBetween($userId, $from, $until, $limit=null, $offset=null) { |
||
49 | |||
50 | /** |
||
51 | * @param int $limit |
||
52 | * @param int $offset |
||
53 | * @return Favorite[] |
||
54 | */ |
||
55 | public function findAll($limit=null, $offset=null) { |
||
59 | } |
||
60 |