Class

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

class ExceptionConversion extends 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.

__construct(Gateway $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Details

at line 47
public array loadObjectStateData(mixed $stateId)

Loads data for an object state.

Parameters

mixed $stateId

Return Value

array

at line 66
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 84
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 102
public array loadObjectStateGroupData(mixed $groupId)

Loads data for an object state group.

Parameters

mixed $groupId

Return Value

array

at line 120
public array loadObjectStateGroupDataByIdentifier(string $identifier)

Loads data for an object state group by identifier.

Parameters

string $identifier

Return Value

array

at line 139
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 156
public insertObjectState(ObjectState $objectState, int $groupId)

Inserts a new object state into database.

Parameters

ObjectState $objectState
int $groupId

at line 172
public updateObjectState(ObjectState $objectState)

Updates the stored object state with provided data.

Parameters

ObjectState $objectState

at line 188
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 237
public insertObjectStateGroup(Group $objectStateGroup)

Inserts a new object state group into database.

Parameters

Group $objectStateGroup

at line 253
public updateObjectStateGroup(Group $objectStateGroup)

Updates the stored object state group with provided data.

Parameters

Group $objectStateGroup

at line 269
public deleteObjectStateGroup(mixed $groupId)

Deletes the object state group identified by $groupId.

Parameters

mixed $groupId

at line 287
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 306
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 324
public int getContentCount(mixed $stateId)

Returns the number of objects which are in this state.

Parameters

mixed $stateId

Return Value

int

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

Updates the object state priority to provided value.

Parameters

mixed $stateId
int $priority

at line 35
public __construct(Gateway $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Parameters

Gateway $innerGateway