|
@@ 487-495 (lines=9) @@
|
| 484 |
|
* |
| 485 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 486 |
|
*/ |
| 487 |
|
public function listURLAliasesForLocation($locationId, $custom = false) |
| 488 |
|
{ |
| 489 |
|
$data = $this->gateway->loadLocationEntries($locationId, $custom); |
| 490 |
|
foreach ($data as &$entry) { |
| 491 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 495 |
|
} |
| 496 |
|
|
| 497 |
|
/** |
| 498 |
|
* List global aliases. |
|
@@ 508-516 (lines=9) @@
|
| 505 |
|
* |
| 506 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 507 |
|
*/ |
| 508 |
|
public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
| 509 |
|
{ |
| 510 |
|
$data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
| 511 |
|
foreach ($data as &$entry) { |
| 512 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 513 |
|
} |
| 514 |
|
|
| 515 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
/** |
| 519 |
|
* Removes url aliases. |