Class

eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway

abstract class Gateway

ObjectState Gateway.

Methods

array loadObjectStateData(mixed $stateId)

Loads data for an object state.

array loadObjectStateDataByIdentifier(string $identifier, mixed $groupId)

Loads data for an object state by identifier.

array loadObjectStateListData(mixed $groupId)

Loads data for all object states belonging to group with $groupId ID.

array loadObjectStateGroupData(mixed $groupId)

Loads data for an object state group.

array loadObjectStateGroupDataByIdentifier(string $identifier)

Loads data for an object state group by identifier.

array loadObjectStateGroupListData(int $offset, int $limit)

Loads data for all object state groups, filtered by $offset and $limit.

insertObjectState(ObjectState $objectState, int $groupId)

Inserts a new object state into database.

updateObjectState(ObjectState $objectState)

Updates the stored object state with provided data.

deleteObjectState(int $stateId)

Deletes object state identified by $stateId.

updateObjectStateLinks(int $oldStateId, int $newStateId)

Update object state links from $oldStateId to $newStateId.

deleteObjectStateLinks(int $stateId)

Deletes object state links identified by $stateId.

insertObjectStateGroup(Group $objectStateGroup)

Inserts a new object state group into database.

updateObjectStateGroup(Group $objectStateGroup)

Updates the stored object state group with provided data.

deleteObjectStateGroup(mixed $groupId)

Deletes the object state group identified by $groupId.

setContentState(mixed $contentId, mixed $groupId, mixed $stateId)

Sets the object state $stateId to content with $contentId ID.

array loadObjectStateDataForContent(int $contentId, int $stateGroupId)

Loads object state data for $contentId content from $stateGroupId state group.

int getContentCount(mixed $stateId)

Returns the number of objects which are in this state.

updateObjectStatePriority(mixed $stateId, int $priority)

Updates the object state priority to provided value.

Details

at line 26
abstract public array loadObjectStateData(mixed $stateId)

Loads data for an object state.

Parameters

mixed $stateId

Return Value

array

at line 36
abstract public array loadObjectStateDataByIdentifier(string $identifier, mixed $groupId)

Loads data for an object state by identifier.

Parameters

string $identifier
mixed $groupId

Return Value

array

at line 45
abstract public array loadObjectStateListData(mixed $groupId)

Loads data for all object states belonging to group with $groupId ID.

Parameters

mixed $groupId

Return Value

array

at line 54
abstract public array loadObjectStateGroupData(mixed $groupId)

Loads data for an object state group.

Parameters

mixed $groupId

Return Value

array

at line 63
abstract public array loadObjectStateGroupDataByIdentifier(string $identifier)

Loads data for an object state group by identifier.

Parameters

string $identifier

Return Value

array

at line 73
abstract public array loadObjectStateGroupListData(int $offset, int $limit)

Loads data for all object state groups, filtered by $offset and $limit.

Parameters

int $offset
int $limit

Return Value

array

at line 81
abstract public insertObjectState(ObjectState $objectState, int $groupId)

Inserts a new object state into database.

Parameters

ObjectState $objectState
int $groupId

at line 88
abstract public updateObjectState(ObjectState $objectState)

Updates the stored object state with provided data.

Parameters

ObjectState $objectState

at line 95
abstract public deleteObjectState(int $stateId)

Deletes object state identified by $stateId.

Parameters

int $stateId

Update object state links from $oldStateId to $newStateId.

Parameters

int $oldStateId
int $newStateId

Deletes object state links identified by $stateId.

Parameters

int $stateId

at line 117
abstract public insertObjectStateGroup(Group $objectStateGroup)

Inserts a new object state group into database.

Parameters

Group $objectStateGroup

at line 124
abstract public updateObjectStateGroup(Group $objectStateGroup)

Updates the stored object state group with provided data.

Parameters

Group $objectStateGroup

at line 131
abstract public deleteObjectStateGroup(mixed $groupId)

Deletes the object state group identified by $groupId.

Parameters

mixed $groupId

at line 140
abstract public setContentState(mixed $contentId, mixed $groupId, mixed $stateId)

Sets the object state $stateId to content with $contentId ID.

Parameters

mixed $contentId
mixed $groupId
mixed $stateId

at line 150
abstract public array loadObjectStateDataForContent(int $contentId, int $stateGroupId)

Loads object state data for $contentId content from $stateGroupId state group.

Parameters

int $contentId
int $stateGroupId

Return Value

array

at line 159
abstract public int getContentCount(mixed $stateId)

Returns the number of objects which are in this state.

Parameters

mixed $stateId

Return Value

int

at line 167
abstract public updateObjectStatePriority(mixed $stateId, int $priority)

Updates the object state priority to provided value.

Parameters

mixed $stateId
int $priority