clustering/dfs/ezpostsgresqlbackend.php
public function _copy( $srcFilePath, $dstFilePath, $fname = false )
    {
        if ( $fname )
            $fname .= "::_copy($srcFilePath, $dstFilePath)";
        else
            $fname = "_copy($srcFilePath, $dstFilePath)";

        // fetch source file metadata
        $metaData = $this->_fetchMetadata( $srcFilePath, $fname );
        // if source file does not exist then do nothing.
        // @todo Throw an exception here.
        //       Info: $srcFilePath
        if ( !$metaData )
        {
            return false;
        }
        return $this->_protect( array( $this, "_copyInner" ), $fname,
                                $srcFilePath, $dstFilePath, $fname, $metaData );
    }
public function _copy( $srcFilePath, $dstFilePath, $fname = false )
    {
        if ( $fname )
            $fname .= "::_copy($srcFilePath, $dstFilePath)";
        else
            $fname = "_copy($srcFilePath, $dstFilePath)";

        // fetch source file metadata
        $metaData = $this->_fetchMetadata( $srcFilePath, $fname );
        // if source file does not exist then do nothing.
        // @todo Throw an exception here.
        //       Info: $srcFilePath
        if ( !$metaData )
        {
            return false;
        }
        return $this->_protect( array( $this, "_copyInner" ), $fname,
                                $srcFilePath, $dstFilePath, $fname, $metaData );
    }
public function _copy ( $ srcFilePath , $ dstFilePath , $ fname = false ) { if ( $ fname ) $ fname .= "::_copy($srcFilePath, $dstFilePath)" ; else $ fname = "_copy($srcFilePath, $dstFilePath)" ; // fetch source file metadata $ metaData = $ this -> _fetchMetadata ( $ srcFilePath , $ fname ) ; // if source file does not exist then do nothing. // @todo Throw an exception here. //       Info: $srcFilePath if ( ! $ metaData ) { return false ; } return $ this -> _protect ( array ( $ this , "_copyInner" ) , $ fname , $ srcFilePath , $ dstFilePath , $ fname , $ metaData ) ; }
Creates a copy of a file in DB+DFS

@see eZDFSFileHandler::fileCopy
@see _copyInner

@param string $srcFilePath Source file
@param string $dstFilePath Destination file
@param bool|string $fname Optional caller name for debugging

@return bool
Creates a copy of a file in DB + DFS