PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contentGateway Gateway Content gateway.
$contentMapper Mapper Content handler.
$fieldHandler FieldHandler FieldHandler.
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway Gateway for handling location data.
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper Location Mapper.

공개 메소드들

메소드 설명
__construct ( Gateway $locationGateway, Mapper $locationMapper, Gateway $contentGateway, Mapper $contentMapper, FieldHandler $fieldHandler )
changeMainLocation ( mixed $contentId, mixed $locationId ) Changes main location of content identified by given $contentId to location identified by given $locationId.
listVersions ( integer $contentId ) : eZ\Publish\SPI\Persistence\Content\VersionInfo[] Returns the versions for $contentId.
loadContentInfo ( integer | string $contentId ) : eZ\Publish\SPI\Persistence\Content\ContentInfo Returns the metadata object for a content identified by $contentId.
loadLocation ( integer $locationId ) : eZ\Publish\SPI\Persistence\Content\Location Loads the data for the location identified by $locationId.
removeRawContent ( integer $contentId ) Deletes raw content data.
removeSubtree ( mixed $locationId ) : boolean Removes all Locations under and including $locationId.
setSectionForSubtree ( mixed $locationId, mixed $sectionId ) Set section on all content objects in the subtree.

메소드 상세

__construct() 공개 메소드

public __construct ( Gateway $locationGateway, Mapper $locationMapper, Gateway $contentGateway, Mapper $contentMapper, FieldHandler $fieldHandler )
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper
$contentGateway Gateway
$contentMapper Mapper
$fieldHandler FieldHandler

changeMainLocation() 공개 메소드

Updates ezcontentobject_tree and eznode_assignment tables (eznode_assignment for content current version number).
public changeMainLocation ( mixed $contentId, mixed $locationId )
$contentId mixed
$locationId mixed

listVersions() 공개 메소드

Result is returned with oldest version first (using version id as it has index and is auto increment).
public listVersions ( integer $contentId ) : eZ\Publish\SPI\Persistence\Content\VersionInfo[]
$contentId integer
리턴 eZ\Publish\SPI\Persistence\Content\VersionInfo[]

loadContentInfo() 공개 메소드

Returns the metadata object for a content identified by $contentId.
public loadContentInfo ( integer | string $contentId ) : eZ\Publish\SPI\Persistence\Content\ContentInfo
$contentId integer | string
리턴 eZ\Publish\SPI\Persistence\Content\ContentInfo

loadLocation() 공개 메소드

Loads the data for the location identified by $locationId.
public loadLocation ( integer $locationId ) : eZ\Publish\SPI\Persistence\Content\Location
$locationId integer
리턴 eZ\Publish\SPI\Persistence\Content\Location

removeRawContent() 공개 메소드

Deletes raw content data.
public removeRawContent ( integer $contentId )
$contentId integer

removeSubtree() 공개 메소드

Performs a recursive delete on the location identified by $locationId, including all of its child locations. Content which is not referred to by any other location is automatically removed. Content which looses its main Location will get the first of its other Locations assigned as the new main Location.
public removeSubtree ( mixed $locationId ) : boolean
$locationId mixed
리턴 boolean

setSectionForSubtree() 공개 메소드

Set section on all content objects in the subtree.
public setSectionForSubtree ( mixed $locationId, mixed $sectionId )
$locationId mixed
$sectionId mixed

프로퍼티 상세

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

Content gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $contentGateway
리턴 Gateway

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

Content handler.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapper
리턴 Mapper

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

FieldHandler.
protected FieldHandler,eZ\Publish\Core\Persistence\Legacy\Content $fieldHandler
리턴 FieldHandler

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

Gateway for handling location data.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

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

Location Mapper.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationMapper
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper