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

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

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

Свойство Тип Описание
$contentService eZ\Publish\API\Repository\ContentService Content service.
$objectStateService eZ\Publish\API\Repository\ObjectStateService ObjectState service.

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

Метод Описание
__construct ( eZ\Publish\API\Repository\ObjectStateService $objectStateService, eZ\Publish\API\Repository\ContentService $contentService ) Construct controller.
createObjectState ( $objectStateGroupId, Request $request ) : CreatedObjectState Creates a new object state.
createObjectStateGroup ( Request $request ) : CreatedObjectStateGroup Creates a new object state group.
deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent The given object state is deleted.
deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent The given object state group including the object states is deleted.
getObjectStatesForContent ( $contentId ) : ContentObjectStates Returns the object states of content.
loadObjectState ( $objectStateGroupId, $objectStateId ) : RestObjectState Loads an object state.
loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup Loads an object state group.
loadObjectStateGroups ( ) : ObjectStateGroupList Returns a list of all object state groups.
loadObjectStates ( $objectStateGroupId ) : ObjectStateList Returns a list of all object states of the given group.
setObjectStatesForContent ( $contentId, Request $request ) : ContentObjectStates Updates object states of content An object state in the input overrides the state of the object state group.
updateObjectState ( $objectStateGroupId, $objectStateId, Request $request ) : RestObjectState Updates an object state.
updateObjectStateGroup ( $objectStateGroupId, Request $request ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup Updates an object state group.

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

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

Construct controller.
public __construct ( eZ\Publish\API\Repository\ObjectStateService $objectStateService, eZ\Publish\API\Repository\ContentService $contentService )
$objectStateService eZ\Publish\API\Repository\ObjectStateService
$contentService eZ\Publish\API\Repository\ContentService

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

Creates a new object state.
public createObjectState ( $objectStateGroupId, Request $request ) : CreatedObjectState
$objectStateGroupId
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\CreatedObjectState

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

Creates a new object state group.
public createObjectStateGroup ( Request $request ) : CreatedObjectStateGroup
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\CreatedObjectStateGroup

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

The given object state is deleted.
public deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$objectStateId
Результат eZ\Publish\Core\REST\Server\Values\NoContent

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

The given object state group including the object states is deleted.
public deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$objectStateGroupId
Результат eZ\Publish\Core\REST\Server\Values\NoContent

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

Returns the object states of content.
public getObjectStatesForContent ( $contentId ) : ContentObjectStates
$contentId
Результат eZ\Publish\Core\REST\Common\Values\ContentObjectStates

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

Loads an object state.
public loadObjectState ( $objectStateGroupId, $objectStateId ) : RestObjectState
$objectStateGroupId
$objectStateId
Результат eZ\Publish\Core\REST\Common\Values\RestObjectState

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

Loads an object state group.
public loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
$objectStateGroupId
Результат eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup

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

Returns a list of all object state groups.
public loadObjectStateGroups ( ) : ObjectStateGroupList
Результат eZ\Publish\Core\REST\Server\Values\ObjectStateGroupList

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

Returns a list of all object states of the given group.
public loadObjectStates ( $objectStateGroupId ) : ObjectStateList
$objectStateGroupId
Результат eZ\Publish\Core\REST\Server\Values\ObjectStateList

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

Updates object states of content An object state in the input overrides the state of the object state group.
public setObjectStatesForContent ( $contentId, Request $request ) : ContentObjectStates
$contentId
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Common\Values\ContentObjectStates

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

Updates an object state.
public updateObjectState ( $objectStateGroupId, $objectStateId, Request $request ) : RestObjectState
$objectStateGroupId
$objectStateId
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Common\Values\RestObjectState

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

Updates an object state group.
public updateObjectStateGroup ( $objectStateGroupId, Request $request ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
$objectStateGroupId
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup

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

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

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

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

ObjectState service.
protected ObjectStateService,eZ\Publish\API\Repository $objectStateService
Результат eZ\Publish\API\Repository\ObjectStateService