41 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
45 return $sua->login(
$client,$username,$password);
50 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
54 return $sua->loginCAS(
$client, $PT, $user);
59 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
63 return $sua->loginLDAP(
$client, $username, $password);
69 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
73 return $sua->logout($sid);
77 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
81 return $sua->lookupUser($sid,$user_name);
84 public static function getUser($sid,$user_id)
86 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
90 return $sua->getUser($sid,$user_id);
95 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
99 return $sua->updateUser($sid,$user_data);
104 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
108 return $sua->updatePassword($sid,$user_id,$new_password);
111 public static function addUser($sid,$user_data,$global_role_id)
113 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
117 return $sua->addUser($sid,$user_data,$global_role_id);
121 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
125 return $sua->deleteUser($sid,$user_id);
132 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
136 return $sca->addCourse($sid,
$target_id,$crs_xml);
140 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
144 return $sca->deleteCourse($sid,$course_id);
148 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
152 return $sca->assignCourseMember($sid,$course_id,$user_id,
$type);
156 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
160 return $sca->isAssignedToCourse($sid,$course_id,$user_id);
165 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
169 return $sca->excludeCourseMember($sid,$course_id,$user_id);
173 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
177 return $sca->getCourseXML($sid,$course_id);
181 include_once
'./webservice/soap/classes/class.ilSoapCourseAdministration.php';
185 return $sca->updateCourse($sid,$course_id,$xml);
190 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
194 return $soa->getObjIdByImportId($sid,$import_id);
199 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
203 return $soa->getRefIdsByImportId($sid,$import_id);
207 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
211 return $soa->getRefIdsByObjId($sid,$object_id);
217 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
221 return $soa->getObjectByReference($sid,$a_ref_id,$user_id);
226 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
230 return $soa->getObjectsByTitle($sid,$a_title,$user_id);
233 public static function addObject($sid,$a_target_id,$a_xml)
235 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
239 return $soa->addObject($sid,$a_target_id,$a_xml);
244 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
248 return $soa->addReference($sid,$a_source_id,$a_target_id);
253 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
257 return $soa->deleteObject($sid,$reference_id);
262 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
266 return $soa->removeFromSystemByImportId($sid,$import_id);
271 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
275 return $soa->updateObjects($sid,$obj_xml);
277 public static function searchObjects($sid,$types,$key,$combination,$user_id)
279 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
283 return $soa->searchObjects($sid,$types,$key,$combination,$user_id);
288 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
292 return $soa->getTreeChilds($sid,
$ref_id,$types,$user_id);
297 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
301 return $soa->getXMLTree($sid,
$ref_id,$types,$user_id);
309 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
313 return $soa->getOperations($sid);
319 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
323 return $soa->addUserRoleEntry($sid,$user_id,$role_id);
328 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
332 return $soa->deleteUserRoleEntry($sid,$user_id,$role_id);
337 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
341 return $soa->revokePermissions($sid,
$ref_id,$role_id);
346 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
350 return $soa->grantPermissions($sid,
$ref_id,$role_id,$permissions);
355 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
359 return $soa->getLocalRoles($sid,
$ref_id);
364 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
368 return $soa->getUserRoles($sid,$user_id);
373 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
377 return $soa->deleteRole($sid,$role_id);
382 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
386 return $soa->addRole($sid,
$target_id,$obj_xml);
390 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
394 return $soa->addRoleFromTemplate($sid,
$target_id,$obj_xml,$template_id);
399 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
403 return $soa->getObjectTreeOperations($sid,
$ref_id,$user_id);
408 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
412 return $soa->addGroup($sid,
$target_id,$group_xml);
417 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
421 return $soa->addGroup($sid,
$title);
425 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
429 return $soa->getGroup($sid,
$ref_id);
434 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
438 return $sca->assignGroupMember($sid,$group_id,$user_id,
$type);
442 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
446 return $sca->isAssignedToGroup($sid,$group_id,$user_id);
451 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
455 return $sca->excludeGroupMember($sid,$group_id,$user_id,
$type);
459 public static function sendMail($sid,$to,$cc,$bcc,$sender,$subject,$message,$attach)
461 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
464 $sou->disableSOAPCheck();
465 $sou->ignoreUserAbort();
467 return $sou->sendMail($sid,$to,$cc,$bcc,$sender,$subject,$message,$attach);
470 public static function ilClone($sid,$copy_identifier)
472 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
475 $sou->disableSOAPCheck();
476 $sou->ignoreUserAbort();
478 return $sou->ilClone($sid,$copy_identifier);
482 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
485 $sou->disableSOAPCheck();
486 $sou->ignoreUserAbort();
488 return $sou->ilCloneDependencies($sid,$copy_identifier);
493 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
496 $sou->disableSoapCheck();
497 $sou->ignoreUserAbort();
499 return $sou->handleECSTasks($sid);
504 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
508 return $sass->saveQuestionResult($sid,$user_id,$test_id,$question_id,
$pass,$solution);
513 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
517 return $sass->saveQuestion($sid,$active_id,$question_id,
$pass,$solution);
522 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
526 return $sass->saveQuestionSolution($sid,$active_id,$question_id,
$pass,$solution);
531 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
535 return $sass->getQuestionSolution($sid,$active_id,$question_id,
$pass);
540 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
544 return $sass->getTestUserData($sid,$active_id);
549 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
553 return $sass->getNrOfQuestionsInPass($sid, $active_id,
$pass);
558 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
562 return $sass->getPositionOfQuestion($sid, $active_id, $question_id,
$pass);
567 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
571 return $sass->getPreviousReachedPoints($sid, $active_id, $question_id,
$pass);
576 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
579 $sou->disableSOAPCheck();
581 return $sou->saveTempFileAsMediaObject($sid,
$name, $tmp_name);
586 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
589 $sou->disableSOAPCheck();
591 return $sou->getMobsOfObject($sid, $a_type, $a_id);
595 include_once
'./webservice/soap/classes/class.ilSoapStructureObjectAdministration.php';
599 return $sca->getStructureObjects ($sid,
$ref_id);
602 public static function getRoles($sid, $role_type, $id)
604 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
608 return $soa->getRoles($sid, $role_type, $id);
611 public static function importUsers ($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail)
613 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
617 return $sua->importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail);
622 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
626 return $sua->getUsersForContainer($sid,
$ref_id, $attach_roles, $active);
631 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
635 return $sua->getUserForRole($sid, $role_id, $attach_roles, $active);
639 public static function searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active) {
640 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
644 return $sua->searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active);
650 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
654 return $sua->hasNewMail($sid);
658 include_once
'./webservice/soap/classes/class.ilSoapAdministration.php';
660 return $soa->getNIC($sid);
664 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
666 return $sta->getExerciseXML($sid,
$ref_id, $attachFileContentsMode);
672 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
674 return $sta->updateExercise($sid,
$ref_id, $xml);
679 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
681 return $sta->addExercise($sid,
$ref_id, $xml);
687 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
689 return $sta->getFileXML($sid,
$ref_id, $attachFileContentsMode);
696 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
698 return $sta->updateFile($sid,
$ref_id, $xml);
704 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
706 return $sta->addFile($sid,
$ref_id, $xml);
712 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
716 return $soa->getObjIdsByRefIds($sid, $ref_ids);
719 public static function getUserXML($sid,$user_ids, $attach_roles)
721 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
725 return $sua->getUserXML($sid, $user_ids, $attach_roles);
730 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
734 return $sua->updateGroup($sid,
$ref_id, $grp_xml);
738 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
742 return $sua->getIMSManifestXML($sid,
$ref_id);
746 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
758 public static function copyObject($sid, $copy_settings_xml) {
759 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
763 return $soa->copyObject($sid, $copy_settings_xml);
775 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
794 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
798 return $soa->getTestResults($sid,
$ref_id,$sum_only);
813 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
817 return $soa->getTestIdByObjId ($sid, $test_obj_id);
832 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
836 return $soa->getTestRunDates ($sid, $obj_id);
852 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
856 return $soa->packageTestRun($sid, $obj_id, $date);
871 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
875 return $soa->getTestRunPackageDates ($sid, $obj_id);
884 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
888 return $soa->fetchTestRunPackage ($sid, $obj_id, $date);
895 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
899 return $soa->deleteTestRunPackage($sid, $obj_id, $date);
907 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
911 return $soa->obliterateTestRun($sid, $obj_id, $date);
922 include_once
'webservice/soap/classes/class.ilSoapCourseAdministration.php';
924 return $soc->getCoursesForUser($sid, $parameters);
935 include_once
'webservice/soap/classes/class.ilSoapGroupAdministration.php';
937 return $soc->getGroupsForUser($sid, $parameters);
941 include_once
'webservice/soap/classes/class.ilSoapObjectAdministration.php';
943 return $soa->getPathForRefId($sid,
$ref_id);
946 public static function searchRoles ($sid, $key, $combination, $role_type)
948 include_once
'webservice/soap/classes/class.ilSoapRBACAdministration.php';
950 return $roa->searchRoles($sid, $key, $combination, $role_type);
955 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
957 return $roa->getInstallationInfoXML();
961 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
963 return $roa->getClientInfoXML($clientid);
972 if($_SERVER[
"HTTPS"] ==
"on")
974 $protocol =
'https://';
978 $protocol =
'http://';
980 $host = $_SERVER[
'HTTP_HOST'];
982 $path = dirname($_SERVER[
'REQUEST_URI']);
985 include_once
'Services/Utilities/classes/class.ilUtil.php';
988 $dirs = explode(
'/',$module);
992 $uri = dirname($uri);
999 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
1003 return $sua->getSCORMCompletionStatus($sid,
$usr_id, $a_ref_id);
1008 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
1012 return $sua->getUserIdBySid($sid);
1017 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
1020 return $swa->readWebLink($sid,
$ref_id);
1025 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
1028 return $swa->createWebLink($sid,
$ref_id,$xml);
1033 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
1036 return $swa->updateWebLink($sid,
$ref_id,$xml);
1054 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
1057 $sou->disableSOAPCheck();
1058 $sou->ignoreUserAbort();
1060 return $sou->deleteExpiredDualOptInUserObjects($sid,
$usr_id);