ObjectStateServiceDecorator
Properties¶
$innerService
¶
|
|
Methods¶
__construct()
¶
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | ObjectStateService | - | - |
createObjectState()
¶
Creates a new object state in the given group.
|
|
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
createObjectStateGroup()
¶
Creates a new object state group.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectStateGroupCreateStruct | ObjectStateGroupCreateStruct | - | - |
Return values
deleteObjectState()
¶
Deletes a object state. The state of the content objects is reset to the first object state in the group.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectState | ObjectState | - | - |
deleteObjectStateGroup()
¶
Deletes a object state group including all states and links to content.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectStateGroup | ObjectStateGroup | - | - |
getContentCount()
¶
Returns the number of objects which are in this state.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectState | ObjectState | - | - |
Return values
int
getContentState()
¶
Gets the object-state of object identified by $contentId.
|
|
The $state is the id of the state within one group.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$contentInfo | ContentInfo | - | - |
$objectStateGroup | ObjectStateGroup | - | - |
Return values
loadObjectState()
¶
Loads an object state.
|
|
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
loadObjectStateByIdentifier()
¶
Loads an object state by identifier and group it belongs to.
|
|
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
loadObjectStateGroup()
¶
Loads a object state group.
|
|
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
loadObjectStateGroupByIdentifier()
¶
Loads a object state group by identifier.
|
|
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
loadObjectStateGroups()
¶
Loads all object state groups.
|
|
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>
loadObjectStates()
¶
This method returns the ordered list of object states of a group.
|
|
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>
newObjectStateCreateStruct()
¶
Instantiates a new Object State Create Struct and sets $identifier in it.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
Return values
newObjectStateGroupCreateStruct()
¶
Instantiates a new Object State Group Create Struct and sets $identified in it.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
Return values
newObjectStateGroupUpdateStruct()
¶
Instantiates a new Object State Group Update Struct.
|
|
Return values
newObjectStateUpdateStruct()
¶
Instantiates a new Object State Update Struct.
|
|
Return values
setContentState()
¶
Sets the object-state of a state group to $state for the given content.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$contentInfo | ContentInfo | - | - |
$objectStateGroup | ObjectStateGroup | - | - |
$objectState | ObjectState | - | - |
setPriorityOfObjectState()
¶
Changes the priority of the state.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectState | ObjectState | - | - |
$priority | int | - | - |
updateObjectState()
¶
Updates an object state.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectState | ObjectState | - | - |
$objectStateUpdateStruct | ObjectStateUpdateStruct | - | - |
Return values
updateObjectStateGroup()
¶
Updates an object state group.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$objectStateGroup | ObjectStateGroup | - | - |
$objectStateGroupUpdateStruct | ObjectStateGroupUpdateStruct | - | - |