|
@@ 423-431 (lines=9) @@
|
| 420 |
|
* |
| 421 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 422 |
|
*/ |
| 423 |
|
public function listURLAliasesForLocation($locationId, $custom = false) |
| 424 |
|
{ |
| 425 |
|
$data = $this->gateway->loadLocationEntries($locationId, $custom); |
| 426 |
|
foreach ($data as &$entry) { |
| 427 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 431 |
|
} |
| 432 |
|
|
| 433 |
|
/** |
| 434 |
|
* List global aliases. |
|
@@ 442-450 (lines=9) @@
|
| 439 |
|
* |
| 440 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 441 |
|
*/ |
| 442 |
|
public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
| 443 |
|
{ |
| 444 |
|
$data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
| 445 |
|
foreach ($data as &$entry) { |
| 446 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 447 |
|
} |
| 448 |
|
|
| 449 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
/** |
| 453 |
|
* Removes url aliases. |