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

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway The wrapped gateway.

Méthodes publiques

Méthode Description
__construct ( Gateway $innerGateway ) Creates a new exception conversion gateway around $innerGateway.
deleteObjectState ( integer $stateId ) Deletes object state identified by $stateId.
deleteObjectStateGroup ( mixed $groupId ) Deletes the object state group identified by $groupId.
deleteObjectStateLinks ( integer $stateId ) Deletes object state links identified by $stateId.
getContentCount ( mixed $stateId ) : integer Returns the number of objects which are in this state.
insertObjectState ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState, integer $groupId ) Inserts a new object state into database.
insertObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup ) Inserts a new object state group into database.
loadObjectStateData ( mixed $stateId ) : array Loads data for an object state.
loadObjectStateDataByIdentifier ( string $identifier, mixed $groupId ) : array Loads data for an object state by identifier.
loadObjectStateDataForContent ( integer $contentId, integer $stateGroupId ) : array Loads object state data for $contentId content from $stateGroupId state group.
loadObjectStateGroupData ( mixed $groupId ) : array Loads data for an object state group.
loadObjectStateGroupDataByIdentifier ( string $identifier ) : array Loads data for an object state group by identifier.
loadObjectStateGroupListData ( integer $offset, integer $limit ) : array Loads data for all object state groups, filtered by $offset and $limit.
loadObjectStateListData ( mixed $groupId ) : array Loads data for all object states belonging to group with $groupId ID.
setContentState ( mixed $contentId, mixed $groupId, mixed $stateId ) Sets the object state $stateId to content with $contentId ID.
updateObjectState ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState ) Updates the stored object state with provided data.
updateObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup ) Updates the stored object state group with provided data.
updateObjectStateLinks ( integer $oldStateId, integer $newStateId ) Update object state links from $oldStateId to $newStateId.
updateObjectStatePriority ( mixed $stateId, integer $priority ) Updates the object state priority to provided value.

Method Details

__construct() public méthode

Creates a new exception conversion gateway around $innerGateway.
public __construct ( Gateway $innerGateway )
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway

deleteObjectState() public méthode

Deletes object state identified by $stateId.
public deleteObjectState ( integer $stateId )
$stateId integer

deleteObjectStateGroup() public méthode

Deletes the object state group identified by $groupId.
public deleteObjectStateGroup ( mixed $groupId )
$groupId mixed

getContentCount() public méthode

Returns the number of objects which are in this state.
public getContentCount ( mixed $stateId ) : integer
$stateId mixed
Résultat integer

insertObjectState() public méthode

Inserts a new object state into database.
public insertObjectState ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState, integer $groupId )
$objectState eZ\Publish\SPI\Persistence\Content\ObjectState
$groupId integer

insertObjectStateGroup() public méthode

Inserts a new object state group into database.
public insertObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup )
$objectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group

loadObjectStateData() public méthode

Loads data for an object state.
public loadObjectStateData ( mixed $stateId ) : array
$stateId mixed
Résultat array

loadObjectStateDataByIdentifier() public méthode

Loads data for an object state by identifier.
public loadObjectStateDataByIdentifier ( string $identifier, mixed $groupId ) : array
$identifier string
$groupId mixed
Résultat array

loadObjectStateDataForContent() public méthode

Loads object state data for $contentId content from $stateGroupId state group.
public loadObjectStateDataForContent ( integer $contentId, integer $stateGroupId ) : array
$contentId integer
$stateGroupId integer
Résultat array

loadObjectStateGroupData() public méthode

Loads data for an object state group.
public loadObjectStateGroupData ( mixed $groupId ) : array
$groupId mixed
Résultat array

loadObjectStateGroupDataByIdentifier() public méthode

Loads data for an object state group by identifier.
public loadObjectStateGroupDataByIdentifier ( string $identifier ) : array
$identifier string
Résultat array

loadObjectStateGroupListData() public méthode

Loads data for all object state groups, filtered by $offset and $limit.
public loadObjectStateGroupListData ( integer $offset, integer $limit ) : array
$offset integer
$limit integer
Résultat array

loadObjectStateListData() public méthode

Loads data for all object states belonging to group with $groupId ID.
public loadObjectStateListData ( mixed $groupId ) : array
$groupId mixed
Résultat array

setContentState() public méthode

Sets the object state $stateId to content with $contentId ID.
public setContentState ( mixed $contentId, mixed $groupId, mixed $stateId )
$contentId mixed
$groupId mixed
$stateId mixed

updateObjectState() public méthode

Updates the stored object state with provided data.
public updateObjectState ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState )
$objectState eZ\Publish\SPI\Persistence\Content\ObjectState

updateObjectStateGroup() public méthode

Updates the stored object state group with provided data.
public updateObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup )
$objectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group

updateObjectStatePriority() public méthode

Updates the object state priority to provided value.
public updateObjectStatePriority ( mixed $stateId, integer $priority )
$stateId mixed
$priority integer

Property Details

$innerGateway protected_oe property

The wrapped gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $innerGateway
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway