eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler::removeRawContent PHP Метод

removeRawContent() публичный Метод

Deletes raw content data.
public removeRawContent ( integer $contentId )
$contentId integer
    public function removeRawContent($contentId)
    {
        $this->locationGateway->removeElementFromTrash($this->loadContentInfo($contentId)->mainLocationId);
        foreach ($this->listVersions($contentId) as $versionInfo) {
            $this->fieldHandler->deleteFields($contentId, $versionInfo);
        }
        // Must be called before deleteRelations()
        $this->contentGateway->removeReverseFieldRelations($contentId);
        $this->contentGateway->deleteRelations($contentId);
        $this->contentGateway->deleteVersions($contentId);
        $this->contentGateway->deleteNames($contentId);
        $this->contentGateway->deleteContent($contentId);
    }

Usage Example

Пример #1
0
 /**
  * Deletes raw content data.
  *
  * @param int $contentId
  */
 public function removeRawContent($contentId)
 {
     $this->treeHandler->removeRawContent($contentId);
 }