Copied!

ObjectStateServiceDecorator

ObjectStateServiceDecorator.php : 20
Abstract
Implements ObjectStateService

Properties

protected $innerService

ObjectStateServiceDecorator.php : 22
protected ObjectStateService $innerService

Methods

public__construct()

ObjectStateServiceDecorator.php : 24
public __construct(ObjectStateService $innerService)

Parameters

Name Type Default value Description
$innerService ObjectStateService - -

publiccreateObjectState()

ObjectStateServiceDecorator.php : 75

Creates a new object state in the given group.

public createObjectState(ObjectStateGroup $objectStateGroup, ObjectStateCreateStruct $objectStateCreateStruct) : ObjectState

Note: in current kernel: If it is the first state all content objects will set to this state.

Parameters

Name Type Default value Description
$objectStateGroup ObjectStateGroup - -
$objectStateCreateStruct ObjectStateCreateStruct - -

Return values

ObjectState

publiccreateObjectStateGroup()

ObjectStateServiceDecorator.php : 29

Creates a new object state group.

public createObjectStateGroup(ObjectStateGroupCreateStruct $objectStateGroupCreateStruct) : ObjectStateGroup

Parameters

Name Type Default value Description
$objectStateGroupCreateStruct ObjectStateGroupCreateStruct - -

Return values

ObjectStateGroup

publicdeleteObjectState()

ObjectStateServiceDecorator.php : 115

Deletes a object state. The state of the content objects is reset to the first object state in the group.

public deleteObjectState(ObjectState $objectState) : void

Parameters

Name Type Default value Description
$objectState ObjectState - -

publicdeleteObjectStateGroup()

ObjectStateServiceDecorator.php : 70

Deletes a object state group including all states and links to content.

public deleteObjectStateGroup(ObjectStateGroup $objectStateGroup) : void

Parameters

Name Type Default value Description
$objectStateGroup ObjectStateGroup - -

publicgetContentCount()

ObjectStateServiceDecorator.php : 135

Returns the number of objects which are in this state.

public getContentCount(ObjectState $objectState) : int

Parameters

Name Type Default value Description
$objectState ObjectState - -

Return values

int

publicgetContentState()

ObjectStateServiceDecorator.php : 128

Gets the object-state of object identified by $contentId.

public getContentState(ContentInfo $contentInfo, ObjectStateGroup $objectStateGroup) : ObjectState

The $state is the id of the state within one group.

Parameters

Name Type Default value Description
$contentInfo ContentInfo - -
$objectStateGroup ObjectStateGroup - -

Return values

ObjectState

publicloadObjectState()

ObjectStateServiceDecorator.php : 82

Loads an object state.

public loadObjectState(int $stateId[, array<string|int, mixed> $prioritizedLanguages = [] ]) : ObjectState

Parameters

Name Type Default value Description
$stateId int - -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

ObjectState

publicloadObjectStateByIdentifier()

ObjectStateServiceDecorator.php : 89

Loads an object state by identifier and group it belongs to.

public loadObjectStateByIdentifier(ObjectStateGroup $objectStateGroup, string $objectStateIdentifier[, array<string|int, mixed> $prioritizedLanguages = [] ]) : ObjectState

Parameters

Name Type Default value Description
$objectStateGroup ObjectStateGroup - -
$objectStateIdentifier string - -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

ObjectState

publicloadObjectStateGroup()

ObjectStateServiceDecorator.php : 34

Loads a object state group.

public loadObjectStateGroup(int $objectStateGroupId[, array<string|int, mixed> $prioritizedLanguages = [] ]) : ObjectStateGroup

Parameters

Name Type Default value Description
$objectStateGroupId int - -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

ObjectStateGroup

publicloadObjectStateGroupByIdentifier()

ObjectStateServiceDecorator.php : 41

Loads a object state group by identifier.

public loadObjectStateGroupByIdentifier(string $objectStateGroupIdentifier[, array<string|int, mixed> $prioritizedLanguages = [] ]) : ObjectStateGroup

Parameters

Name Type Default value Description
$objectStateGroupIdentifier string - -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

ObjectStateGroup

publicloadObjectStateGroups()

ObjectStateServiceDecorator.php : 48

Loads all object state groups.

public loadObjectStateGroups([int $offset = 0 ][, int $limit = -1 ][, array<string|int, mixed> $prioritizedLanguages = [] ]) : array<string|int, ObjectStateGroup>

Parameters

Name Type Default value Description
$offset int 0 -
$limit int -1 -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

array<string|int, ObjectStateGroup>

publicloadObjectStates()

ObjectStateServiceDecorator.php : 56

This method returns the ordered list of object states of a group.

public loadObjectStates(ObjectStateGroup $objectStateGroup[, array<string|int, mixed> $prioritizedLanguages = [] ]) : array<string|int, ObjectState>

Parameters

Name Type Default value Description
$objectStateGroup ObjectStateGroup - -
$prioritizedLanguages array<string|int, mixed> []

Used as prioritized language code on translated properties of returned object.

Return values

array<string|int, ObjectState>

publicnewObjectStateCreateStruct()

ObjectStateServiceDecorator.php : 150

Instantiates a new Object State Create Struct and sets $identifier in it.

public newObjectStateCreateStruct(string $identifier) : ObjectStateCreateStruct

Parameters

Name Type Default value Description
$identifier string - -

Return values

ObjectStateCreateStruct

publicnewObjectStateGroupCreateStruct()

ObjectStateServiceDecorator.php : 140

Instantiates a new Object State Group Create Struct and sets $identified in it.

public newObjectStateGroupCreateStruct(string $identifier) : ObjectStateGroupCreateStruct

Parameters

Name Type Default value Description
$identifier string - -

Return values

ObjectStateGroupCreateStruct

publicnewObjectStateGroupUpdateStruct()

ObjectStateServiceDecorator.php : 145

Instantiates a new Object State Group Update Struct.

public newObjectStateGroupUpdateStruct() : ObjectStateGroupUpdateStruct

Return values

ObjectStateGroupUpdateStruct

publicnewObjectStateUpdateStruct()

ObjectStateServiceDecorator.php : 155

Instantiates a new Object State Update Struct.

public newObjectStateUpdateStruct() : ObjectStateUpdateStruct

Return values

ObjectStateUpdateStruct

publicsetContentState()

ObjectStateServiceDecorator.php : 120

Sets the object-state of a state group to $state for the given content.

public setContentState(ContentInfo $contentInfo, ObjectStateGroup $objectStateGroup, ObjectState $objectState) : void

Parameters

Name Type Default value Description
$contentInfo ContentInfo - -
$objectStateGroup ObjectStateGroup - -
$objectState ObjectState - -

publicsetPriorityOfObjectState()

ObjectStateServiceDecorator.php : 108

Changes the priority of the state.

public setPriorityOfObjectState(ObjectState $objectState, int $priority) : void

Parameters

Name Type Default value Description
$objectState ObjectState - -
$priority int - -

publicupdateObjectState()

ObjectStateServiceDecorator.php : 101

Updates an object state.

public updateObjectState(ObjectState $objectState, ObjectStateUpdateStruct $objectStateUpdateStruct) : ObjectState

Parameters

Name Type Default value Description
$objectState ObjectState - -
$objectStateUpdateStruct ObjectStateUpdateStruct - -

Return values

ObjectState

publicupdateObjectStateGroup()

ObjectStateServiceDecorator.php : 63

Updates an object state group.

public updateObjectStateGroup(ObjectStateGroup $objectStateGroup, ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct) : ObjectStateGroup

Parameters

Name Type Default value Description
$objectStateGroup ObjectStateGroup - -
$objectStateGroupUpdateStruct ObjectStateGroupUpdateStruct - -

Return values

ObjectStateGroup