Property | Type | Description | |
---|---|---|---|
$nameSchemaService | |||
$persistenceHandler | eZ\Publish\SPI\Persistence\Handler | ||
$repository | eZ\Publish\API\Repository\Repository | ||
$settings | array |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Handler $handler, |
Setups service with reference to repository object that created it & corresponding handler. | |
deleteTrashItem ( eZ\Publish\API\Repository\Values\Content\TrashItem $trashItem ) | Deletes a trash item. | |
emptyTrash ( ) | Empties trash. | |
findTrashItems ( eZ\Publish\API\Repository\Values\Content\Query $query ) : eZ\Publish\API\Repository\Values\Content\SearchResult | Returns a collection of Trashed locations contained in the trash. | |
loadTrashItem ( mixed $trashItemId ) : eZ\Publish\API\Repository\Values\Content\TrashItem | Loads a trashed location object from its $id. | |
recover ( eZ\Publish\API\Repository\Values\Content\TrashItem $trashItem, eZ\Publish\API\Repository\Values\Content\Location $newParentLocation = null ) : eZ\Publish\API\Repository\Values\Content\Location | Recovers the $trashedLocation at its original place if possible. | |
trash ( eZ\Publish\API\Repository\Values\Content\Location $location ) : null | eZ\Publish\API\Repository\Values\Content\TrashItem | Sends $location and all its children to trash and returns the corresponding trash item. |
Method | Description | |
---|---|---|
buildDomainTrashItemObject ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $spiTrashItem ) : eZ\Publish\API\Repository\Values\Content\TrashItem | Builds the domain TrashItem object from provided persistence trash item. | |
getDateTime ( integer $timestamp ) : DateTime |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Handler $handler, |
||
$repository | eZ\Publish\API\Repository\Repository | |
$handler | eZ\Publish\SPI\Persistence\Handler | |
$nameSchemaService | ||
$settings | array |
protected buildDomainTrashItemObject ( eZ\Publish\SPI\Persistence\Content\Location\Trashed $spiTrashItem ) : eZ\Publish\API\Repository\Values\Content\TrashItem | ||
$spiTrashItem | eZ\Publish\SPI\Persistence\Content\Location\Trashed | |
return | eZ\Publish\API\Repository\Values\Content\TrashItem |
public deleteTrashItem ( eZ\Publish\API\Repository\Values\Content\TrashItem $trashItem ) | ||
$trashItem | eZ\Publish\API\Repository\Values\Content\TrashItem |
public emptyTrash ( ) |
public findTrashItems ( eZ\Publish\API\Repository\Values\Content\Query $query ) : eZ\Publish\API\Repository\Values\Content\SearchResult | ||
$query | eZ\Publish\API\Repository\Values\Content\Query | |
return | eZ\Publish\API\Repository\Values\Content\SearchResult |
protected getDateTime ( integer $timestamp ) : DateTime | ||
$timestamp | integer | |
return | DateTime |
public loadTrashItem ( mixed $trashItemId ) : eZ\Publish\API\Repository\Values\Content\TrashItem | ||
$trashItemId | mixed | |
return | eZ\Publish\API\Repository\Values\Content\TrashItem |
public recover ( eZ\Publish\API\Repository\Values\Content\TrashItem $trashItem, eZ\Publish\API\Repository\Values\Content\Location $newParentLocation = null ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$trashItem | eZ\Publish\API\Repository\Values\Content\TrashItem | |
$newParentLocation | eZ\Publish\API\Repository\Values\Content\Location | |
return | eZ\Publish\API\Repository\Values\Content\Location | the newly created or recovered location |
public trash ( eZ\Publish\API\Repository\Values\Content\Location $location ) : null | eZ\Publish\API\Repository\Values\Content\TrashItem | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
return | null | eZ\Publish\API\Repository\Values\Content\TrashItem | null if location was deleted, otherwise TrashItem |
protected NameSchemaService,eZ\Publish\Core\Repository\Helper $nameSchemaService | ||
return |
protected Handler,eZ\Publish\SPI\Persistence $persistenceHandler | ||
return | eZ\Publish\SPI\Persistence\Handler |
protected Repository,eZ\Publish\API\Repository $repository | ||
return | eZ\Publish\API\Repository\Repository |