PHP Класс eZ\Publish\Core\REST\Server\Controller\Location

Наследование: extends eZ\Publish\Core\REST\Server\Controller
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$contentService eZ\Publish\API\Repository\ContentService Content service.
$locationService eZ\Publish\API\Repository\LocationService Location service.
$trashService eZ\Publish\API\Repository\TrashService Trash service.

Открытые методы

Метод Описание
__construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\TrashService $trashService ) Construct controller.
copySubtree ( string $locationPath, Request $request ) : ResourceCreated Copies a subtree to a new destination.
createLocation ( mixed $contentId, Request $request ) : CreatedLocation Creates a new location for object with id $contentId.
deleteSubtree ( string $locationPath ) : eZ\Publish\Core\REST\Server\Values\NoContent Deletes a location.
loadLocation ( string $locationPath ) : RestLocation Loads a location.
loadLocationByRemoteId ( Request $request ) : LocationList Loads a location by remote ID.
loadLocationChildren ( string $locationPath, Request $request ) : LocationList Loads child locations of a location.
loadLocationsForContent ( mixed $contentId, Request $request ) : LocationList Loads all locations for content object.
moveSubtree ( string $locationPath, Request $request ) : ResourceCreated Moves a subtree to a new location.
redirectLocation ( Request $request ) : TemporaryRedirect Loads the location for a given ID (x)or remote ID.
swapLocation ( string $locationPath, Request $request ) : eZ\Publish\Core\REST\Server\Values\NoContent Swaps a location with another one.
updateLocation ( string $locationPath, Request $request ) : RestLocation Updates a location.

Приватные методы

Метод Описание
extractLocationIdFromPath ( string $path ) : mixed Extracts and returns an item id from a path, e.g. /1/2/58 => 58.

Описание методов

__construct() публичный Метод

Construct controller.
public __construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\TrashService $trashService )
$locationService eZ\Publish\API\Repository\LocationService
$contentService eZ\Publish\API\Repository\ContentService
$trashService eZ\Publish\API\Repository\TrashService

copySubtree() публичный Метод

Copies a subtree to a new destination.
public copySubtree ( string $locationPath, Request $request ) : ResourceCreated
$locationPath string
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\ResourceCreated

createLocation() публичный Метод

Creates a new location for object with id $contentId.
public createLocation ( mixed $contentId, Request $request ) : CreatedLocation
$contentId mixed
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\CreatedLocation

deleteSubtree() публичный Метод

Deletes a location.
public deleteSubtree ( string $locationPath ) : eZ\Publish\Core\REST\Server\Values\NoContent
$locationPath string
Результат eZ\Publish\Core\REST\Server\Values\NoContent

loadLocation() публичный Метод

Loads a location.
public loadLocation ( string $locationPath ) : RestLocation
$locationPath string
Результат eZ\Publish\Core\REST\Server\Values\RestLocation

loadLocationByRemoteId() публичный Метод

Loads a location by remote ID.
public loadLocationByRemoteId ( Request $request ) : LocationList
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\LocationList

loadLocationChildren() публичный Метод

Loads child locations of a location.
public loadLocationChildren ( string $locationPath, Request $request ) : LocationList
$locationPath string
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\LocationList

loadLocationsForContent() публичный Метод

Loads all locations for content object.
public loadLocationsForContent ( mixed $contentId, Request $request ) : LocationList
$contentId mixed
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\LocationList

moveSubtree() публичный Метод

Moves a subtree to a new location.
public moveSubtree ( string $locationPath, Request $request ) : ResourceCreated
$locationPath string
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\ResourceCreated | \eZ\Publish\Core\REST\Server\Values\NoContent

redirectLocation() публичный Метод

Loads the location for a given ID (x)or remote ID.
public redirectLocation ( Request $request ) : TemporaryRedirect
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\TemporaryRedirect

swapLocation() публичный Метод

Swaps a location with another one.
public swapLocation ( string $locationPath, Request $request ) : eZ\Publish\Core\REST\Server\Values\NoContent
$locationPath string
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\NoContent

updateLocation() публичный Метод

Updates a location.
public updateLocation ( string $locationPath, Request $request ) : RestLocation
$locationPath string
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\RestLocation

Описание свойств

$contentService защищенное свойство

Content service.
protected ContentService,eZ\Publish\API\Repository $contentService
Результат eZ\Publish\API\Repository\ContentService

$locationService защищенное свойство

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
Результат eZ\Publish\API\Repository\LocationService

$trashService защищенное свойство

Trash service.
protected TrashService,eZ\Publish\API\Repository $trashService
Результат eZ\Publish\API\Repository\TrashService