@@ -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)) { |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | return $card; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $order |
|
| 55 | + */ |
|
| 53 | 56 | public function create($title, $stackId, $type, $order, $owner) { |
| 54 | 57 | $this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_EDIT); |
| 55 | 58 | if($this->boardService->isArchived($this->stackMapper, $stackId)) { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * Get current user permissions for a board |
| 91 | 91 | * |
| 92 | - * @param Board|Entity $board |
|
| 92 | + * @param Board $board |
|
| 93 | 93 | * @return array|bool |
| 94 | 94 | * @internal param $boardId |
| 95 | 95 | */ |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | </div> |
| 7 | 7 | <div id="sidebar-header"> |
| 8 | 8 | <a class="icon-close" ui-sref="board" ng-click="sidebar.show=!sidebar.show" title="<?php p($l->t('Close')); ?>"> <?php |
| 9 | - ?><span class="hidden-visually"><?php p($l->t('Close')); ?></span><?php |
|
| 10 | - ?></a> |
|
| 9 | + ?><span class="hidden-visually"><?php p($l->t('Close')); ?></span><?php |
|
| 10 | + ?></a> |
|
| 11 | 11 | <h3>{{ boardservice.getCurrent().title }}</h3> |
| 12 | 12 | </div> |
| 13 | 13 | |
@@ -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 |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * Check if user exists before assigning it to a card |
| 64 | 64 | * |
| 65 | 65 | * @param Entity $entity |
| 66 | - * @return null|Entity |
|
| 66 | + * @return AssignedUsers|null |
|
| 67 | 67 | */ |
| 68 | 68 | public function insert(Entity $entity) { |
| 69 | 69 | $user = $this->userManager->get($entity->getParticipant()); |