kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php
public function _delete( $filePath, $insideOfTransaction = false, $fname = false )
    {
        if ( $fname )
            $fname .= "::_delete($filePath)";
        else
            $fname = "_delete($filePath)";
        // @todo Check if this is requried: _protec will already take care of
        //       checking if a transaction is running. But leave it like this
        //       for now.
        if ( $insideOfTransaction )
        {
            $res = $this->_deleteInner( $filePath, $fname );
            if ( !$res || $res instanceof eZMySQLBackendError )
            {
                $this->_handleErrorType( $res );
            }
        }
        else
        {
            $res = $this->_protect( array( $this, '_deleteInner' ), $fname,
                                    $filePath, $insideOfTransaction, $fname );
        }

        $this->eventHandler->notify( 'cluster/deleteFile', array( $filePath ) );

        return $res;
    }
public function _delete( $filePath, $insideOfTransaction = false, $fname = false )
    {
        if ( $fname )
            $fname .= "::_delete($filePath)";
        else
            $fname = "_delete($filePath)";
        // @todo Check if this is requried: _protec will already take care of
        //       checking if a transaction is running. But leave it like this
        //       for now.
        if ( $insideOfTransaction )
        {
            $res = $this->_deleteInner( $filePath, $fname );
            if ( !$res || $res instanceof eZMySQLBackendError )
            {
                $this->_handleErrorType( $res );
            }
        }
        else
        {
            $res = $this->_protect( array( $this, '_deleteInner' ), $fname,
                                    $filePath, $insideOfTransaction, $fname );
        }

        $this->eventHandler->notify( 'cluster/deleteFile', array( $filePath ) );

        return $res;
    }
public function _delete ( $ filePath , $ insideOfTransaction = false , $ fname = false ) { if ( $ fname ) $ fname .= "::_delete($filePath)" ; else $ fname = "_delete($filePath)" ; // @todo Check if this is requried: _protec will already take care of //       checking if a transaction is running. But leave it like this //       for now. if ( $ insideOfTransaction ) { $ res = $ this -> _deleteInner ( $ filePath , $ fname ) ; if ( ! $ res || $ res instanceof eZMySQLBackendError ) { $ this -> _handleErrorType ( $ res ) ; } } else { $ res = $ this -> _protect ( array ( $ this , '_deleteInner' ) , $ fname , $ filePath , $ insideOfTransaction , $ fname ) ; } $ this -> eventHandler -> notify ( 'cluster/deleteFile' , array ( $ filePath ) ) ; return $ res ; }
Deletes a file from DB

The file won't be removed from disk, _purge has to be used for this.
Only single files will be deleted, to delete multiple files,
_deleteByLike has to be used.

@param string $filePath Path of the file to delete
@param bool $insideOfTransaction
Wether or not a transaction is already started
@param bool|string $fname Optional caller name for debugging
@see _deleteInner
@see _deleteByLike
@return bool
Deletes a file from DB