eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion Class Reference

ObjectState Gateway. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion:

Public Member Functions

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

Protected Attributes

 $innerGateway
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::__construct ( Gateway  $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Parameters
Gateway$innerGateway

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::deleteObjectState (   $stateId)

Deletes object state identified by $stateId.

Parameters
int$stateId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::deleteObjectStateGroup (   $groupId)

Deletes the object state group identified by $groupId.

Parameters
mixed$groupId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::deleteObjectStateLinks (   $stateId)

Deletes object state links identified by $stateId.

Parameters
int$stateId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::getContentCount (   $stateId)

Returns the number of objects which are in this state.

Parameters
mixed$stateId
Returns
int
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::insertObjectState ( ObjectState  $objectState,
  $groupId 
)

Inserts a new object state into database.

Parameters
\eZ\Publish\SPI\Persistence\Content\ObjectState$objectState
int$groupId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::insertObjectStateGroup ( Group  $objectStateGroup)

Inserts a new object state group into database.

Parameters
\eZ\Publish\SPI\Persistence\Content\ObjectState\Group$objectStateGroup
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateData (   $stateId)

Loads data for an object state.

Parameters
mixed$stateId
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateDataByIdentifier (   $identifier,
  $groupId 
)

Loads data for an object state by identifier.

Parameters
string$identifier
mixed$groupId
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateDataForContent (   $contentId,
  $stateGroupId 
)

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

Parameters
int$contentId
int$stateGroupId
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateGroupData (   $groupId)

Loads data for an object state group.

Parameters
mixed$groupId
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateGroupDataByIdentifier (   $identifier)

Loads data for an object state group by identifier.

Parameters
string$identifier
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateGroupListData (   $offset,
  $limit 
)

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

Parameters
int$offset
int$limit
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateListData (   $groupId)

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

Parameters
mixed$groupId
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::setContentState (   $contentId,
  $groupId,
  $stateId 
)

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

Parameters
mixed$contentId
mixed$groupId
mixed$stateId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::updateObjectState ( ObjectState  $objectState)

Updates the stored object state with provided data.

Parameters
\eZ\Publish\SPI\Persistence\Content\ObjectState$objectState
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::updateObjectStateGroup ( Group  $objectStateGroup)

Updates the stored object state group with provided data.

Parameters
\eZ\Publish\SPI\Persistence\Content\ObjectState\Group$objectStateGroup
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::updateObjectStateLinks (   $oldStateId,
  $newStateId 
)

Update object state links from $oldStateId to $newStateId.

Parameters
int$oldStateId
int$newStateId
eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::updateObjectStatePriority (   $stateId,
  $priority 
)

Updates the object state priority to provided value.

Parameters
mixed$stateId
int$priority

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::$innerGateway
protected

The documentation for this class was generated from the following file: