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