PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\DoctrineDatabase

상속: extends eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler Database handler.
$maskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator Language mask generator.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, MaskGenerator $maskGenerator ) Creates a new Doctrine database ObjectState Gateway.
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 to $newStateId.
updateObjectStatePriority ( mixed $stateId, integer $priority ) Updates the object state priority to provided value.

보호된 메소드들

메소드 설명
createObjectStateFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Creates a generalized query for fetching object state(s).
createObjectStateGroupFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Creates a generalized query for fetching object state group(s).
deleteObjectStateGroupTranslations ( mixed $groupId ) Deletes all translations of the $groupId state group.
deleteObjectStateTranslations ( mixed $stateId ) Deletes all translations of the $stateId state.
generateLanguageMask ( array $languageCodes ) : integer Generates language mask from provided language codes Also sets always available bit.
insertObjectStateGroupTranslations ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup ) Inserts object state group translations into database.
insertObjectStateTranslations ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState ) Inserts object state group translations into database.

메소드 상세

__construct() 공개 메소드

Creates a new Doctrine database ObjectState Gateway.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, MaskGenerator $maskGenerator )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler
$maskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator

createObjectStateFindQuery() 보호된 메소드

Creates a generalized query for fetching object state(s).
protected createObjectStateFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
리턴 eZ\Publish\Core\Persistence\Database\SelectQuery

createObjectStateGroupFindQuery() 보호된 메소드

Creates a generalized query for fetching object state group(s).
protected createObjectStateGroupFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
리턴 eZ\Publish\Core\Persistence\Database\SelectQuery

deleteObjectState() 공개 메소드

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

deleteObjectStateGroup() 공개 메소드

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

deleteObjectStateGroupTranslations() 보호된 메소드

Deletes all translations of the $groupId state group.
protected deleteObjectStateGroupTranslations ( mixed $groupId )
$groupId mixed

deleteObjectStateTranslations() 보호된 메소드

Deletes all translations of the $stateId state.
protected deleteObjectStateTranslations ( mixed $stateId )
$stateId mixed

generateLanguageMask() 보호된 메소드

Generates language mask from provided language codes Also sets always available bit.
protected generateLanguageMask ( array $languageCodes ) : integer
$languageCodes array
리턴 integer

getContentCount() 공개 메소드

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

insertObjectState() 공개 메소드

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() 공개 메소드

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

insertObjectStateGroupTranslations() 보호된 메소드

Inserts object state group translations into database.
protected insertObjectStateGroupTranslations ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup )
$objectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group

insertObjectStateTranslations() 보호된 메소드

Inserts object state group translations into database.
protected insertObjectStateTranslations ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState )
$objectState eZ\Publish\SPI\Persistence\Content\ObjectState

loadObjectStateData() 공개 메소드

Loads data for an object state.
public loadObjectStateData ( mixed $stateId ) : array
$stateId mixed
리턴 array

loadObjectStateDataByIdentifier() 공개 메소드

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

loadObjectStateDataForContent() 공개 메소드

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

loadObjectStateGroupData() 공개 메소드

Loads data for an object state group.
public loadObjectStateGroupData ( mixed $groupId ) : array
$groupId mixed
리턴 array

loadObjectStateGroupDataByIdentifier() 공개 메소드

Loads data for an object state group by identifier.
public loadObjectStateGroupDataByIdentifier ( string $identifier ) : array
$identifier string
리턴 array

loadObjectStateGroupListData() 공개 메소드

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

loadObjectStateListData() 공개 메소드

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

setContentState() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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

프로퍼티 상세

$dbHandler 보호되어 있는 프로퍼티

Database handler.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
리턴 eZ\Publish\Core\Persistence\Database\DatabaseHandler

$maskGenerator 보호되어 있는 프로퍼티

Language mask generator.
protected MaskGenerator,eZ\Publish\Core\Persistence\Legacy\Content\Language $maskGenerator
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator