You are here

function CMISService::getObjectByPath in CMIS API 6.4

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 667

Class

CMISService

Code

function getObjectByPath($path, $options = array()) {
  $varmap = $options;
  $varmap["path"] = $path;
  $obj_url = $this
    ->processTemplate($this->workspace->uritemplates['objectbypath'], $varmap);
  $ret = $this
    ->doGet($obj_url);
  $obj = $this
    ->extractObject($ret->body);
  $this
    ->cacheEntryInfo($obj);
  return $obj;
}