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

Inheritance: extends eZ\Publish\Core\REST\Server\Controller
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$locationService eZ\Publish\API\Repository\LocationService Location service.
$trashService eZ\Publish\API\Repository\TrashService Trash service.

Méthodes publiques

Méthode 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 méthode

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 méthode

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

emptyTrash() public méthode

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

loadTrashItem() public méthode

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

loadTrashItems() public méthode

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

restoreTrashItem() public méthode

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

Property Details

$locationService protected_oe property

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
Résultat eZ\Publish\API\Repository\LocationService

$trashService protected_oe property

Trash service.
protected TrashService,eZ\Publish\API\Repository $trashService
Résultat eZ\Publish\API\Repository\TrashService