| @@ 120-131 (lines=12) @@ | ||
| 117 | * @param int[] $contentIds |
|
| 118 | * @return Content[] |
|
| 119 | */ |
|
| 120 | protected function findContentsByContentIds(array $contentIds) |
|
| 121 | { |
|
| 122 | $contents = []; |
|
| 123 | ||
| 124 | foreach ($contentIds as $contentId) { |
|
| 125 | // return unique contents |
|
| 126 | $content = $this->repository->getContentService()->loadContent($contentId); |
|
| 127 | $contents[$content->contentInfo->id] = $content; |
|
| 128 | } |
|
| 129 | ||
| 130 | return $contents; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @param string[] $remoteContentIds |
|
| @@ 137-148 (lines=12) @@ | ||
| 134 | * @param string[] $remoteContentIds |
|
| 135 | * @return Content[] |
|
| 136 | */ |
|
| 137 | protected function findContentsByContentRemoteIds(array $remoteContentIds) |
|
| 138 | { |
|
| 139 | $contents = []; |
|
| 140 | ||
| 141 | foreach ($remoteContentIds as $remoteContentId) { |
|
| 142 | // return unique contents |
|
| 143 | $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
|
| 144 | $contents[$content->contentInfo->id] = $content; |
|
| 145 | } |
|
| 146 | ||
| 147 | return $contents; |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * @param int[] $locationIds |
|