eZ/Publish/Core/Persistence/Legacy/Content/Location/Handler.php 1 location
|
@@ 116-121 (lines=6) @@
|
| 113 |
|
$list = $this->locationGateway->getNodeDataList($locationIds, $translations, $useAlwaysAvailable); |
| 114 |
|
|
| 115 |
|
$locations = []; |
| 116 |
|
foreach ($list as $row) { |
| 117 |
|
$id = (int)$row['node_id']; |
| 118 |
|
if (!isset($locations[$id])) { |
| 119 |
|
$locations[$id] = $this->locationMapper->createLocationFromRow($row); |
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
return $locations; |
| 124 |
|
} |
eZ/Publish/Core/Persistence/Legacy/Content/Location/Mapper.php 1 location
|
@@ 68-73 (lines=6) @@
|
| 65 |
|
{ |
| 66 |
|
$locations = array(); |
| 67 |
|
|
| 68 |
|
foreach ($rows as $row) { |
| 69 |
|
$id = $row[$prefix . 'node_id']; |
| 70 |
|
if (!isset($locations[$id])) { |
| 71 |
|
$locations[$id] = $this->createLocationFromRow($row, $prefix); |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
return array_values($locations); |
| 76 |
|
} |