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