public function GetUploadLink($importRedirectUrl) { write_log('UploadService.GetUploadLink() being called...'); $token = $this->GetUploadToken(); $serviceUrl = "http://" . $token->getServer() . "/EngineWebServices"; $request = new ServiceRequest($this->_configuration); $mParams = array('token' => $token->getTokenId()); $mParams["redirecturl"] = $importRedirectUrl; $request->setMethodParams($mParams); return $request->ConstructUrl("rustici.upload.uploadFile", $serviceUrl); }
public function GetReportUrl($auth, $reportUrl) { $request = new ServiceRequest($this->_configuration); $params = array('appid' => $this->_configuration->getAppId()); $params['auth'] = $auth; $params['reporturl'] = $reportUrl; $request->setMethodParams($params); $response = $request->ConstructUrl("rustici.reporting.launchReport"); //error_log($response); return $response; }
public function GetReportUrl($auth, $reportUrl) { //If url is relative, put on server name if (substr($reportUrl, 0, 10) == '/Reportage') { $rServiceUrl = str_replace('EngineWebServices', '', $this->_configuration->getScormEngineServiceUrl()); $reportUrl = $rServiceUrl . $reportUrl; } $request = new ServiceRequest($this->_configuration); $params = array('appid' => $this->_configuration->getAppId()); $params['auth'] = $auth; $params['reporturl'] = $reportUrl; $request->setMethodParams($params); $response = $request->ConstructUrl("rustici.reporting.launchReport"); //error_log($response); return $response; }
public function GetLaunchUrl($registrationId, $redirectOnExitUrl = null, $cssUrl = null, $debugLogPointerUrl = null, $courseTags = null, $learnerTags = null) { $request = new ServiceRequest($this->_configuration); $params = array('regid' => $registrationId); if (isset($redirectOnExitUrl)) { $params['redirecturl'] = $redirectOnExitUrl; } if (isset($cssUrl)) { $params['cssurl'] = $cssUrl; } if (isset($debugLogPointerUrl)) { $params['saveDebugLogPointerUrl'] = $debugLogPointerUrl; } if (isset($courseTags)) { $params['courseTags'] = $courseTags; } if (isset($learnerTags)) { $params['learnerTags'] = $learnerTags; } $request->setMethodParams($params); return $request->ConstructUrl("rustici.registration.launch"); }
public function GetDispatchDownloadUrl($destinationId = null, $courseId = null, $dispatchId = null, $tagList = null, $cssUrl = null) { $request = new ServiceRequest($this->_configuration); $params = array(); if ($destinationId != null) { $params['destinationid'] = $destinationId; } if ($courseId != null) { $params['courseid'] = $courseId; } if ($dispatchId != null) { $params['dispatchid'] = $dispatchId; } if ($tagList != null && count($tagList) > 0) { $params['tags'] = implode(',', $tagList); } if ($cssUrl != null) { $params['cssurl'] = $cssUrl; } $request->setMethodParams($params); return $request->ConstructUrl("rustici.dispatch.downloadDispatches"); }
public function GetUpdateAssetsUrl($courseId, $redirectUrl) { $request = new ServiceRequest($this->_configuration); $params = array('courseid' => $courseId, 'redirecturl' => $redirectUrl); $request->setMethodParams($params); return $request->ConstructUrl('rustici.course.updateAssets'); }
public function GetPreviewUrl($courseId, $redirectOnExitUrl) { $request = new ServiceRequest($this->_configuration); $params = array('courseid' => $courseId); if (isset($redirectOnExitUrl)) { $params['redirecturl'] = $redirectOnExitUrl; } $request->SetMethodParams($params); return $request->ConstructUrl("rustici.course.preview"); }