| @@ 98-109 (lines=12) @@ | ||
| 95 | * @param int[] $contentIds |
|
| 96 | * @return Content[] |
|
| 97 | */ |
|
| 98 | protected function findContentsByContentIds(array $contentIds) |
|
| 99 | { |
|
| 100 | $contents = []; |
|
| 101 | ||
| 102 | foreach ($contentIds as $contentId) { |
|
| 103 | // return unique contents |
|
| 104 | $content = $this->repository->getContentService()->loadContent($contentId); |
|
| 105 | $contents[$content->contentInfo->id] = $content; |
|
| 106 | } |
|
| 107 | ||
| 108 | return $contents; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * @param string[] $remoteContentIds |
|
| @@ 115-126 (lines=12) @@ | ||
| 112 | * @param string[] $remoteContentIds |
|
| 113 | * @return Content[] |
|
| 114 | */ |
|
| 115 | protected function findContentsByContentRemoteIds(array $remoteContentIds) |
|
| 116 | { |
|
| 117 | $contents = []; |
|
| 118 | ||
| 119 | foreach ($remoteContentIds as $remoteContentId) { |
|
| 120 | // return unique contents |
|
| 121 | $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
|
| 122 | $contents[$content->contentInfo->id] = $content; |
|
| 123 | } |
|
| 124 | ||
| 125 | return $contents; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * @param int[] $locationIds |
|