public function initServiceDocument()
 {
     $queryArray = split('/', trim($_SERVER['QUERY_STRING'], '/'));
     $workspace = strtolower(trim($queryArray[0]));
     if ($workspace == 'servicedocument') {
         include 'services/cmis/RepositoryService.inc.php';
         $RepositoryService = new RepositoryService();
         // fetch data for response
         $repositories = $RepositoryService->getRepositories();
         // fetch for default first repo;  NOTE that this will probably have to change at some point, quick and dirty for now
         $this->repositoryInfo = $RepositoryService->getRepositoryInfo($repositories[0]['repositoryId']);
     }
 }
 public function __construct($baseURI = NULL)
 {
     parent::__construct();
     // get repositoryInfo
     // NOTE currently we only support one repository, which will be the first one found in the repositories.xml config
     // TODO multiple repositories as individual workspaces
     include 'services/cmis/RepositoryService.inc.php';
     $RepositoryService = new RepositoryService();
     // TODO add auth requirement here, don't want to even supply service doc without auth
     //        $RepositoryService->startSession();
     // fetch data for response
     $repositories = $RepositoryService->getRepositories();
     // fetch for default first repo;  NOTE that this will probably have to change at some point, quick and dirty for now
     $this->repositoryInfo = $RepositoryService->getRepositoryInfo($repositories[0]['repositoryId']);
 }