예제 #1
0
 /**
  * Gets the parents for the selected object
  *
  * @param string $repositoryId
  * @param string $folderId
  * @param boolean $includeAllowableActions
  * @param boolean $includeRelationships
  * @param string $filter
  * @return ancestry[]
  */
 function getObjectParents($repositoryId, $objectId, $includeAllowableActions, $includeRelationships, $filter = '')
 {
     $ancestryResult = $this->NavigationService->getObjectParents($repositoryId, $objectId, $includeAllowableActions, $includeRelationships);
     if (PEAR::isError($ancestryResult)) {
         return array("status_code" => 1, "message" => "Failed getting ancestry for object");
     }
     $ancestry = CMISUtil::decodeObjectHierarchy($ancestryResult, 'child');
     return array("status_code" => 0, "results" => $ancestry);
 }