Свойство | Type | Description | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | Content service. | |
$objectStateService | eZ\Publish\API\Repository\ObjectStateService | ObjectState service. |
Méthode | 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 | ||
Résultat |
public createObjectStateGroup ( |
||
$request | ||
Résultat |
public deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$objectStateId | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$objectStateGroupId | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public getObjectStatesForContent ( $contentId ) : |
||
$contentId | ||
Résultat |
public loadObjectState ( $objectStateGroupId, $objectStateId ) : |
||
$objectStateGroupId | ||
$objectStateId | ||
Résultat |
public loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup | ||
$objectStateGroupId | ||
Résultat | eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup |
public loadObjectStateGroups ( ) : |
||
Résultat |
public loadObjectStates ( $objectStateGroupId ) : |
||
$objectStateGroupId | ||
Résultat |
public setObjectStatesForContent ( $contentId, |
||
$contentId | ||
$request | ||
Résultat |
public updateObjectState ( $objectStateGroupId, $objectStateId, |
||
$objectStateGroupId | ||
$objectStateId | ||
$request | ||
Résultat |
public updateObjectStateGroup ( $objectStateGroupId, |
||
$objectStateGroupId | ||
$request | ||
Résultat | eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
Résultat | eZ\Publish\API\Repository\ContentService |