| @@ 54-61 (lines=8) @@ | ||
| 51 | return $this->getMultipleCacheItems( |
|
| 52 | $locationIds, |
|
| 53 | 'ez-bookmark-' . $userId . '-', |
|
| 54 | function (array $missingIds) use ($userId) { |
|
| 55 | $this->logger->logCall(__CLASS__ . '::loadByUserIdAndLocationId', [ |
|
| 56 | 'userId' => $userId, |
|
| 57 | 'locationIds' => $missingIds, |
|
| 58 | ]); |
|
| 59 | ||
| 60 | return $this->persistenceHandler->bookmarkHandler()->loadByUserIdAndLocationId($userId, $missingIds); |
|
| 61 | }, |
|
| 62 | function (Bookmark $bookmark) { |
|
| 63 | $tags = [ |
|
| 64 | 'bookmark-' . $bookmark->id, |
|
| @@ 82-91 (lines=10) @@ | ||
| 79 | /** |
|
| 80 | * {@inheritdoc} |
|
| 81 | */ |
|
| 82 | public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1): array |
|
| 83 | { |
|
| 84 | $this->logger->logCall(__METHOD__, [ |
|
| 85 | 'userId' => $userId, |
|
| 86 | 'offset' => $offset, |
|
| 87 | 'limit' => $limit, |
|
| 88 | ]); |
|
| 89 | ||
| 90 | return $this->persistenceHandler->bookmarkHandler()->loadUserBookmarks($userId, $offset, $limit); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * {@inheritdoc} |
|
| @@ 325-337 (lines=13) @@ | ||
| 322 | /** |
|
| 323 | * {@inheritdoc} |
|
| 324 | */ |
|
| 325 | public function loadRelations($sourceContentId, $sourceContentVersionNo = null, $type = null) |
|
| 326 | { |
|
| 327 | $this->logger->logCall( |
|
| 328 | __METHOD__, |
|
| 329 | array( |
|
| 330 | 'content' => $sourceContentId, |
|
| 331 | 'version' => $sourceContentVersionNo, |
|
| 332 | 'type' => $type, |
|
| 333 | ) |
|
| 334 | ); |
|
| 335 | ||
| 336 | return $this->persistenceHandler->contentHandler()->loadRelations($sourceContentId, $sourceContentVersionNo, $type); |
|
| 337 | } |
|
| 338 | ||
| 339 | /** |
|
| 340 | * {@inheritdoc} |
|
| @@ 154-163 (lines=10) @@ | ||
| 151 | /** |
|
| 152 | * {@inheritdoc} |
|
| 153 | */ |
|
| 154 | public function loadUserNotifications(int $userId, int $offset, int $limit): array |
|
| 155 | { |
|
| 156 | $this->logger->logCall(__METHOD__, [ |
|
| 157 | 'ownerId' => $userId, |
|
| 158 | 'offset' => $offset, |
|
| 159 | 'limit' => $limit, |
|
| 160 | ]); |
|
| 161 | ||
| 162 | return $this->persistenceHandler->notificationHandler()->loadUserNotifications($userId, $offset, $limit); |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||