You are here

function CMISService::moveObject in CMIS API 7

Same name and namespace in other branches
  1. 6.4 cmis_common/lib/cmis_repository_wrapper.php \CMISService::moveObject()
  2. 6.3 cmis_common/lib/cmis_repository_wrapper.php \CMISService::moveObject()

File

cmis_common/lib/cmis_repository_wrapper.php, line 924

Class

CMISService

Code

function moveObject($objectId, $targetFolderId, $sourceFolderId, $options = array()) {

  //yes
  $options['sourceFolderId'] = $sourceFolderId;
  return $this
    ->postObject($targetFolderId, $this
    ->getTitle($objectId), $this
    ->getObjectType($objectId), array(
    "cmis:objectId" => $objectId,
  ), null, null, $options);
}