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

상속: implements eZ\Publish\SPI\Persistence\Content\ObjectState\Handler
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objectStateGateway Gateway ObjectState Gateway.
$objectStateMapper Mapper ObjectState Mapper.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Creates a new ObjectState Handler.
public __construct ( Gateway $objectStateGateway, Mapper $objectStateMapper )
$objectStateGateway Gateway
$objectStateMapper Mapper

create() 공개 메소드

The new state gets the last priority. Note: in current kernel: If it is the first state all content objects will set to this state.
public create ( mixed $groupId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$groupId mixed
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState

createGroup() 공개 메소드

Creates a new object state group.
public createGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState\Group

delete() 공개 메소드

Deletes a object state. The state of the content objects is reset to the first object state in the group.
public delete ( mixed $stateId )
$stateId mixed

deleteGroup() 공개 메소드

Deletes a object state group including all states and links to content.
public deleteGroup ( mixed $groupId )
$groupId mixed

getContentCount() 공개 메소드

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

getContentState() 공개 메소드

The $state is the id of the state within one group.
public getContentState ( mixed $contentId, mixed $stateGroupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$contentId mixed
$stateGroupId mixed
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState

load() 공개 메소드

Loads an object state.
public load ( mixed $stateId ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$stateId mixed
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState

loadAllGroups() 공개 메소드

Loads all object state groups.
public loadAllGroups ( integer $offset, integer $limit ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group[]
$offset integer
$limit integer
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState\Group[]

loadByIdentifier() 공개 메소드

Loads an object state by identifier and group it belongs to.
public loadByIdentifier ( string $identifier, mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$identifier string
$groupId mixed
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState

loadGroup() 공개 메소드

Loads an object state group.
public loadGroup ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$groupId mixed
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState\Group

loadGroupByIdentifier() 공개 메소드

Loads a object state group by identifier.
public loadGroupByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$identifier string
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState\Group

loadObjectStates() 공개 메소드

This method returns the ordered list of object states of a group.
public loadObjectStates ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState[]
$groupId mixed
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState[]

setContentState() 공개 메소드

Sets the object-state of a state group to $stateId for the given content.
public setContentState ( mixed $contentId, mixed $groupId, mixed $stateId ) : boolean
$contentId mixed
$groupId mixed
$stateId mixed
리턴 boolean

setPriority() 공개 메소드

Changes the priority of the state.
public setPriority ( mixed $stateId, integer $priority )
$stateId mixed
$priority integer

update() 공개 메소드

Updates an object state.
public update ( mixed $stateId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$stateId mixed
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState

updateGroup() 공개 메소드

Updates an object state group.
public updateGroup ( mixed $groupId, eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$groupId mixed
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
리턴 eZ\Publish\SPI\Persistence\Content\ObjectState\Group

프로퍼티 상세

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

ObjectState Gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $objectStateGateway
리턴 Gateway

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

ObjectState Mapper.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $objectStateMapper
리턴 Mapper