You are here

function CMISService::getObjectParents in CMIS API 7

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 581

Class

CMISService

Code

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

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