| @@ 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} |
|
| @@ 322-334 (lines=13) @@ | ||
| 319 | /** |
|
| 320 | * {@inheritdoc} |
|
| 321 | */ |
|
| 322 | public function loadRelations($sourceContentId, $sourceContentVersionNo = null, $type = null) |
|
| 323 | { |
|
| 324 | $this->logger->logCall( |
|
| 325 | __METHOD__, |
|
| 326 | array( |
|
| 327 | 'content' => $sourceContentId, |
|
| 328 | 'version' => $sourceContentVersionNo, |
|
| 329 | 'type' => $type, |
|
| 330 | ) |
|
| 331 | ); |
|
| 332 | ||
| 333 | return $this->persistenceHandler->contentHandler()->loadRelations($sourceContentId, $sourceContentVersionNo, $type); |
|
| 334 | } |
|
| 335 | ||
| 336 | /** |
|
| 337 | * {@inheritdoc} |
|
| @@ 171-180 (lines=10) @@ | ||
| 168 | /** |
|
| 169 | * {@inheritdoc} |
|
| 170 | */ |
|
| 171 | public function copySubtree($sourceId, $destinationParentId, $newOwnerId = null) |
|
| 172 | { |
|
| 173 | $this->logger->logCall(__METHOD__, array( |
|
| 174 | 'source' => $sourceId, |
|
| 175 | 'destination' => $destinationParentId, |
|
| 176 | 'newOwner' => $newOwnerId, |
|
| 177 | )); |
|
| 178 | ||
| 179 | return $this->persistenceHandler->locationHandler()->copySubtree($sourceId, $destinationParentId, $newOwnerId); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * {@inheritdoc} |
|
| @@ 50-57 (lines=8) @@ | ||
| 47 | return $this->getMultipleCacheItems( |
|
| 48 | $locationIds, |
|
| 49 | 'ez-location-', |
|
| 50 | function (array $cacheMissIds) use ($translations, $useAlwaysAvailable) { |
|
| 51 | $this->logger->logCall( |
|
| 52 | __CLASS__ . '::loadList', |
|
| 53 | ['location' => $cacheMissIds, 'translations' => $translations, 'always-available' => $useAlwaysAvailable] |
|
| 54 | ); |
|
| 55 | ||
| 56 | return $this->persistenceHandler->locationHandler()->loadList($cacheMissIds, $translations, $useAlwaysAvailable); |
|
| 57 | }, |
|
| 58 | function (Location $location) { |
|
| 59 | return $this->getCacheTags($location); |
|
| 60 | }, |
|