|
@@ 401-409 (lines=9) @@
|
| 398 |
|
* |
| 399 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 400 |
|
*/ |
| 401 |
|
public function listURLAliasesForLocation($locationId, $custom = false) |
| 402 |
|
{ |
| 403 |
|
$data = $this->gateway->loadLocationEntries($locationId, $custom); |
| 404 |
|
foreach ($data as &$entry) { |
| 405 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
/** |
| 412 |
|
* List global aliases. |
|
@@ 420-428 (lines=9) @@
|
| 417 |
|
* |
| 418 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 419 |
|
*/ |
| 420 |
|
public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
| 421 |
|
{ |
| 422 |
|
$data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
| 423 |
|
foreach ($data as &$entry) { |
| 424 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
/** |
| 431 |
|
* Removes url aliases. |