You are here

function CMISService::getTypeDefinition in CMIS API 6.4

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

File

cmis_common/lib/cmis_repository_wrapper.php, line 444

Class

CMISService

Code

function getTypeDefinition($typeId, $options = array()) {

  // Nice to have
  $varmap = $options;
  $varmap["id"] = $typeId;
  $myURL = $this
    ->processTemplate($this->workspace->uritemplates['typebyid'], $varmap);
  $ret = $this
    ->doGet($myURL);
  $obj = $this
    ->extractTypeDef($ret->body);
  $this
    ->cacheTypeInfo($obj);
  return $obj;
}