@@ -27,26 +27,26 @@ |
||
| 27 | 27 | |
| 28 | 28 | class PublicShareMapper extends DeckMapper implements IPermissionMapper { |
| 29 | 29 | |
| 30 | - public function __construct(IDBConnection $db) { |
|
| 31 | - parent::__construct($db, 'deck_public_board_shares', Label::class); |
|
| 30 | + public function __construct(IDBConnection $db) { |
|
| 31 | + parent::__construct($db, 'deck_public_board_shares', Label::class); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function findAll($boardId, $limit = null, $offset = null) { |
| 35 | 35 | $sql = 'SELECT * FROM `*PREFIX*deck_public_board_shares` WHERE `board_id` = ? ORDER BY `id`'; |
| 36 | - return $this->findEntities($sql, [$boardId], $limit, $offset); |
|
| 36 | + return $this->findEntities($sql, [$boardId], $limit, $offset); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - public function isOwner($userId, $boardId) { |
|
| 39 | + public function isOwner($userId, $boardId) { |
|
| 40 | 40 | $board = $this->find($boardId); |
| 41 | 41 | return ($board->getOwner() === $userId); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function findBoardId($publicShareId) { |
|
| 44 | + public function findBoardId($publicShareId) { |
|
| 45 | 45 | $entity = $this->find($publicShareId); |
| 46 | 46 | return $entity->getBoardId(); |
| 47 | - } |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function delete(\OCP\AppFramework\Db\Entity $entity) { |
|
| 49 | + public function delete(\OCP\AppFramework\Db\Entity $entity) { |
|
| 50 | 50 | return parent::delete($entity); |
| 51 | 51 | } |
| 52 | 52 | |