kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php
public function storeContents( $contents, $scope = false, $datatype = false, $storeLocally = false )
    {
        if ( $scope === false )
            $scope = 'UNKNOWN_SCOPE';

        if ( $datatype === false )
            $datatype = 'misc';

        $filePath = $this->filePath;
        eZDebugSetting::writeDebug( 'kernel-clustering', "dfs::storeContents( '$filePath' )" );

        // the file is stored with the current time as mtime
        $result = self::$dbbackend->_storeContents( $filePath, $contents, $scope, $datatype );
        if ( $result && $storeLocally )
        {
            eZFile::create( basename( $filePath ), dirname( $filePath ), $contents, true );
        }

        return $result;
    }
public function storeContents( $contents, $scope = false, $datatype = false, $storeLocally = false )
    {
        if ( $scope === false )
            $scope = 'UNKNOWN_SCOPE';

        if ( $datatype === false )
            $datatype = 'misc';

        $filePath = $this->filePath;
        eZDebugSetting::writeDebug( 'kernel-clustering', "dfs::storeContents( '$filePath' )" );

        // the file is stored with the current time as mtime
        $result = self::$dbbackend->_storeContents( $filePath, $contents, $scope, $datatype );
        if ( $result && $storeLocally )
        {
            eZFile::create( basename( $filePath ), dirname( $filePath ), $contents, true );
        }

        return $result;
    }
public function storeContents ( $ contents , $ scope = false , $ datatype = false , $ storeLocally = false ) { if ( $ scope === false ) $ scope = 'UNKNOWN_SCOPE' ; if ( $ datatype === false ) $ datatype = 'misc' ; $ filePath = $ this -> filePath ; eZDebugSetting :: writeDebug ( 'kernel-clustering' , "dfs::storeContents( '$filePath' )" ) ; // the file is stored with the current time as mtime $ result = self :: $ dbbackend -> _storeContents ( $ filePath , $ contents , $ scope , $ datatype ) ; if ( $ result && $ storeLocally ) { eZFile :: create ( basename ( $ filePath ) , dirname ( $ filePath ) , $ contents , true ) ; } return $ result ; }
Store file contents using binary data

@param string $contents Binary file content
@param string $scope    "file category". May be used by cache management
@param string $datatype Datatype for the file. Also used to clean cache up
@param bool $storeLocally If true the file will also be stored on the
local file system.
Store file contents using binary data