kernel/private/classes/webdav/ezwebdavcontentbackend.php
protected function setResourceContents( $path, $content )
    {
        // Attempt to get file/resource sent from client/browser.
        $tempFile = $this->storeUploadedFile( $path, $content );
        eZWebDAVContentBackend::appendLogEntry( 'SetResourceContents:' . $path . ';' . $tempFile );

        // If there was an actual file:
        if ( !$tempFile )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        // Attempt to do something with it (copy/whatever).
        $fullPath = $path;
        $target = $this->splitFirstPathElement( $path, $currentSite );

        if ( !$currentSite )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        $result = $this->putVirtualFolderData( $currentSite, $target, $tempFile );

        unlink( $tempFile );
        eZDir::cleanupEmptyDirectories( dirname( $tempFile ) );

        return $result;
    }
protected function setResourceContents( $path, $content )
    {
        // Attempt to get file/resource sent from client/browser.
        $tempFile = $this->storeUploadedFile( $path, $content );
        eZWebDAVContentBackend::appendLogEntry( 'SetResourceContents:' . $path . ';' . $tempFile );

        // If there was an actual file:
        if ( !$tempFile )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        // Attempt to do something with it (copy/whatever).
        $fullPath = $path;
        $target = $this->splitFirstPathElement( $path, $currentSite );

        if ( !$currentSite )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        $result = $this->putVirtualFolderData( $currentSite, $target, $tempFile );

        unlink( $tempFile );
        eZDir::cleanupEmptyDirectories( dirname( $tempFile ) );

        return $result;
    }
protected function setResourceContents ( $ path , $ content ) { // Attempt to get file/resource sent from client/browser. $ tempFile = $ this -> storeUploadedFile ( $ path , $ content ) ; eZWebDAVContentBackend :: appendLogEntry ( 'SetResourceContents:' . $ path . ';' . $ tempFile ) ; // If there was an actual file: if ( ! $ tempFile ) { return false ; // @as self::FAILED_FORBIDDEN; } // Attempt to do something with it (copy/whatever). $ fullPath = $ path ; $ target = $ this -> splitFirstPathElement ( $ path , $ currentSite ) ; if ( ! $ currentSite ) { return false ; // @as self::FAILED_FORBIDDEN; } $ result = $ this -> putVirtualFolderData ( $ currentSite , $ target , $ tempFile ) ; unlink ( $ tempFile ) ; eZDir :: cleanupEmptyDirectories ( dirname ( $ tempFile ) ) ; return $ result ; }
Sets the contents of a resource.

This method replaces the content of the resource identified by $path
with the submitted $content.

@param string $path
@param string $content
Sets the contents of a resource .