PHP Class eZ\Publish\Core\REST\Server\Controller\Trash

Inheritance: extends eZ\Publish\Core\REST\Server\Controller
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$locationService eZ\Publish\API\Repository\LocationService Location service.
$trashService eZ\Publish\API\Repository\TrashService Trash service.

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\TrashService $trashService, eZ\Publish\API\Repository\LocationService $locationService ) Construct controller.
deleteTrashItem ( $trashItemId ) : eZ\Publish\Core\REST\Server\Values\NoContent Deletes the given trash item.
emptyTrash ( ) : eZ\Publish\Core\REST\Server\Values\NoContent Empties the trash.
loadTrashItem ( $trashItemId ) : RestTrashItem Returns the trash item given by id.
loadTrashItems ( Request $request ) : Trash Returns a list of all trash items.
restoreTrashItem ( $trashItemId, Request $request ) : ResourceCreated Restores a trashItem.

Method Details

__construct() public method

Construct controller.
public __construct ( eZ\Publish\API\Repository\TrashService $trashService, eZ\Publish\API\Repository\LocationService $locationService )
$trashService eZ\Publish\API\Repository\TrashService
$locationService eZ\Publish\API\Repository\LocationService

deleteTrashItem() public method

Deletes the given trash item.
public deleteTrashItem ( $trashItemId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$trashItemId
return eZ\Publish\Core\REST\Server\Values\NoContent

emptyTrash() public method

Empties the trash.
public emptyTrash ( ) : eZ\Publish\Core\REST\Server\Values\NoContent
return eZ\Publish\Core\REST\Server\Values\NoContent

loadTrashItem() public method

Returns the trash item given by id.
public loadTrashItem ( $trashItemId ) : RestTrashItem
$trashItemId
return eZ\Publish\Core\REST\Server\Values\RestTrashItem

loadTrashItems() public method

Returns a list of all trash items.
public loadTrashItems ( Request $request ) : Trash
$request Symfony\Component\HttpFoundation\Request
return eZ\Publish\Core\REST\Server\Values\Trash

restoreTrashItem() public method

Restores a trashItem.
public restoreTrashItem ( $trashItemId, Request $request ) : ResourceCreated
$trashItemId
$request Symfony\Component\HttpFoundation\Request
return eZ\Publish\Core\REST\Server\Values\ResourceCreated

Property Details

$locationService protected_oe property

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
return eZ\Publish\API\Repository\LocationService

$trashService protected_oe property

Trash service.
protected TrashService,eZ\Publish\API\Repository $trashService
return eZ\Publish\API\Repository\TrashService