3 require_once(
'./Services/Init/classes/class.ilInitialisation.php');
4 require_once(
'./Services/WebServices/SOAP/classes/class.ilSoapHook.php');
46 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
55 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
59 return $sua->loginCAS(
$client, $PT, $user);
64 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
76 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
80 return $sua->loginStudipUser($sid, $user_id);
86 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
90 return $sua->logout($sid);
94 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
98 return $sua->lookupUser($sid, $user_name);
101 public static function getUser($sid, $user_id)
103 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
107 return $sua->getUser($sid, $user_id);
116 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
120 return $sua->deleteUser($sid, $user_id);
127 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
131 return $sca->addCourse($sid,
$target_id, $crs_xml);
135 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
139 return $sca->deleteCourse($sid, $course_id);
143 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
147 return $sca->assignCourseMember($sid, $course_id, $user_id,
$type);
151 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
155 return $sca->isAssignedToCourse($sid, $course_id, $user_id);
160 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
164 return $sca->excludeCourseMember($sid, $course_id, $user_id);
168 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
172 return $sca->getCourseXML($sid, $course_id);
176 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
180 return $sca->updateCourse($sid, $course_id,
$xml);
185 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
189 return $soa->getObjIdByImportId($sid, $import_id);
194 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
198 return $soa->getRefIdsByImportId($sid, $import_id);
202 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
206 return $soa->getRefIdsByObjId($sid, $object_id);
212 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
216 return $soa->getObjectByReference($sid, $a_ref_id, $user_id);
221 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
225 return $soa->getObjectsByTitle($sid, $a_title, $user_id);
228 public static function addObject($sid, $a_target_id, $a_xml)
230 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
234 return $soa->addObject($sid, $a_target_id, $a_xml);
239 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
243 return $soa->addReference($sid, $a_source_id, $a_target_id);
248 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
252 return $soa->deleteObject($sid, $reference_id);
257 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
261 return $soa->removeFromSystemByImportId($sid, $import_id);
266 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
270 return $soa->updateObjects($sid, $obj_xml);
274 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
278 return $soa->searchObjects($sid, $types,
$key, $combination, $user_id);
283 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
287 return $soa->getTreeChilds($sid, $ref_id, $types, $user_id);
290 public static function getXMLTree($sid, $ref_id, $types, $user_id)
292 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
296 return $soa->getXMLTree($sid, $ref_id, $types, $user_id);
304 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
308 return $soa->getOperations($sid);
314 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
318 return $soa->addUserRoleEntry($sid, $user_id, $role_id);
323 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
327 return $soa->deleteUserRoleEntry($sid, $user_id, $role_id);
332 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
336 return $soa->revokePermissions($sid, $ref_id, $role_id);
341 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
345 return $soa->grantPermissions($sid, $ref_id, $role_id, $permissions);
350 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
354 return $soa->getLocalRoles($sid, $ref_id);
359 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
363 return $soa->getUserRoles($sid, $user_id);
368 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
372 return $soa->deleteRole($sid, $role_id);
377 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
381 return $soa->addRole($sid,
$target_id, $obj_xml);
385 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
394 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
398 return $soa->getObjectTreeOperations($sid, $ref_id, $user_id);
403 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
407 return $soa->addGroup($sid,
$target_id, $group_xml);
412 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
416 return $soa->groupExists($sid,
$title);
420 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
424 return $soa->getGroup($sid, $ref_id);
429 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
433 return $sca->assignGroupMember($sid, $group_id, $user_id,
$type);
437 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
441 return $sca->isAssignedToGroup($sid, $group_id, $user_id);
446 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
450 return $sca->excludeGroupMember($sid, $group_id, $user_id,
$type);
454 public static function sendMail($sid, $to, $cc, $bcc, $sender, $subject,
$message, $attach)
456 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
459 $sou->disableSOAPCheck();
460 $sou->ignoreUserAbort();
462 return $sou->sendMail($sid, $to, $cc, $bcc, $sender, $subject,
$message, $attach);
467 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
470 return $sou->distributeMails($sid, $mail_xml);
473 public static function ilClone($sid, $copy_identifier)
475 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
478 $sou->disableSOAPCheck();
479 $sou->ignoreUserAbort();
481 return $sou->ilClone($sid, $copy_identifier);
485 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
488 $sou->disableSOAPCheck();
489 $sou->ignoreUserAbort();
491 return $sou->ilCloneDependencies($sid, $copy_identifier);
496 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
499 $sou->disableSoapCheck();
500 $sou->ignoreUserAbort();
502 return $sou->handleECSTasks($sid, $a_server_id);
507 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
511 return $sass->saveQuestionResult($sid, $user_id, $test_id, $question_id,
$pass, $solution);
516 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
520 return $sass->saveQuestion($sid, $active_id, $question_id,
$pass, $solution);
525 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
529 return $sass->saveQuestionSolution($sid, $active_id, $question_id,
$pass, $solution);
534 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
538 return $sass->getQuestionSolution($sid, $active_id, $question_id,
$pass);
543 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
547 return $sass->getTestUserData($sid, $active_id);
552 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
556 return $sass->getNrOfQuestionsInPass($sid, $active_id,
$pass);
561 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
565 return $sass->getPositionOfQuestion($sid, $active_id, $question_id,
$pass);
570 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
574 return $sass->getPreviousReachedPoints($sid, $active_id, $question_id,
$pass);
579 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
582 $sou->disableSOAPCheck();
584 return $sou->saveTempFileAsMediaObject($sid,
$name, $tmp_name);
589 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
592 $sou->disableSOAPCheck();
594 return $sou->getMobsOfObject($sid,
$a_type, $a_id);
599 include_once
'./webservice/soap/classes/class.ilSoapStructureObjectAdministration.php';
603 return $sca->getStructureObjects($sid, $ref_id);
608 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
612 return $soa->getRoles($sid, $role_type,
$id);
615 public static function importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail)
617 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
621 return $sua->importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail);
626 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
630 return $sua->getUsersForContainer($sid, $ref_id, $attach_roles, $active);
635 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
639 return $sua->getUserForRole($sid, $role_id, $attach_roles, $active);
643 public static function searchUser($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active)
645 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
649 return $sua->searchUser($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active);
654 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
658 return $sua->hasNewMail($sid);
663 include_once
'./webservice/soap/classes/class.ilSoapAdministration.php';
665 return $soa->getNIC($sid);
670 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
672 return $sta->getExerciseXML($sid, $ref_id, $attachFileContentsMode);
678 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
680 return $sta->updateExercise($sid, $ref_id,
$xml);
685 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
687 return $sta->addExercise($sid, $ref_id,
$xml);
690 public static function getFileXML($sid, $ref_id, $attachFileContentsMode)
692 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
694 return $sta->getFileXML($sid, $ref_id, $attachFileContentsMode);
700 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
702 return $sta->updateFile($sid, $ref_id,
$xml);
707 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
709 return $sta->addFile($sid, $ref_id,
$xml);
714 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
718 return $soa->getObjIdsByRefIds($sid, $ref_ids);
721 public static function getUserXML($sid, $user_ids, $attach_roles)
723 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
727 return $sua->getUserXML($sid, $user_ids, $attach_roles);
732 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
736 return $sua->updateGroup($sid, $ref_id, $grp_xml);
741 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
745 return $sua->getIMSManifestXML($sid, $ref_id);
750 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
754 return $sua->hasSCORMCertificate($sid, $ref_id, $usr_id);
764 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
768 return $soa->copyObject($sid, $copy_settings_xml);
779 require_once(
"./Services/BackgroundTasks/classes/class.ilSoapBackgroundTasksAdministration.php");
782 return $soa->runAsync($sid);
793 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
797 return $soa->moveObject($sid, $ref_id,
$target_id);
813 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
817 return $soa->getTestResults($sid, $ref_id, $sum_only);
831 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
834 return $soa->removeTestResults($sid, $ref_id, $a_user_ids);
846 include_once
'webservice/soap/classes/class.ilSoapCourseAdministration.php';
848 return $soc->getCoursesForUser($sid, $parameters);
860 include_once
'webservice/soap/classes/class.ilSoapGroupAdministration.php';
862 return $soc->getGroupsForUser($sid, $parameters);
867 include_once
'webservice/soap/classes/class.ilSoapObjectAdministration.php';
869 return $soa->getPathForRefId($sid, $ref_id);
874 include_once
'webservice/soap/classes/class.ilSoapRBACAdministration.php';
876 return $roa->searchRoles($sid,
$key, $combination, $role_type);
882 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
884 return $roa->getInstallationInfoXML();
889 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
891 return $roa->getClientInfoXML($clientid);
911 include_once
'Services/Utilities/classes/class.ilUtil.php';
916 foreach ($dirs as $dir) {
917 $uri = dirname($uri);
924 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
928 return $sua->getSCORMCompletionStatus($sid, $usr_id, $a_ref_id);
933 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
937 return $sua->getUserIdBySid($sid);
942 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
945 return $swa->readWebLink($sid, $ref_id);
950 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
953 return $swa->createWebLink($sid, $ref_id,
$xml);
958 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
961 return $swa->updateWebLink($sid, $ref_id,
$xml);
979 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
982 $sou->disableSOAPCheck();
983 $sou->ignoreUserAbort();
985 return $sou->deleteExpiredDualOptInUserObjects($sid, $usr_id);
1023 public static function deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter)
1025 include_once
'./webservice/soap/classes/class.ilSoapLearningProgressAdministration.php';
1027 return $sla->deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter);
1032 include_once
'./webservice/soap/classes/class.ilSoapLearningProgressAdministration.php';
1036 return $s->getLearningProgressChanges($sid,
$timestamp, $include_ref_ids, $type_filter);
1050 include_once
'./webservice/soap/classes/class.ilSoapLearningProgressAdministration.php';
1052 return $sla->getProgressInfo($sid, $ref_id, $progress_filter);
1068 include_once
'./webservice/soap/classes/class.ilSoapDataCollectionAdministration.php';
1070 return $dcl->exportDataCollectionContent($sid, $data_collection_id, $table_id,
$format, $filepath);
1083 include_once
'./webservice/soap/classes/class.ilSoapBackgroundTaskAdministration.php';
1085 return $bg->processBackgroundTask($sid, $task_id);
1097 if (!isset(
$_GET[
'client_id'])) {
1098 throw new SoapFault(
'SOAP-ENV:Server',
"Function '{$name}' does not exist");
1106 $soapHook =
new ilSoapHook($DIC[
'ilPluginAdmin']);
1108 if (strpos(
$name,
':') !==
false) {
1111 $method = $soapHook->getMethodByName(
$name);
1114 return $method->execute($arguments);
1116 throw new SoapFault(
'SOAP-ENV:Server', $e->getMessage());
1119 throw new SoapFault(
'SOAP-ENV:Server',
"Function '{$name}' does not exist");
static removeFromSystemByImportId($sid, $import_id)
static isAssignedToGroup($sid, $group_id, $user_id)
static getLocalRoles($sid, $ref_id)
static getObjIdsByRefIds($sid, $ref_ids)
static getOperations($sid)
static deleteUser($sid, $user_id)
static updateExercise($sid, $ref_id, $xml)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static searchRoles($sid, $key, $combination, $role_type)
static loginStudipUser($sid, $user_id)
static getUserRoles($sid, $user_id)
static processBackgroundTask($sid, $task_id)
Process background task.
static getInstallationInfoXML()
static grantPermissions($sid, $ref_id, $role_id, $permissions)
static getPositionOfQuestion($sid, $active_id, $question_id, $pass)
This class handles all DB changes necessary for fraunhofer.
static getUsersForContainer($sid, $ref_id, $attach_roles, $active)
static login($client, $username, $password)
static getUsersForRole($sid, $role_id, $attach_roles, $active)
static removeTestResults($sid, $ref_id, $a_user_ids)
Remove test results of user.
static getClientInfoXML($clientid)
static deleteUserRoleEntry($sid, $user_id, $role_id)
static revokePermissions($sid, $ref_id, $role_id)
static getSCORMCompletionStatus($sid, $usr_id, $a_ref_id)
static ilClone($sid, $copy_identifier)
static getGroup($sid, $ref_id)
static getQuestionSolution($sid, $active_id, $question_id, $pass)
static importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail)
static excludeGroupMember($sid, $group_id, $user_id)
static getCourseXML($sid, $course_id)
if(!array_key_exists('StateId', $_REQUEST)) $id
static deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter)
Delete progress.
static updateObjects($sid, $obj_xml)
static createWebLink($sid, $ref_id, $xml)
static searchUser($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active)
static getRefIdsByImportId($sid, $import_id)
const CONTEXT_SOAP_NO_AUTH
static saveQuestionResult($sid, $user_id, $test_id, $question_id, $pass, $solution)
static assignCourseMember($sid, $course_id, $user_id, $type)
static handleECSTasks($sid, $a_server_id)
static assignGroupMember($sid, $group_id, $user_id, $type)
static readWebLink($sid, $ref_id)
static deleteObject($sid, $reference_id)
static getObjectTreeOperations($sid, $ref_id, $user_id)
static addGroup($sid, $target_id, $group_xml)
static addCourse($sid, $target_id, $crs_xml)
static getUser($sid, $user_id)
static copyObject($sid, $copy_settings_xml)
copy object in repository $sid session id $settings_xml contains copy wizard settings following ilias...
static deleteRole($sid, $role_id)
static loginCAS($client, $PT, $user)
static addReference($sid, $a_source_id, $a_target_id)
static moveObject($sid, $ref_id, $target_id)
move object in repository
static searchObjects($sid, $types, $key, $combination, $user_id)
if($modEnd===false) $module
static buildHTTPPath()
builds http path if no client is available
static deleteExpiredDualOptInUserObjects($sid, $usr_id)
Static method for soap webservice: deleteExpiredDualOptInUserObjects.
static getIMSManifestXML($sid, $ref_id)
static addUserRoleEntry($sid, $user_id, $role_id)
static getGroupsForUser($sid, $parameters)
return courses for users depending on the status
static initILIAS()
ilias initialisation
static distributeMails($sid, $mail_xml)
static getUserXML($sid, $user_ids, $attach_roles)
static getStructureObjects($sid, $ref_id)
catch(Exception $e) $message
static getRoles($sid, $role_type, $id)
static deleteCourse($sid, $course_id)
static sendMail($sid, $to, $cc, $bcc, $sender, $subject, $message, $attach)
static lookupUser($sid, $user_name)
static getTestResults($sid, $ref_id, $sum_only)
get results of test
static getMobsOfObject($sid, $a_type, $a_id)
Soap methods for adminstrating web links.
static saveQuestionSolution($sid, $active_id, $question_id, $pass, $solution)
static addFile($sid, $ref_id, $xml)
static getFileXML($sid, $ref_id, $attachFileContentsMode)
static hasSCORMCertificate($sid, $ref_id, $usr_id)
static excludeCourseMember($sid, $course_id, $user_id)
static groupExists($sid, $title)
static getExerciseXML($sid, $ref_id, $attachFileContentsMode)
static getRefIdsByObjId($sid, $object_id)
static getLearningProgressChanges($sid, $timestamp, $include_ref_ids, $type_filter)
static getObjectByReference($sid, $a_ref_id, $user_id)
static removeTrailingPathSeparators($path)
static loginLDAP($client, $username, $password)
static addExercise($sid, $ref_id, $xml)
static saveQuestion($sid, $active_id, $question_id, $pass, $solution)
static getUserIdBySid($sid)
static getPreviousReachedPoints($sid, $active_id, $question_id, $pass)
static getProgressInfo($sid, $ref_id, $progress_filter)
Get learning progress info.
foreach($mandatory_scripts as $file) $timestamp
static getXMLTree($sid, $ref_id, $types, $user_id)
static addRoleFromTemplate($sid, $target_id, $obj_xml, $template_id)
static init($a_type)
Init context by type.
static getObjectsByTitle($sid, $a_title, $user_id)
static updateCourse($sid, $course_id, $xml)
static ilCloneDependencies($sid, $copy_identifier)
static getPathForRefId($sid, $ref_id)
__call($name, $arguments)
static getObjIdByImportId($sid, $import_id)
static updateWebLink($sid, $ref_id, $xml)
static getTreeChilds($sid, $ref_id, $types, $user_id)
static getCoursesForUser($sid, $parameters)
return courses for users depending on the status
static exportDataCollectionContent($sid, $data_collection_id, $table_id=null, $format="xls", $filepath=null)
Exports a given table of a datacollection into xls.
static addObject($sid, $a_target_id, $a_xml)
static getTestUserData($sid, $active_id)
static isAssignedToCourse($sid, $course_id, $user_id)
static getNrOfQuestionsInPass($sid, $active_id, $pass)
static updateGroup($sid, $ref_id, $grp_xml)
static saveTempFileAsMediaObject($sid, $name, $tmp_name)
static addRole($sid, $target_id, $obj_xml)
static updateFile($sid, $ref_id, $xml)
Class ilSoapPluginException.
static startBackgroundTaskWorker($sid)