| 1 | <?php |
||
| 7 | class DeviceMapper extends Mapper { |
||
| 8 | |||
| 9 | public function __construct(IDB $db) { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $hash |
||
| 15 | * @throws \OCP\AppFramework\Db\DoesNotExistException if not found |
||
| 16 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result |
||
| 17 | * @return Device |
||
| 18 | */ |
||
| 19 | public function findByHash($hash) { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $id |
||
| 27 | * @throws \OCP\AppFramework\Db\DoesNotExistException if not found |
||
| 28 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result |
||
| 29 | * @return Device |
||
| 30 | */ |
||
| 31 | public function findById($id) { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $userId |
||
| 39 | * @param int $limit |
||
| 40 | * @param int $offset |
||
| 41 | * @return Device[] |
||
| 42 | */ |
||
| 43 | public function findAll($userId, $limit=null, $offset=null) { |
||
| 48 | |||
| 49 | } |
||
| 50 |