|
@@ 123-135 (lines=13) @@
|
| 120 |
|
* @return Location[] |
| 121 |
|
* @deprecated |
| 122 |
|
*/ |
| 123 |
|
protected function findLocationsByContentIds(array $contentIds) |
| 124 |
|
{ |
| 125 |
|
$locations = []; |
| 126 |
|
|
| 127 |
|
foreach ($contentIds as $contentId) { |
| 128 |
|
$content = $this->repository->getContentService()->loadContent($contentId); |
| 129 |
|
foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
| 130 |
|
$locations[$location->id] = $location; |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
return $locations; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
/** |
| 138 |
|
* Returns all locations of a set of objects |
|
@@ 144-156 (lines=13) @@
|
| 141 |
|
* @return Location[] |
| 142 |
|
* @deprecated |
| 143 |
|
*/ |
| 144 |
|
protected function findLocationsByContentRemoteIds(array $remoteContentIds) |
| 145 |
|
{ |
| 146 |
|
$locations = []; |
| 147 |
|
|
| 148 |
|
foreach ($remoteContentIds as $remoteContentId) { |
| 149 |
|
$content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
| 150 |
|
foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
| 151 |
|
$locations[$location->id] = $location; |
| 152 |
|
} |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
return $locations; |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* @param int[] $locationIds |