1 | <?php |
||
7 | class LocationMapper 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 Location |
||
18 | */ |
||
19 | public function find($id) { |
||
24 | |||
25 | /** |
||
26 | * @param string $deviceHash |
||
27 | * @param string $from |
||
28 | * @param string $until |
||
29 | * @param int $limit |
||
30 | * @param int $offset |
||
31 | * @return Location[] |
||
32 | */ |
||
33 | public function findBetween($deviceHash, $from, $until, $limit=null, $offset=null) { |
||
39 | |||
40 | /** |
||
41 | * @param int $limit |
||
42 | * @param int $offset |
||
43 | * @return Location[] |
||
44 | */ |
||
45 | public function findAll($limit=null, $offset=null) { |
||
49 | } |
||
50 |