kernel/classes/ezcontentobjecttrashnode.php
function storeToTrash()
    {
        $this->store();

        $db = eZDB::instance();
        $db->begin();

        /** @var eZContentObject $contentObject */
        $contentObject = $this->attribute( 'object' );
        $offset = 0;
        $limit = 20;
        while (
            $contentobjectAttributes = $contentObject->allContentObjectAttributes(
                $contentObject->attribute( 'id' ), true,
                array( 'limit' => $limit, 'offset' => $offset )
            )
        )
        {
            foreach ( $contentobjectAttributes as $contentobjectAttribute )
            {
                $dataType = $contentobjectAttribute->dataType();
                if ( !$dataType )
                    continue;
                $dataType->trashStoredObjectAttribute( $contentobjectAttribute );
            }
            $offset += $limit;
        }

        $db->commit();
    }
function storeToTrash()
    {
        $this->store();

        $db = eZDB::instance();
        $db->begin();

        /** @var eZContentObject $contentObject */
        $contentObject = $this->attribute( 'object' );
        $offset = 0;
        $limit = 20;
        while (
            $contentobjectAttributes = $contentObject->allContentObjectAttributes(
                $contentObject->attribute( 'id' ), true,
                array( 'limit' => $limit, 'offset' => $offset )
            )
        )
        {
            foreach ( $contentobjectAttributes as $contentobjectAttribute )
            {
                $dataType = $contentobjectAttribute->dataType();
                if ( !$dataType )
                    continue;
                $dataType->trashStoredObjectAttribute( $contentobjectAttribute );
            }
            $offset += $limit;
        }

        $db->commit();
    }
function storeToTrash ( ) { $ this -> store ( ) ; $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; /** @var eZContentObject $contentObject */ $ contentObject = $ this -> attribute ( 'object' ) ; $ offset = 0 ; $ limit = 20 ; while ( $ contentobjectAttributes = $ contentObject -> allContentObjectAttributes ( $ contentObject -> attribute ( 'id' ) , true , array ( 'limit' => $ limit , 'offset' => $ offset ) ) ) { foreach ( $ contentobjectAttributes as $ contentobjectAttribute ) { $ dataType = $ contentobjectAttribute -> dataType ( ) ; if ( ! $ dataType ) continue ; $ dataType -> trashStoredObjectAttribute ( $ contentobjectAttribute ) ; } $ offset += $ limit ; } $ db -> commit ( ) ; }
Stores this object to the trash

Loops through all attributes of the object and stores them to the trash

@see eZDataType::trashStoredObjectAttribute()
Stores this object to the trash