Свойство | Тип | Описание | |
---|---|---|---|
$contentHandler | Content handler. | ||
$locationGateway | Gateway for handling location data. | ||
$locationHandler | Location handler. | ||
$locationMapper | Mapper for handling location data. |
Метод | Описание | |
---|---|---|
__construct ( |
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. |
public __construct ( |
||
$locationHandler | ||
$locationGateway | ||
$locationMapper | ||
$contentHandler | ||
Результат |
protected delete ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $trashItem ) | ||
$trashItem | eZ\Publish\SPI\Persistence\Content\Location\Trashed |
public deleteTrashItem ( integer $trashedId ) | ||
$trashedId | integer |
public emptyTrash ( ) |
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[] |
public loadTrashItem ( integer $id ) : eZ\Publish\SPI\Persistence\Content\Location\Trashed | ||
$id | integer | |
Результат | eZ\Publish\SPI\Persistence\Content\Location\Trashed |
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 |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler | ||
Результат |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway | ||
Результат |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationHandler | ||
Результат |