public function moveObject(
        $repositoryId,
        & $objectId,
        $targetFolderId,
        $sourceFolderId,
        ExtensionDataInterface $extension = null
    ) {
        $this->flushCached();

        $url = $this->getObjectUrl($repositoryId, $objectId);
        $url->getQuery()->modify(
            [
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_MOVE,
                Constants::PARAM_TARGET_FOLDER_ID => $targetFolderId,
                Constants::PARAM_SOURCE_FOLDER_ID => $sourceFolderId,
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
            ]
        );

        $newObject = $this->getJsonConverter()->convertObject($this->postJson($url));

        // $objectId was passed by reference. The value is changed here to new object id
        $objectId = ($newObject === null) ? null : $newObject->getId();

        return $newObject;
    }
public function moveObject(
        $repositoryId,
        & $objectId,
        $targetFolderId,
        $sourceFolderId,
        ExtensionDataInterface $extension = null
    ) {
        $this->flushCached();

        $url = $this->getObjectUrl($repositoryId, $objectId);
        $url->getQuery()->modify(
            [
                Constants::CONTROL_CMISACTION => Constants::CMISACTION_MOVE,
                Constants::PARAM_TARGET_FOLDER_ID => $targetFolderId,
                Constants::PARAM_SOURCE_FOLDER_ID => $sourceFolderId,
                Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false'
            ]
        );

        $newObject = $this->getJsonConverter()->convertObject($this->postJson($url));

        // $objectId was passed by reference. The value is changed here to new object id
        $objectId = ($newObject === null) ? null : $newObject->getId();

        return $newObject;
    }
public function moveObject ( $ repositoryId , & $ objectId , $ targetFolderId , $ sourceFolderId , ExtensionDataInterface $ extension = null ) { $ this -> flushCached ( ) ; $ url = $ this -> getObjectUrl ( $ repositoryId , $ objectId ) ; $ url -> getQuery ( ) -> modify ( [ Constants :: CONTROL_CMISACTION => Constants :: CMISACTION_MOVE , Constants :: PARAM_TARGET_FOLDER_ID => $ targetFolderId , Constants :: PARAM_SOURCE_FOLDER_ID => $ sourceFolderId , Constants :: PARAM_SUCCINCT => $ this -> getSuccinct ( ) ? 'true' : 'false' ] ) ; $ newObject = $ this -> getJsonConverter ( ) -> convertObject ( $ this -> postJson ( $ url ) ) ; // $objectId was passed by reference. The value is changed here to new object id $ objectId = ( $ newObject === null ) ? null : $ newObject -> getId ( ) ; return $ newObject ; }
Moves the specified file-able object from one folder to another.

@param string $repositoryId the identifier for the repository
@param string $objectId the identifier for the object. The repository might return a different/new object id
@param string $targetFolderId the identifier for the target folder
@param string $sourceFolderId the identifier for the source folder
@param ExtensionDataInterface|null $extension
@return ObjectDataInterface|null Returns object of type ObjectDataInterface or <code>null</code>
if the repository response was empty
Moves the specified file - able object from one folder to another .