Method |
Description |
|
__construct ( Gateway $objectStateGateway, Mapper $objectStateMapper ) |
Creates a new ObjectState Handler. |
|
create ( mixed $groupId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState |
Creates a new object state in the given group. |
|
createGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group |
Creates a new object state group. |
|
delete ( mixed $stateId ) |
Deletes a object state. The state of the content objects is reset to the
first object state in the group. |
|
deleteGroup ( mixed $groupId ) |
Deletes a object state group including all states and links to content. |
|
getContentCount ( mixed $stateId ) : integer |
Returns the number of objects which are in this state. |
|
getContentState ( mixed $contentId, mixed $stateGroupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState |
Gets the object-state of object identified by $contentId. |
|
load ( mixed $stateId ) : eZ\Publish\SPI\Persistence\Content\ObjectState |
Loads an object state. |
|
loadAllGroups ( integer $offset, integer $limit ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] |
Loads all object state groups. |
|
loadByIdentifier ( string $identifier, mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState |
Loads an object state by identifier and group it belongs to. |
|
loadGroup ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group |
Loads an object state group. |
|
loadGroupByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group |
Loads a object state group by identifier. |
|
loadObjectStates ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState[] |
This method returns the ordered list of object states of a group. |
|
setContentState ( mixed $contentId, mixed $groupId, mixed $stateId ) : boolean |
Sets the object-state of a state group to $stateId for the given content. |
|
setPriority ( mixed $stateId, integer $priority ) |
Changes the priority of the state. |
|
update ( mixed $stateId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState |
Updates an object state. |
|
updateGroup ( mixed $groupId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group |
Updates an object state group. |
|