eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::removeElementFromTrash PHP Method

removeElementFromTrash() abstract public method

Will NOT remove associated content object nor attributes.
abstract public removeElementFromTrash ( integer $id )
$id integer The trashed location Id
    public abstract function removeElementFromTrash($id);

Usage Example

Example #1
0
 /**
  * Deletes raw content data
  *
  * @param int $contentId
  */
 public function removeRawContent($contentId)
 {
     $this->locationGateway->removeElementFromTrash($this->loadContentInfo($contentId)->mainLocationId);
     foreach ($this->listVersions($contentId) as $versionInfo) {
         $this->fieldHandler->deleteFields($contentId, $versionInfo);
     }
     $this->contentGateway->deleteRelations($contentId);
     $this->contentGateway->deleteVersions($contentId);
     $this->contentGateway->deleteNames($contentId);
     $this->contentGateway->deleteContent($contentId);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::removeElementFromTrash