@@ -85,6 +85,9 @@ |
||
| 85 | 85 | return $stacks; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @param integer $order |
|
| 90 | + */ |
|
| 88 | 91 | public function create($title, $boardId, $order) { |
| 89 | 92 | $this->permissionService->checkPermission(null, $boardId, Acl::PERMISSION_MANAGE); |
| 90 | 93 | if($this->boardService->isArchived(null, $boardId)) { |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | * Find a list of all users (including the ones from groups) |
| 184 | 184 | * Required to allow assigning them to cards |
| 185 | 185 | * |
| 186 | - * @param $boardId |
|
| 186 | + * @param integer|null $boardId |
|
| 187 | 187 | * @return array |
| 188 | 188 | */ |
| 189 | 189 | public function findUsers($boardId) { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * @param $id |
| 95 | - * @return RelationalEntity if not found |
|
| 95 | + * @return Entity if not found |
|
| 96 | 96 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
| 97 | 97 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
| 98 | 98 | */ |
@@ -136,6 +136,9 @@ discard block |
||
| 136 | 136 | return parent::delete($entity); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | + /** |
|
| 140 | + * @param integer $stackId |
|
| 141 | + */ |
|
| 139 | 142 | public function deleteByStack($stackId) { |
| 140 | 143 | $cards = $this->findAllByStack($stackId); |
| 141 | 144 | foreach ($cards as $card) { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Mark a property as relation so it will not get updated using Mapper::update |
| 35 | - * @param $property string Name of the property |
|
| 35 | + * @param string $property string Name of the property |
|
| 36 | 36 | */ |
| 37 | 37 | public function addRelation($property) { |
| 38 | 38 | if (!in_array($property, $this->_relations, true)) { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Mark a property as resolvable via resolveRelation() |
| 45 | - * @param $property string Name of the property |
|
| 45 | + * @param string $property string Name of the property |
|
| 46 | 46 | */ |
| 47 | 47 | public function addResolvable($property) { |
| 48 | 48 | $this->_resolvedProperties[$property] = null; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * Send notifications that a board was shared with a user/group |
| 99 | 99 | * |
| 100 | 100 | * @param $boardId |
| 101 | - * @param $acl |
|
| 101 | + * @param Acl $acl |
|
| 102 | 102 | * @throws \InvalidArgumentException |
| 103 | 103 | */ |
| 104 | 104 | public function sendBoardShared($boardId, $acl) { |
@@ -128,6 +128,9 @@ discard block |
||
| 128 | 128 | return $this->boards[$boardId]; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | + /** |
|
| 132 | + * @param Board $board |
|
| 133 | + */ |
|
| 131 | 134 | private function generateBoardShared($board, $userId) { |
| 132 | 135 | $notification = $this->notificationManager->createNotification(); |
| 133 | 136 | $notification |
@@ -49,6 +49,9 @@ |
||
| 49 | 49 | return $this->cardMapper->find($cardId); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param integer $order |
|
| 54 | + */ |
|
| 52 | 55 | public function create($title, $stackId, $type, $order, $owner) { |
| 53 | 56 | $this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_EDIT); |
| 54 | 57 | if($this->boardService->isArchived($this->stackMapper, $stackId)) { |