Свойство | Тип | Описание | |
---|---|---|---|
$service | eZ\Publish\API\Repository\URLAliasService | Aggregated service. | |
$signalDispatcher | SignalDispatcher. |
Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\URLAliasService $service, |
Constructor. | |
createGlobalUrlAlias ( string $resource, string $path, string $languageCode, boolean $forwarding = false, boolean $alwaysAvailable = false ) : eZ\Publish\API\Repository\Values\Content\URLAlias | Create a user chosen $alias pointing to a resource in $languageCode. | |
createUrlAlias ( eZ\Publish\API\Repository\Values\Content\Location $location, string $path, string $languageCode, boolean $forwarding = false, boolean $alwaysAvailable = false ) : eZ\Publish\API\Repository\Values\Content\URLAlias | Create a user chosen $alias pointing to $location in $languageCode. | |
listGlobalAliases ( string $languageCode = null, integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\URLAlias[] | List global aliases. | |
listLocationAliases ( eZ\Publish\API\Repository\Values\Content\Location $location, boolean $custom = true, string $languageCode = null, null | boolean $showAllTranslations = null, array $prioritizedLanguageList = null ) : eZ\Publish\API\Repository\Values\Content\URLAlias[] | List of url aliases pointing to $location, sorted by language priority. | |
load ( string $id ) : eZ\Publish\API\Repository\Values\Content\URLAlias | Loads URL alias by given $id. | |
lookup ( string $url, string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\URLAlias | looks up the URLAlias for the given url. | |
removeAliases ( array $aliasList ) | Removes urls aliases. | |
reverseLookup ( eZ\Publish\API\Repository\Values\Content\Location $location, string $languageCode = null, null | boolean $showAllTranslations = null, array $prioritizedLanguageList = null ) : eZ\Publish\API\Repository\Values\Content\URLAlias | Returns the URL alias for the given location in the given language. |
public __construct ( eZ\Publish\API\Repository\URLAliasService $service, |
||
$service | eZ\Publish\API\Repository\URLAliasService | |
$signalDispatcher |
public createGlobalUrlAlias ( string $resource, string $path, string $languageCode, boolean $forwarding = false, boolean $alwaysAvailable = false ) : eZ\Publish\API\Repository\Values\Content\URLAlias | ||
$resource | string | |
$path | string | |
$languageCode | string | |
$forwarding | boolean | |
$alwaysAvailable | boolean | |
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias |
public createUrlAlias ( eZ\Publish\API\Repository\Values\Content\Location $location, string $path, string $languageCode, boolean $forwarding = false, boolean $alwaysAvailable = false ) : eZ\Publish\API\Repository\Values\Content\URLAlias | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$path | string | |
$languageCode | string | the languageCode for which this alias is valid |
$forwarding | boolean | if true a redirect is performed |
$alwaysAvailable | boolean | |
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias |
public listGlobalAliases ( string $languageCode = null, integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\URLAlias[] | ||
$languageCode | string | filters those which are valid for the given language |
$offset | integer | |
$limit | integer | |
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias[] |
public listLocationAliases ( eZ\Publish\API\Repository\Values\Content\Location $location, boolean $custom = true, string $languageCode = null, null | boolean $showAllTranslations = null, array $prioritizedLanguageList = null ) : eZ\Publish\API\Repository\Values\Content\URLAlias[] | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$custom | boolean | if true the user generated aliases are listed otherwise the autogenerated |
$languageCode | string | filters those which are valid for the given language |
$showAllTranslations | null | boolean | |
$prioritizedLanguageList | array | |
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias[] |
public removeAliases ( array $aliasList ) | ||
$aliasList | array |
public reverseLookup ( eZ\Publish\API\Repository\Values\Content\Location $location, string $languageCode = null, null | boolean $showAllTranslations = null, array $prioritizedLanguageList = null ) : eZ\Publish\API\Repository\Values\Content\URLAlias | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$languageCode | string | |
$showAllTranslations | null | boolean | |
$prioritizedLanguageList | array | |
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias |
protected URLAliasService,eZ\Publish\API\Repository $service | ||
Результат | eZ\Publish\API\Repository\URLAliasService |