src/Client.php
public function moveDriveItem($driveItemId, $destinationId = null)
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()'
                . ' instead.',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive = $this->getMyDrive();
        $item  = $this->getDriveItemById($drive->id, $driveItemId);

        $destination = $destinationId !== null ?
            $this->getDriveItemById($drive->id, $destinationId)
            : $drive->getRoot();

        $item->move($destination);
    }
public function moveDriveItem($driveItemId, $destinationId = null)
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()'
                . ' instead.',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive = $this->getMyDrive();
        $item  = $this->getDriveItemById($drive->id, $driveItemId);

        $destination = $destinationId !== null ?
            $this->getDriveItemById($drive->id, $destinationId)
            : $drive->getRoot();

        $item->move($destination);
    }
public function moveDriveItem ( $ driveItemId , $ destinationId = null ) { $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()' . ' instead.' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ this -> getMyDrive ( ) ; $ item = $ this -> getDriveItemById ( $ drive -> id , $ driveItemId ) ; $ destination = $ destinationId !== null ? $ this -> getDriveItemById ( $ drive -> id , $ destinationId ) : $ drive -> getRoot ( ) ; $ item -> move ( $ destination ) ; }
Moves a drive item into another folder.

@param string $driveItemId
The unique ID of the drive item to move.
@param null|string $destinationId
The unique ID of the folder into which to move the drive item, or
null to move it to the OneDrive root folder. Default: null.

@deprecated Use Krizalys\Onedrive\Proxy\DriveItemProxy::move() instead.
Moves a drive item into another folder .