Exemplo n.º 1
0
 /**
  * Fetches information about the selected repository
  *
  * @param string $repositoryId
  */
 public function getRepositoryInfo($repositoryId)
 {
     $repositoryInfo = $this->RepositoryService->getRepositoryInfo($repositoryId);
     if (PEAR::isError($repositoryInfo)) {
         return array("status_code" => 1, "message" => "Failed getting repository information");
     }
     // TODO output this manually, the function works but only for some objects so rather avoid it completely?
     // NOTE the problems appear to be due to recursive objects
     return array("status_code" => 0, "results" => CMISUtil::objectToArray($repositoryInfo));
 }