You are here

function CMISService::getFolderParent in CMIS API 7

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 570

Class

CMISService

Code

function getFolderParent($objectId, $options = array()) {

  //yes
  $myURL = $this
    ->getLink($objectId, "up");
  if (count($options) > 0) {
    $myURL .= '&' . urldecode(http_build_query($options));
  }
  $ret = $this
    ->doGet($myURL);
  $obj = $this
    ->extractObjectEntry($ret->body);
  $this
    ->cacheEntryInfo($obj);
  return $obj;
}