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

상속: implements eZ\Publish\SPI\Persistence\Content\Location\Trash\Handler
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$contentHandler eZ\Publish\Core\Persistence\Legacy\Content\Handler Content handler.
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway Gateway for handling location data.
$locationHandler eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler Location handler.
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper Mapper for handling location data.

공개 메소드들

메소드 설명
__construct ( Handler $locationHandler, Gateway $locationGateway, Mapper $locationMapper, Handler $contentHandler ) : Handler Construct from userGateway.
deleteTrashItem ( integer $trashedId ) Removes a trashed location identified by $trashedLocationId from trash Associated content has to be deleted.
emptyTrash ( ) Empties the trash Everything contained in the trash must be removed.
findTrashItems ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion = null, integer $offset, integer $limit = null, array $sort = null ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed[] Returns an array of all trashed locations satisfying the $criterion (if provided), sorted with SortClause objects contained in $sort (if any).
loadTrashItem ( integer $id ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed Loads the data for the trashed location identified by $id.
recover ( mixed $trashedId, mixed $newParentId ) : integer Returns a trashed location to normal state.
trashSubtree ( mixed $locationId ) : null | eZ\Publish\SPI\Persistence\Content\Location\Trashed Sends a subtree starting to $locationId to the trash and returns a Trashed object corresponding to $locationId.

보호된 메소드들

메소드 설명
delete ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $trashItem ) Triggers delete operations for $trashItem.

메소드 상세

__construct() 공개 메소드

Construct from userGateway.
public __construct ( Handler $locationHandler, Gateway $locationGateway, Mapper $locationMapper, Handler $contentHandler ) : Handler
$locationHandler eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway
$locationMapper eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper
$contentHandler eZ\Publish\Core\Persistence\Legacy\Content\Handler
리턴 Handler

delete() 보호된 메소드

If there is no more locations for corresponding content, then it will be deleted as well.
protected delete ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $trashItem )
$trashItem eZ\Publish\SPI\Persistence\Content\Location\Trashed

deleteTrashItem() 공개 메소드

Removes a trashed location identified by $trashedLocationId from trash Associated content has to be deleted.
public deleteTrashItem ( integer $trashedId )
$trashedId integer

emptyTrash() 공개 메소드

Empties the trash Everything contained in the trash must be removed.
public emptyTrash ( )

findTrashItems() 공개 메소드

If no criterion is provided (null), no filter is applied.
public findTrashItems ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion = null, integer $offset, integer $limit = null, array $sort = null ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed[]
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$offset integer Offset to start listing from, 0 by default
$limit integer Limit for the listing. Null by default (no limit)
$sort array
리턴 eZ\Publish\SPI\Persistence\Content\Location\Trashed[]

loadTrashItem() 공개 메소드

$id is the same as original location (which has been previously trashed).
public loadTrashItem ( integer $id ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed
$id integer
리턴 eZ\Publish\SPI\Persistence\Content\Location\Trashed

recover() 공개 메소드

Recreates the originally trashed location in the new position. If this is not possible (because the old location does not exist any more), a ParentNotFound exception is thrown. Returns newly restored location Id.
public recover ( mixed $trashedId, mixed $newParentId ) : integer
$trashedId mixed
$newParentId mixed
리턴 integer Newly restored location id

trashSubtree() 공개 메소드

Moves all locations in the subtree to the Trash. The associated content objects are left untouched.
public trashSubtree ( mixed $locationId ) : null | eZ\Publish\SPI\Persistence\Content\Location\Trashed
$locationId mixed
리턴 null | eZ\Publish\SPI\Persistence\Content\Location\Trashed null if location was deleted, otherwise Trashed object

프로퍼티 상세

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

Content handler.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Handler

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

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

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

Location handler.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationHandler
리턴 eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler

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

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