Пример #1
0
 /**
  * Empties trash.
  *
  * All locations contained in the trash will be removed. Content objects will be removed
  * if all locations of the content are gone.
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to empty the trash
  */
 public function emptyTrash()
 {
     $returnValue = $this->service->emptyTrash();
     $this->signalDispatcher->emit(new EmptyTrashSignal(array()));
     return $returnValue;
 }
Пример #2
0
 /**
  * Empties the trash.
  *
  * @return \eZ\Publish\Core\REST\Server\Values\NoContent
  */
 public function emptyTrash()
 {
     $this->trashService->emptyTrash();
     return new Values\NoContent();
 }