コード例 #1
0
 function getRestService()
 {
     $restService = new openmeetings_rest_service();
     $err = $restService->getError();
     if ($err) {
         echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
         echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
         exit;
     }
     return $restService;
 }
コード例 #2
0
 /**
  * Get list of available recordings made by user
  */
 function getRecordingsByExternalUser($id)
 {
     $restService = new openmeetings_rest_service();
     $url = $this->getRestUrl("RoomService") . "getFlvRecordingByExternalUserId?SID=" . $this->session_id . "&externalUserId=" . $id;
     $result = $restService->call($url, "return");
     return $this->getList($result);
 }
 function openmeetings_updateRoomWithModerationQuestionsAudioTypeAndHideOptions($openmeetings)
 {
     global $CFG;
     if ($CFG->openmeetings_version_2_x == false) {
         $result = $this->openmeetings_updateRoomWithModeration($openmeetings);
         return $result;
     }
     $restService = new openmeetings_rest_service();
     $call = $this->getUrl() . "/services/RoomService/updateRoomWithModerationQuestionsAudioTypeAndHideOptions?" . "SID=" . $this->session_id . "&room_id=" . $openmeetings->rooms_id . "&name=" . urlencode($openmeetings->name) . "&roomtypes_id=" . urlencode($openmeetings->roomtype->roomtypes_id) . "&comment=" . urlencode($openmeetings->comment) . "&numberOfPartizipants=" . $openmeetings->numberOfPartizipants . '&ispublic=' . $this->var_to_str($openmeetings->ispublic) . '&appointment=' . $this->var_to_str($openmeetings->appointment) . '&isDemoRoom=' . $this->var_to_str($openmeetings->isDemoRoom) . '&demoTime=' . $openmeetings->demoTime . "&isModeratedRoom=" . $this->var_to_str($openmeetings->isModeratedRoom) . "&allowUserQuestions=" . $this->var_to_str($openmeetings->allowUserQuestions) . "&isAudioOnly=" . $this->var_to_str($openmeetings->isAudioOnly) . "&hideTopBar=" . $this->var_to_str($openmeetings->hideTopBar) . "&hideChat=" . $this->var_to_str($openmeetings->hideChat) . "&hideActivitiesAndActions=" . $this->var_to_str($openmeetings->hideActivitiesAndActions) . "&hideFilesExplorer=" . $this->var_to_str($openmeetings->hideFilesExplorer) . "&hideActionsMenu=" . $this->var_to_str($openmeetings->hideActionsMenu) . "&hideScreenSharing=" . $this->var_to_str($openmeetings->hideScreenSharing) . "&hideWhiteboard=" . $this->var_to_str($openmeetings->hideWhiteboard);
     // var_dump($call);
     if ($this->b_logWrite == true) {
         $GLOBALS['ilLog']->write(__METHOD__ . ': ' . $call);
     }
     $result = $restService->call($call);
     if ($restService->fault()) {
         echo '<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>';
         print_r($result);
         echo '</pre>';
     } else {
         $err = $restService->getError();
         if ($err) {
             echo '<h2>Error</h2><pre>' . $err . '</pre>';
         } else {
             //echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
             return $result;
         }
     }
     return -1;
 }