| @@ 156-167 (lines=12) @@ | ||
| 153 | * @return Content[] |
|
| 154 | * @deprecated |
|
| 155 | */ |
|
| 156 | protected function findContentsByContentIds(array $contentIds) |
|
| 157 | { |
|
| 158 | $contents = []; |
|
| 159 | ||
| 160 | foreach ($contentIds as $contentId) { |
|
| 161 | // return unique contents |
|
| 162 | $content = $this->repository->getContentService()->loadContent($contentId); |
|
| 163 | $contents[$content->contentInfo->id] = $content; |
|
| 164 | } |
|
| 165 | ||
| 166 | return $contents; |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * @param string[] $remoteContentIds |
|
| @@ 174-185 (lines=12) @@ | ||
| 171 | * @return Content[] |
|
| 172 | * @deprecated |
|
| 173 | */ |
|
| 174 | protected function findContentsByContentRemoteIds(array $remoteContentIds) |
|
| 175 | { |
|
| 176 | $contents = []; |
|
| 177 | ||
| 178 | foreach ($remoteContentIds as $remoteContentId) { |
|
| 179 | // return unique contents |
|
| 180 | $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
|
| 181 | $contents[$content->contentInfo->id] = $content; |
|
| 182 | } |
|
| 183 | ||
| 184 | return $contents; |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * @param int[] $locationIds |
|