|
@@ 101-111 (lines=11) @@
|
| 98 |
|
* @param int[] $contentIds |
| 99 |
|
* @return Location[] |
| 100 |
|
*/ |
| 101 |
|
protected function findLocationsByContentIds(array $contentIds) |
| 102 |
|
{ |
| 103 |
|
$locations = []; |
| 104 |
|
|
| 105 |
|
foreach ($contentIds as $contentId) { |
| 106 |
|
$content = $this->repository->getContentService()->loadContent($contentId); |
| 107 |
|
$locations = array_merge($locations, $this->repository->getLocationService()->loadLocations($content->contentInfo)); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
return $locations; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* Returns all locations of a set of objects |
|
@@ 119-129 (lines=11) @@
|
| 116 |
|
* @param int[] $remoteContentIds |
| 117 |
|
* @return Location[] |
| 118 |
|
*/ |
| 119 |
|
protected function findLocationsByContentRemoteIds(array $remoteContentIds) |
| 120 |
|
{ |
| 121 |
|
$locations = []; |
| 122 |
|
|
| 123 |
|
foreach ($remoteContentIds as $remoteContentId) { |
| 124 |
|
$content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
| 125 |
|
$locations = array_merge($locations, $this->repository->getLocationService()->loadLocations($content->contentInfo)); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
return $locations; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
/** |
| 132 |
|
* @param int[] $locationIds |