Property | Type | Description | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | Content service. | |
$objectStateService | eZ\Publish\API\Repository\ObjectStateService | ObjectState service. |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\ObjectStateService $objectStateService, eZ\Publish\API\Repository\ContentService $contentService ) | Construct controller. | |
createObjectState ( $objectStateGroupId, |
Creates a new object state. | |
createObjectStateGroup ( |
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 ) : |
Returns the object states of content. | |
loadObjectState ( $objectStateGroupId, $objectStateId ) : |
Loads an object state. | |
loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup | Loads an object state group. | |
loadObjectStateGroups ( ) : |
Returns a list of all object state groups. | |
loadObjectStates ( $objectStateGroupId ) : |
Returns a list of all object states of the given group. | |
setObjectStatesForContent ( $contentId, |
Updates object states of content An object state in the input overrides the state of the object state group. | |
updateObjectState ( $objectStateGroupId, $objectStateId, |
Updates an object state. | |
updateObjectStateGroup ( $objectStateGroupId, |
Updates an object state group. |
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 |
public createObjectState ( $objectStateGroupId, |
||
$objectStateGroupId | ||
$request | ||
return |
public createObjectStateGroup ( |
||
$request | ||
return |
public deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$objectStateId | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$objectStateGroupId | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public getObjectStatesForContent ( $contentId ) : |
||
$contentId | ||
return |
public loadObjectState ( $objectStateGroupId, $objectStateId ) : |
||
$objectStateGroupId | ||
$objectStateId | ||
return |
public loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup | ||
$objectStateGroupId | ||
return | eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup |
public loadObjectStateGroups ( ) : |
||
return |
public loadObjectStates ( $objectStateGroupId ) : |
||
$objectStateGroupId | ||
return |
public setObjectStatesForContent ( $contentId, |
||
$contentId | ||
$request | ||
return |
public updateObjectState ( $objectStateGroupId, $objectStateId, |
||
$objectStateGroupId | ||
$objectStateId | ||
$request | ||
return |
public updateObjectStateGroup ( $objectStateGroupId, |
||
$objectStateGroupId | ||
$request | ||
return | eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
return | eZ\Publish\API\Repository\ContentService |