|
@@ 468-476 (lines=9) @@
|
| 465 |
|
* |
| 466 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 467 |
|
*/ |
| 468 |
|
public function listURLAliasesForLocation($locationId, $custom = false) |
| 469 |
|
{ |
| 470 |
|
$data = $this->gateway->loadLocationEntries($locationId, $custom); |
| 471 |
|
foreach ($data as &$entry) { |
| 472 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
/** |
| 479 |
|
* List global aliases. |
|
@@ 487-495 (lines=9) @@
|
| 484 |
|
* |
| 485 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 486 |
|
*/ |
| 487 |
|
public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
| 488 |
|
{ |
| 489 |
|
$data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
| 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 |
|
* Removes url aliases. |