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