You are here

function CMISService::moveObject in CMIS API 6.4

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 799

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);
}