You are here

function CMISService::getFolderTree in CMIS API 7

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 544

Class

CMISService

Code

function getFolderTree($folderId, $depth, $options = array()) {
  $hash_values = $options;
  $hash_values['depth'] = $depth;
  $myURL = $this
    ->getLink($folderId, "http://docs.oasis-open.org/ns/cmis/link/200908/foldertree");
  $myURL = CMISRepositoryWrapper::getOpUrl($myURL, $hash_values);
  $ret = $this
    ->doGet($myURL);
  $objs = $this
    ->extractObjectFeed($ret->body);
  $this
    ->cacheFeedInfo($objs);
  return $objs;
}