PHP Class eZ\Publish\Core\REST\Server\Controller\URLAlias

Inheritance: extends eZ\Publish\Core\REST\Server\Controller
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$locationService eZ\Publish\API\Repository\LocationService Location service.
$urlAliasService eZ\Publish\API\Repository\URLAliasService URLAlias service.

Méthodes publiques

Méthode Description
__construct ( eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\LocationService $locationService ) Construct controller.
createURLAlias ( Request $request ) : CreatedURLAlias Creates a new URL alias.
deleteURLAlias ( $urlAliasId ) : eZ\Publish\Core\REST\Server\Values\NoContent The given URL alias is deleted.
listGlobalURLAliases ( ) : URLAliasRefList Returns the list of global URL aliases.
listLocationURLAliases ( $locationPath, Request $request ) : URLAliasRefList Returns the list of URL aliases for a location.
loadURLAlias ( $urlAliasId ) : eZ\Publish\API\Repository\Values\Content\URLAlias Returns the URL alias with the given ID.

Method Details

__construct() public méthode

Construct controller.
public __construct ( eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\LocationService $locationService )
$urlAliasService eZ\Publish\API\Repository\URLAliasService
$locationService eZ\Publish\API\Repository\LocationService

createURLAlias() public méthode

Creates a new URL alias.
public createURLAlias ( Request $request ) : CreatedURLAlias
$request Symfony\Component\HttpFoundation\Request
Résultat eZ\Publish\Core\REST\Server\Values\CreatedURLAlias

deleteURLAlias() public méthode

The given URL alias is deleted.
public deleteURLAlias ( $urlAliasId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$urlAliasId
Résultat eZ\Publish\Core\REST\Server\Values\NoContent

listGlobalURLAliases() public méthode

Returns the list of global URL aliases.
public listGlobalURLAliases ( ) : URLAliasRefList
Résultat eZ\Publish\Core\REST\Server\Values\URLAliasRefList

listLocationURLAliases() public méthode

Returns the list of URL aliases for a location.
public listLocationURLAliases ( $locationPath, Request $request ) : URLAliasRefList
$locationPath
$request Symfony\Component\HttpFoundation\Request
Résultat eZ\Publish\Core\REST\Server\Values\URLAliasRefList

loadURLAlias() public méthode

Returns the URL alias with the given ID.
public loadURLAlias ( $urlAliasId ) : eZ\Publish\API\Repository\Values\Content\URLAlias
$urlAliasId
Résultat eZ\Publish\API\Repository\Values\Content\URLAlias

Property Details

$locationService protected_oe property

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
Résultat eZ\Publish\API\Repository\LocationService

$urlAliasService protected_oe property

URLAlias service.
protected URLAliasService,eZ\Publish\API\Repository $urlAliasService
Résultat eZ\Publish\API\Repository\URLAliasService