|
@@ 184-195 (lines=12) @@
|
| 181 |
|
* @return Content[] |
| 182 |
|
* @deprecated |
| 183 |
|
*/ |
| 184 |
|
protected function findContentsByLocationIds(array $locationIds) |
| 185 |
|
{ |
| 186 |
|
$contentIds = []; |
| 187 |
|
|
| 188 |
|
foreach ($locationIds as $locationId) { |
| 189 |
|
$location = $this->repository->getLocationService()->loadLocation($locationId); |
| 190 |
|
// return unique ids |
| 191 |
|
$contentIds[$location->contentId] = $location->contentId; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
return $this->findContentsByContentIds($contentIds); |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
/** |
| 198 |
|
* @param string[] $remoteLocationIds |
|
@@ 202-213 (lines=12) @@
|
| 199 |
|
* @return Content[] |
| 200 |
|
* @deprecated |
| 201 |
|
*/ |
| 202 |
|
protected function findContentsByLocationRemoteIds($remoteLocationIds) |
| 203 |
|
{ |
| 204 |
|
$contentIds = []; |
| 205 |
|
|
| 206 |
|
foreach ($remoteLocationIds as $remoteLocationId) { |
| 207 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteLocationId); |
| 208 |
|
// return unique ids |
| 209 |
|
$contentIds[$location->contentId] = $location->contentId; |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
return $this->findContentsByContentIds($contentIds); |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
/** |
| 216 |
|
* @param int[] $parentLocationIds |