|
@@ 138-150 (lines=13) @@
|
| 135 |
|
* @return Location[] |
| 136 |
|
* @deprecated |
| 137 |
|
*/ |
| 138 |
|
protected function findLocationsByContentIds(array $contentIds) |
| 139 |
|
{ |
| 140 |
|
$locations = []; |
| 141 |
|
|
| 142 |
|
foreach ($contentIds as $contentId) { |
| 143 |
|
$content = $this->repository->getContentService()->loadContent($contentId); |
| 144 |
|
foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
| 145 |
|
$locations[$location->id] = $location; |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
return $locations; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
/** |
| 153 |
|
* Returns all locations of a set of objects |
|
@@ 159-171 (lines=13) @@
|
| 156 |
|
* @return Location[] |
| 157 |
|
* @deprecated |
| 158 |
|
*/ |
| 159 |
|
protected function findLocationsByContentRemoteIds(array $remoteContentIds) |
| 160 |
|
{ |
| 161 |
|
$locations = []; |
| 162 |
|
|
| 163 |
|
foreach ($remoteContentIds as $remoteContentId) { |
| 164 |
|
$content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
| 165 |
|
foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
| 166 |
|
$locations[$location->id] = $location; |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
return $locations; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
/** |
| 174 |
|
* @param int[] $locationIds |