@@ -215,8 +215,16 @@ |
||
| 215 | 215 | abstract public function filterAssignTo(Relations\HasMany $query, $userId); |
| 216 | 216 | abstract public function filterTitleOrBody(Relations\HasMany $query, $keyword); |
| 217 | 217 | abstract public function filterTags(Relations\HasMany $query, $tags); |
| 218 | + |
|
| 219 | + /** |
|
| 220 | + * @return boolean |
|
| 221 | + */ |
|
| 218 | 222 | abstract public function isPrivateInternal(); |
| 219 | 223 | abstract public function filterCreatedBy(Relations\HasMany $query, $userId, $enabled = false); |
| 220 | 224 | abstract public function sortByUpdated(Relations\HasMany $query, $order = 'asc'); |
| 225 | + |
|
| 226 | + /** |
|
| 227 | + * @param string $tagGroup |
|
| 228 | + */ |
|
| 221 | 229 | abstract public function sortByTag(Relations\HasMany $query, $tagGroup, $order = 'asc'); |
| 222 | 230 | } |
@@ -43,5 +43,8 @@ |
||
| 43 | 43 | return $this->with('users')->orderBy('id', 'DESC')->get(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $relations |
|
| 48 | + */ |
|
| 46 | 49 | abstract public static function with($relations); |
| 47 | 50 | } |
@@ -93,5 +93,8 @@ |
||
| 93 | 93 | |
| 94 | 94 | abstract public function issuesCreatedBy(); |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $key |
|
| 98 | + */ |
|
| 96 | 99 | abstract public function permission($key); |
| 97 | 100 | } |
@@ -138,6 +138,9 @@ |
||
| 138 | 138 | return $this->permission; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $relations |
|
| 143 | + */ |
|
| 141 | 144 | abstract public static function with($relations); |
| 142 | 145 | abstract public function getLoggedUser(); |
| 143 | 146 | } |