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