src/Services/BaseFileService.php
protected function handlePATCH()
    {
        $content = $this->getPayloadData();
        if (empty($this->folderPath)) {
            // update container properties
            $this->driver->updateContainerProperties($this->container, $content);
        } else {
            if (empty($this->filePath)) {
                // update folder properties
                $this->driver->updateFolderProperties($this->container, $this->folderPath, $content);
            } else {
                // update file properties?
                $this->driver->updateFileProperties($this->container, $this->filePath, $content);
            }
        }

        return ResponseFactory::create(['success' => true]);
    }
protected function handlePATCH()
    {
        $content = $this->getPayloadData();
        if (empty($this->folderPath)) {
            // update container properties
            $this->driver->updateContainerProperties($this->container, $content);
        } else {
            if (empty($this->filePath)) {
                // update folder properties
                $this->driver->updateFolderProperties($this->container, $this->folderPath, $content);
            } else {
                // update file properties?
                $this->driver->updateFileProperties($this->container, $this->filePath, $content);
            }
        }

        return ResponseFactory::create(['success' => true]);
    }
protected function handlePATCH ( ) { $ content = $ this -> getPayloadData ( ) ; if ( empty ( $ this -> folderPath ) ) { // update container properties $ this -> driver -> updateContainerProperties ( $ this -> container , $ content ) ; } else { if ( empty ( $ this -> filePath ) ) { // update folder properties $ this -> driver -> updateFolderProperties ( $ this -> container , $ this -> folderPath , $ content ) ; } else { // update file properties? $ this -> driver -> updateFileProperties ( $ this -> container , $ this -> filePath , $ content ) ; } } return ResponseFactory :: create ( [ 'success' => true ] ) ; }
Handles PATCH actions.

@return \DreamFactory\Core\Utility\ServiceResponse
Handles PATCH actions .