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->groupExists($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);
472 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
475 return $sou->distributeMails($sid,$mail_xml);
479 public static function ilClone($sid,$copy_identifier)
481 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
484 $sou->disableSOAPCheck();
485 $sou->ignoreUserAbort();
487 return $sou->ilClone($sid,$copy_identifier);
491 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
494 $sou->disableSOAPCheck();
495 $sou->ignoreUserAbort();
497 return $sou->ilCloneDependencies($sid,$copy_identifier);
502 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
505 $sou->disableSoapCheck();
506 $sou->ignoreUserAbort();
508 return $sou->handleECSTasks($sid,$a_server_id);
513 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
517 return $sass->saveQuestionResult($sid,$user_id,$test_id,$question_id,
$pass,$solution);
522 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
526 return $sass->saveQuestion($sid,$active_id,$question_id,
$pass,$solution);
531 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
535 return $sass->saveQuestionSolution($sid,$active_id,$question_id,
$pass,$solution);
540 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
544 return $sass->getQuestionSolution($sid,$active_id,$question_id,
$pass);
549 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
553 return $sass->getTestUserData($sid,$active_id);
558 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
562 return $sass->getNrOfQuestionsInPass($sid, $active_id,
$pass);
567 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
571 return $sass->getPositionOfQuestion($sid, $active_id, $question_id,
$pass);
576 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
580 return $sass->getPreviousReachedPoints($sid, $active_id, $question_id,
$pass);
585 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
588 $sou->disableSOAPCheck();
590 return $sou->saveTempFileAsMediaObject($sid, $name, $tmp_name);
595 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
598 $sou->disableSOAPCheck();
600 return $sou->getMobsOfObject($sid, $a_type, $a_id);
604 include_once
'./webservice/soap/classes/class.ilSoapStructureObjectAdministration.php';
608 return $sca->getStructureObjects ($sid,
$ref_id);
611 public static function getRoles($sid, $role_type, $id)
613 include_once
'./webservice/soap/classes/class.ilSoapRBACAdministration.php';
617 return $soa->getRoles($sid, $role_type, $id);
620 public static function importUsers ($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail)
622 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
626 return $sua->importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail);
631 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
635 return $sua->getUsersForContainer($sid,
$ref_id, $attach_roles, $active);
640 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
644 return $sua->getUserForRole($sid, $role_id, $attach_roles, $active);
648 public static function searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active) {
649 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
653 return $sua->searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active);
659 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
663 return $sua->hasNewMail($sid);
667 include_once
'./webservice/soap/classes/class.ilSoapAdministration.php';
669 return $soa->getNIC($sid);
673 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
675 return $sta->getExerciseXML($sid,
$ref_id, $attachFileContentsMode);
681 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
683 return $sta->updateExercise($sid,
$ref_id, $xml);
688 include_once
'./webservice/soap/classes/class.ilSoapExerciseAdministration.php';
690 return $sta->addExercise($sid,
$ref_id, $xml);
696 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
698 return $sta->getFileXML($sid,
$ref_id, $attachFileContentsMode);
705 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
707 return $sta->updateFile($sid,
$ref_id, $xml);
713 include_once
'./webservice/soap/classes/class.ilSoapFileAdministration.php';
715 return $sta->addFile($sid,
$ref_id, $xml);
721 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
725 return $soa->getObjIdsByRefIds($sid, $ref_ids);
728 public static function getUserXML($sid,$user_ids, $attach_roles)
730 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
734 return $sua->getUserXML($sid, $user_ids, $attach_roles);
739 include_once
'./webservice/soap/classes/class.ilSoapGroupAdministration.php';
743 return $sua->updateGroup($sid,
$ref_id, $grp_xml);
747 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
751 return $sua->getIMSManifestXML($sid,
$ref_id);
755 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
767 public static function copyObject($sid, $copy_settings_xml) {
768 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
772 return $soa->copyObject($sid, $copy_settings_xml);
784 include_once
'./webservice/soap/classes/class.ilSoapObjectAdministration.php';
803 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
807 return $soa->getTestResults($sid,
$ref_id,$sum_only);
822 include_once
'./webservice/soap/classes/class.ilSoapTestAdministration.php';
825 return $soa->removeTestResults($sid,
$ref_id,$a_user_ids);
836 include_once
'webservice/soap/classes/class.ilSoapCourseAdministration.php';
838 return $soc->getCoursesForUser($sid, $parameters);
849 include_once
'webservice/soap/classes/class.ilSoapGroupAdministration.php';
851 return $soc->getGroupsForUser($sid, $parameters);
855 include_once
'webservice/soap/classes/class.ilSoapObjectAdministration.php';
857 return $soa->getPathForRefId($sid,
$ref_id);
860 public static function searchRoles ($sid, $key, $combination, $role_type)
862 include_once
'webservice/soap/classes/class.ilSoapRBACAdministration.php';
864 return $roa->searchRoles($sid, $key, $combination, $role_type);
869 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
871 return $roa->getInstallationInfoXML();
875 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
877 return $roa->getClientInfoXML($clientid);
881 include_once
'webservice/soap/classes/class.ilSoapAdministration.php';
883 return $roa->getClientDetailsXML($sid, $clientid);
892 if($_SERVER[
"HTTPS"] ==
"on")
894 $protocol =
'https://';
898 $protocol =
'http://';
900 $host = $_SERVER[
'HTTP_HOST'];
902 $path = dirname($_SERVER[
'REQUEST_URI']);
905 include_once
'Services/Utilities/classes/class.ilUtil.php';
908 $dirs = explode(
'/',$module);
910 foreach(
$dirs as $dir)
912 $uri = dirname($uri);
919 include_once
'./webservice/soap/classes/class.ilSoapSCORMAdministration.php';
923 return $sua->getSCORMCompletionStatus($sid,
$usr_id, $a_ref_id);
928 include_once
'./webservice/soap/classes/class.ilSoapUserAdministration.php';
932 return $sua->getUserIdBySid($sid);
937 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
940 return $swa->readWebLink($sid,
$ref_id);
945 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
948 return $swa->createWebLink($sid,
$ref_id,$xml);
953 include_once
'./webservice/soap/classes/class.ilSoapWebLinkAdministration.php';
956 return $swa->updateWebLink($sid,
$ref_id,$xml);
974 include_once
'./webservice/soap/classes/class.ilSoapUtils.php';
977 $sou->disableSOAPCheck();
978 $sou->ignoreUserAbort();
980 return $sou->deleteExpiredDualOptInUserObjects($sid,
$usr_id);
1018 public static function deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter)
1020 include_once
'./webservice/soap/classes/class.ilSoapLearningProgressAdministration.php';
1022 return $sla->deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter);