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

Inheritance: extends eZ\Publish\Core\REST\Server\Controller
Exibir arquivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$locationService eZ\Publish\API\Repository\LocationService Location service.
$urlAliasService eZ\Publish\API\Repository\URLAliasService URLAlias service.

Public Methods

Method 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 method

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 method

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

deleteURLAlias() public method

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

listGlobalURLAliases() public method

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

listLocationURLAliases() public method

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

loadURLAlias() public method

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

Property Details

$locationService protected_oe property

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
return eZ\Publish\API\Repository\LocationService

$urlAliasService protected_oe property

URLAlias service.
protected URLAliasService,eZ\Publish\API\Repository $urlAliasService
return eZ\Publish\API\Repository\URLAliasService