ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
inc.soap_functions.php
Go to the documentation of this file.
1 <?php
2 
29 
31 {
32  // These functions are wrappers for soap, since it cannot register methods inside classes
33 
37  public static function login(string $client, string $username, string $password)
38  {
39  $sua = new ilSoapUserAdministration();
40  return $sua->login($client, $username, $password);
41  }
42 
46  public static function logout(string $sid)
47  {
48  $sua = new ilSoapUserAdministration();
49  return $sua->logout($sid);
50  }
51 
55  public static function lookupUser(string $sid, string $user_name)
56  {
57  $sua = new ilSoapUserAdministration();
58  return $sua->lookupUser($sid, $user_name);
59  }
60 
64  public static function addCourse(string $sid, int $target_id, string $crs_xml)
65  {
66  $sca = new ilSoapCourseAdministration();
67  return $sca->addCourse($sid, $target_id, $crs_xml);
68  }
69 
73  public static function deleteCourse(string $sid, int $course_id)
74  {
75  $sca = new ilSoapCourseAdministration();
76  return $sca->deleteCourse($sid, $course_id);
77  }
78 
82  public static function assignCourseMember(string $sid, int $course_id, int $user_id, string $type)
83  {
84  $sca = new ilSoapCourseAdministration();
85  return $sca->assignCourseMember($sid, $course_id, $user_id, $type);
86  }
87 
91  public static function isAssignedToCourse(string $sid, int $course_id, int $user_id)
92  {
93  $sca = new ilSoapCourseAdministration();
94  return $sca->isAssignedToCourse($sid, $course_id, $user_id);
95  }
96 
100  public static function excludeCourseMember(string $sid, int $course_id, int $user_id)
101  {
102  $sca = new ilSoapCourseAdministration();
103  return $sca->excludeCourseMember($sid, $course_id, $user_id);
104  }
105 
109  public static function getCourseXML(string $sid, int $course_id)
110  {
111  $sca = new ilSoapCourseAdministration();
112  return $sca->getCourseXML($sid, $course_id);
113  }
114 
118  public static function updateCourse(string $sid, int $course_id, string $xml)
119  {
120  $sca = new ilSoapCourseAdministration();
121  return $sca->updateCourse($sid, $course_id, $xml);
122  }
123 
127  public static function getObjIdByImportId(string $sid, string $import_id)
128  {
129  $soa = new ilSoapObjectAdministration();
130  return $soa->getObjIdByImportId($sid, $import_id);
131  }
132 
136  public static function getRefIdsByImportId(string $sid, string $import_id)
137  {
138  $soa = new ilSoapObjectAdministration();
139  return $soa->getRefIdsByImportId($sid, $import_id);
140  }
141 
145  public static function getRefIdsByObjId(string $sid, int $object_id)
146  {
147  $soa = new ilSoapObjectAdministration();
148  return $soa->getRefIdsByObjId($sid, $object_id);
149  }
150 
154  public static function getObjectByReference(string $sid, int $a_ref_id, ?int $user_id = null)
155  {
156  $soa = new ilSoapObjectAdministration();
157  return $soa->getObjectByReference($sid, $a_ref_id, $user_id);
158  }
159 
163  public static function getObjectsByTitle(string $sid, string $a_title, ?int $user_id = null)
164  {
165  $soa = new ilSoapObjectAdministration();
166  return $soa->getObjectsByTitle($sid, $a_title, $user_id);
167  }
168 
172  public static function addObject(string $sid, int $a_target_id, string $a_xml)
173  {
174  $soa = new ilSoapObjectAdministration();
175  return $soa->addObject($sid, $a_target_id, $a_xml);
176  }
177 
181  public static function addReference(string $sid, int $a_source_id, int $a_target_id)
182  {
183  $soa = new ilSoapObjectAdministration();
184  return $soa->addReference($sid, $a_source_id, $a_target_id);
185  }
186 
190  public static function deleteObject(string $sid, int $reference_id)
191  {
192  $soa = new ilSoapObjectAdministration();
193  return $soa->deleteObject($sid, $reference_id);
194  }
195 
199  public static function removeFromSystemByImportId(string $sid, string $import_id)
200  {
201  $soa = new ilSoapObjectAdministration();
202  return $soa->removeFromSystemByImportId($sid, $import_id);
203  }
204 
208  public static function updateObjects(string $sid, string $obj_xml)
209  {
210  $soa = new ilSoapObjectAdministration();
211  return $soa->updateObjects($sid, $obj_xml);
212  }
213 
217  public static function searchObjects(string $sid, array $types, string $key, string $combination, ?int $user_id = null)
218  {
219  $soa = new ilSoapObjectAdministration();
220  return $soa->searchObjects($sid, $types, $key, $combination, $user_id);
221  }
222 
226  public static function getTreeChilds(string $sid, int $ref_id, ?array $types = null, ?int $user_id = null)
227  {
228  $soa = new ilSoapObjectAdministration();
229  return $soa->getTreeChilds($sid, $ref_id, $types, $user_id);
230  }
231 
235  public static function getXMLTree(string $sid, int $ref_id, ?array $types = null, ?int $user_id = null)
236  {
237  $soa = new ilSoapObjectAdministration();
238  return $soa->getXMLTree($sid, $ref_id, $types, $user_id);
239  }
240 
244  public static function getOperations(string $sid)
245  {
246  $soa = new ilSoapRBACAdministration();
247  return $soa->getOperations($sid);
248  }
249 
253  public static function addUserRoleEntry(string $sid, int $user_id, int $role_id)
254  {
255  $soa = new ilSoapRBACAdministration();
256  return $soa->addUserRoleEntry($sid, $user_id, $role_id);
257  }
258 
262  public static function deleteUserRoleEntry(string $sid, int $user_id, int $role_id)
263  {
264  $soa = new ilSoapRBACAdministration();
265  return $soa->deleteUserRoleEntry($sid, $user_id, $role_id);
266  }
267 
271  public static function revokePermissions(string $sid, int $ref_id, int $role_id)
272  {
273  $soa = new ilSoapRBACAdministration();
274  return $soa->revokePermissions($sid, $ref_id, $role_id);
275  }
276 
280  public static function grantPermissions(string $sid, int $ref_id, int $role_id, array $permissions)
281  {
282  $soa = new ilSoapRBACAdministration();
283  return $soa->grantPermissions($sid, $ref_id, $role_id, $permissions);
284  }
285 
289  public static function getLocalRoles(string $sid, int $ref_id)
290  {
291  $soa = new ilSoapRBACAdministration();
292  return $soa->getLocalRoles($sid, $ref_id);
293  }
294 
298  public static function getUserRoles(string $sid, int $user_id)
299  {
300  $soa = new ilSoapRBACAdministration();
301  return $soa->getUserRoles($sid, $user_id);
302  }
303 
307  public static function deleteRole(string $sid, int $role_id)
308  {
309  $soa = new ilSoapRBACAdministration();
310  return $soa->deleteRole($sid, $role_id);
311  }
312 
316  public static function addRole(string $sid, int $target_id, string $obj_xml)
317  {
318  $soa = new ilSoapRBACAdministration();
319  return $soa->addRole($sid, $target_id, $obj_xml);
320  }
321 
325  public static function addRoleFromTemplate(string $sid, int $target_id, string $obj_xml, int $template_id)
326  {
327  $soa = new ilSoapRBACAdministration();
328  return $soa->addRoleFromTemplate($sid, $target_id, $obj_xml, $template_id);
329  }
330 
334  public static function getObjectTreeOperations(string $sid, int $ref_id, int $user_id)
335  {
336  $soa = new ilSoapRBACAdministration();
337  return $soa->getObjectTreeOperations($sid, $ref_id, $user_id);
338  }
339 
343  public static function addGroup(string $sid, int $target_id, string $group_xml)
344  {
345  $soa = new ilSoapGroupAdministration();
346  return $soa->addGroup($sid, $target_id, $group_xml);
347  }
348 
352  public static function groupExists(string $sid, string $title)
353  {
354  $soa = new ilSoapGroupAdministration();
355  return $soa->groupExists($sid, $title);
356  }
357 
361  public static function getGroup(string $sid, int $ref_id)
362  {
363  $soa = new ilSoapGroupAdministration();
364  return $soa->getGroup($sid, $ref_id);
365  }
366 
370  public static function assignGroupMember(string $sid, int $group_id, int $user_id, string $type)
371  {
372  $sca = new ilSoapGroupAdministration();
373  return $sca->assignGroupMember($sid, $group_id, $user_id, $type);
374  }
375 
379  public static function isAssignedToGroup(string $sid, int $group_id, int $user_id)
380  {
381  $sca = new ilSoapGroupAdministration();
382  return $sca->isAssignedToGroup($sid, $group_id, $user_id);
383  }
384 
388  public static function excludeGroupMember(string $sid, int $group_id, int $user_id)
389  {
390  $sca = new ilSoapGroupAdministration();
391  return $sca->excludeGroupMember($sid, $group_id, $user_id);
392  }
393 
397  public static function ilClone(string $sid, int $copy_identifier)
398  {
399  $sou = new ilSoapUtils();
400  $sou->disableSOAPCheck();
401  $sou->ignoreUserAbort();
402  return $sou->ilClone($sid, $copy_identifier);
403  }
404 
408  public static function ilCloneDependencies(string $sid, int $copy_identifier)
409  {
410  $sou = new ilSoapUtils();
411  $sou->disableSOAPCheck();
412  $sou->ignoreUserAbort();
413  return $sou->ilCloneDependencies($sid, $copy_identifier);
414  }
415 
419  public static function saveQuestion(string $sid, int $active_id, int $question_id, int $pass, array $solution)
420  {
421  $sass = new ilSoapTestAdministration();
422  return $sass->saveQuestion($sid, $active_id, $question_id, $pass, $solution);
423  }
424 
428  public static function saveQuestionSolution(string $sid, int $active_id, int $question_id, int $pass, int $solution)
429  {
430  $sass = new ilSoapTestAdministration();
431  return $sass->saveQuestionSolution($sid, $active_id, $question_id, $pass, $solution);
432  }
433 
437  public static function getQuestionSolution(string $sid, int $active_id, int $question_id, int $pass)
438  {
439  $sass = new ilSoapTestAdministration();
440  return $sass->getQuestionSolution($sid, $active_id, $question_id, $pass);
441  }
442 
446  public static function getTestUserData(string $sid, int $active_id)
447  {
448  $sass = new ilSoapTestAdministration();
449  return $sass->getTestUserData($sid, $active_id);
450  }
451 
455  public static function getNrOfQuestionsInPass(string $sid, int $active_id, int $pass)
456  {
457  $sass = new ilSoapTestAdministration();
458  return $sass->getNrOfQuestionsInPass($sid, $active_id, $pass);
459  }
460 
464  public static function getPositionOfQuestion(string $sid, int $active_id, int $question_id, int $pass)
465  {
466  $sass = new ilSoapTestAdministration();
467  return $sass->getPositionOfQuestion($sid, $active_id, $question_id, $pass);
468  }
469 
473  public static function getPreviousReachedPoints(string $sid, int $active_id, int $question_id, int $pass)
474  {
475  $sass = new ilSoapTestAdministration();
476  return $sass->getPreviousReachedPoints($sid, $active_id, $question_id, $pass);
477  }
478 
482  public static function saveTempFileAsMediaObject(string $sid, string $name, string $tmp_name)
483  {
484  $sou = new ilSoapUtils();
485  $sou->disableSOAPCheck();
486  return $sou->saveTempFileAsMediaObject($sid, $name, $tmp_name);
487  }
488 
492  public static function getMobsOfObject(string $sid, string $a_type, int $a_id)
493  {
494  $sou = new ilSoapUtils();
495  $sou->disableSOAPCheck();
496  return $sou->getMobsOfObject($sid, $a_type, $a_id);
497  }
498 
502  public static function getStructureObjects(string $sid, int $ref_id)
503  {
505  return $sca->getStructureObjects($sid, $ref_id);
506  }
507 
511  public static function getRoles(string $sid, string $role_type, int $id)
512  {
513  $soa = new ilSoapRBACAdministration();
514  return $soa->getRoles($sid, $role_type, $id);
515  }
516 
520  public static function importUsers(string $sid, int $folder_id, string $usr_xml, int $conflict_rule, bool $send_account_mail)
521  {
522  $sua = new ilSoapUserAdministration();
523  return $sua->importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail);
524  }
525 
529  public static function getUsersForContainer(string $sid, int $ref_id, bool $attach_roles, int $active)
530  {
531  $sua = new ilSoapUserAdministration();
532  return $sua->getUsersForContainer($sid, $ref_id, $attach_roles, $active);
533  }
534 
538  public static function getUsersForRole(string $sid, int $role_id, bool $attach_roles, int $active)
539  {
540  $sua = new ilSoapUserAdministration();
541  return $sua->getUserForRole($sid, $role_id, $attach_roles, $active);
542  }
543 
547  public static function searchUser(string $sid, array $a_keyfields, string $query_operator, array $a_keyvalues, bool $attach_roles, int $active)
548  {
549  $sua = new ilSoapUserAdministration();
550  return $sua->searchUser($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active);
551  }
552 
556  public static function hasNewMail(string $sid)
557  {
558  $sua = new ilSoapUserAdministration();
559  return $sua->hasNewMail($sid);
560  }
561 
565  public static function getExerciseXML(string $sid, int $ref_id, int $attachFileContentsMode)
566  {
567  $sta = new ilSoapExerciseAdministration();
568  return $sta->getExerciseXML($sid, $ref_id, $attachFileContentsMode);
569  }
570 
574  public static function updateExercise(string $sid, int $ref_id, string $xml)
575  {
576  $sta = new ilSoapExerciseAdministration();
577  return $sta->updateExercise($sid, $ref_id, $xml);
578  }
579 
583  public static function addExercise(string $sid, int $ref_id, string $xml)
584  {
585  $sta = new ilSoapExerciseAdministration();
586  return $sta->addExercise($sid, $ref_id, $xml);
587  }
588 
592  public static function getFileXML(string $sid, int $ref_id, int $attachFileContentsMode)
593  {
594  $sta = new ilSoapFileAdministration();
595  return $sta->getFileXML($sid, $ref_id, $attachFileContentsMode);
596  }
597 
601  public static function updateFile(string $sid, int $ref_id, string $xml)
602  {
603  $sta = new ilSoapFileAdministration();
604  return $sta->updateFile($sid, $ref_id, $xml);
605  }
606 
610  public static function addFile(string $sid, int $ref_id, string $xml)
611  {
612  $sta = new ilSoapFileAdministration();
613  return $sta->addFile($sid, $ref_id, $xml);
614  }
615 
619  public static function getObjIdsByRefIds(string $sid, array $ref_ids)
620  {
621  $soa = new ilSoapObjectAdministration();
622  return $soa->getObjIdsByRefIds($sid, $ref_ids);
623  }
624 
628  public static function getUserXML(string $sid, array $user_ids, bool $attach_roles)
629  {
630  $sua = new ilSoapUserAdministration();
631  return $sua->getUserXML($sid, $user_ids, $attach_roles);
632  }
633 
637  public static function updateGroup(string $sid, int $ref_id, string $grp_xml)
638  {
639  $sua = new ilSoapGroupAdministration();
640  return $sua->updateGroup($sid, $ref_id, $grp_xml);
641  }
642 
646  public static function getIMSManifestXML(string $sid, int $ref_id)
647  {
648  $sua = new ilSoapSCORMAdministration();
649  return $sua->getIMSManifestXML($sid, $ref_id);
650  }
651 
652  public static function hasSCORMCertificate(string $sid, int $ref_id, int $usr_id)
653  {
654  $sua = new ilSoapSCORMAdministration();
655  return $sua->hasSCORMCertificate($sid, $ref_id, $usr_id);
656  }
657 
661  public static function copyObject(string $sid, string $copy_settings_xml)
662  {
663  $soa = new ilSoapObjectAdministration();
664  return $soa->copyObject($sid, $copy_settings_xml);
665  }
666 
670  public static function startBackgroundTaskWorker(string $sid)
671  {
673  return $soa->runAsync($sid);
674  }
675 
679  public static function moveObject(string $sid, int $ref_id, int $target_id)
680  {
681  $soa = new ilSoapObjectAdministration();
682  return $soa->moveObject($sid, $ref_id, $target_id);
683  }
684 
688  public static function getTestResults(string $sid, int $ref_id, bool $sum_only)
689  {
690  $soa = new ilSoapTestAdministration();
691  return $soa->getTestResults($sid, $ref_id, $sum_only);
692  }
693 
697  public static function removeTestResults(string $sid, int $ref_id, array $a_user_ids)
698  {
699  $soa = new ilSoapTestAdministration();
700  return $soa->removeTestResults($sid, $ref_id, $a_user_ids);
701  }
702 
706  public static function getCoursesForUser(string $sid, string $parameters)
707  {
708  $soc = new ilSoapCourseAdministration();
709  return $soc->getCoursesForUser($sid, $parameters);
710  }
711 
715  public static function getGroupsForUser(string $sid, string $parameters)
716  {
717  $soc = new ilSoapGroupAdministration();
718  return $soc->getGroupsForUser($sid, $parameters);
719  }
720 
724  public static function getPathForRefId(string $sid, int $ref_id)
725  {
726  $soa = new ilSoapObjectAdministration();
727  return $soa->getPathForRefId($sid, $ref_id);
728  }
729 
733  public static function searchRoles(string $sid, string $key, string $combination, string $role_type)
734  {
735  $roa = new ilSoapRBACAdministration();
736  return $roa->searchRoles($sid, $key, $combination, $role_type);
737  }
738 
739  public static function getInstallationInfoXML(): string
740  {
741  $roa = new ilSoapAdministration();
742  return $roa->getInstallationInfoXML();
743  }
744 
748  public static function getClientInfoXML(string $clientid)
749  {
750  $roa = new ilSoapAdministration();
751  return $roa->getClientInfoXML($clientid);
752  }
753 
754  public static function buildHTTPPath(bool $use_module_depending_path = true): string
755  {
756  if (($_SERVER['HTTPS'] ?? '') === 'on') {
757  $protocol = 'https://';
758  } else {
759  $protocol = 'http://';
760  }
761 
762  $host = $_SERVER['HTTP_HOST'] ?? '';
763  $path = dirname($_SERVER['REQUEST_URI'] ?? '');
764 
765  // dirname cuts the last directory from a directory path e.g content/classes return content
766  if ($use_module_depending_path && defined('ILIAS_MODULE')) {
768  $dirs = array_filter(explode('/', $module));
769  foreach ($dirs as $dir) {
770  $path = dirname($path);
771  }
772  }
773 
774  return ilFileUtils::removeTrailingPathSeparators($protocol . $host . $path);
775  }
776 
780  public static function getSCORMCompletionStatus(string $sid, int $usr_id, int $a_ref_id)
781  {
782  $sua = new ilSoapSCORMAdministration();
783  return $sua->getSCORMCompletionStatus($sid, $usr_id, $a_ref_id);
784  }
785 
789  public static function getUserIdBySid(string $sid)
790  {
791  $sua = new ilSoapUserAdministration();
792  return $sua->getUserIdBySid($sid);
793  }
794 
798  public static function readWebLink(string $sid, int $ref_id)
799  {
800  $swa = new ilSoapWebLinkAdministration();
801  return $swa->readWebLink($sid, $ref_id);
802  }
803 
807  public static function createWebLink(string $sid, int $ref_id, string $xml)
808  {
809  $swa = new ilSoapWebLinkAdministration();
810  return $swa->createWebLink($sid, $ref_id, $xml);
811  }
812 
816  public static function updateWebLink(string $sid, int $ref_id, string $xml)
817  {
818  $swa = new ilSoapWebLinkAdministration();
819  return $swa->updateWebLink($sid, $ref_id, $xml);
820  }
821 
822  public static function deleteExpiredDualOptInUserObjects(string $sid, int $usr_id): bool
823  {
824  $sou = new ilSoapUtils();
825  $sou->disableSOAPCheck();
826  $sou->ignoreUserAbort();
827  return $sou->deleteExpiredDualOptInUserObjects($sid, $usr_id);
828  }
829 
833  public static function deleteProgress(string $sid, array $ref_ids, array $usr_ids, array $type_filter, array $progress_filter)
834  {
836  return $sla->deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter);
837  }
838 
842  public static function getLearningProgressChanges(string $sid, string $timestamp, bool $include_ref_ids, array $type_filter)
843  {
845  return $s->getLearningProgressChanges($sid, $timestamp, $include_ref_ids, $type_filter);
846  }
847 
851  public static function getProgressInfo(string $sid, int $ref_id, array $progress_filter)
852  {
854  return $sla->getProgressInfo($sid, $ref_id, $progress_filter);
855  }
856 
860  public static function exportDataCollectionContent(string $sid, int $data_collection_id, ?int $table_id = null, string $format = "xls", ?string $filepath = null)
861  {
863  return $dcl->exportDataCollectionContent($sid, $data_collection_id, $table_id, $format, $filepath);
864  }
865 
870  public static function addUserToPositionInOrgUnit(...$params)
871  {
872  $h = new AddUserIdToPositionInOrgUnit();
873  return $h->execute($params);
874  }
875 
880  public static function getEmployeePositionId(...$params)
881  {
882  $h = new EmployeePositionId();
883  return $h->execute($params);
884  }
885 
890  public static function importOrgUnitsSimpleXML(...$params)
891  {
892  $h = new ImportOrgUnitTree();
893  return $h->execute($params);
894  }
895 
900  public static function getOrgUnitsSimpleXML(...$params)
901  {
902  $h = new OrgUnitTree();
903  return $h->execute($params);
904  }
905 
910  public static function getPositionIds(...$params)
911  {
912  $h = new PositionIds();
913  return $h->execute($params);
914  }
915 
920  public static function getPositionTitle(...$params)
921  {
922  $h = new PositionTitle();
923  return $h->execute($params);
924  }
925 
930  public static function removeUserFromPositionInOrgUnit(...$params)
931  {
933  return $h->execute($params);
934  }
935 
940  public static function getSuperiorPositionId(...$params)
941  {
942  $h = new SuperiorPositionId();
943  return $h->execute($params);
944  }
945 
950  public static function getUserIdsOfPosition(...$params)
951  {
952  $h = new UserIdsOfPosition();
953  return $h->execute($params);
954  }
955 
961  {
962  $h = new UserIdsOfPositionAndOrgUnit();
963  return $h->execute($params);
964  }
965 
972  public function __call($name, $arguments)
973  {
974  // SoapHookPlugins need the client-ID submitted
975  // no initialized ILIAS => no request wrapper available.
976  if (!isset($_GET['client_id'])) {
977  throw new SoapFault('SOAP-ENV:Server', "Function '$name' does not exist");
978  }
979  // Note: We need to bootstrap ILIAS in order to get $ilPluginAdmin and load the soap plugins.
980  // We MUST use a context that does not handle authentication at this point (session is checked by SOAP).
984  global $DIC;
985  $soapHook = new ilSoapHook($DIC['component.factory']);
986  // Method name may be invoked with namespace e.g. 'myMethod' vs 'ns:myMethod'
987  if (strpos($name, ':') !== false) {
988  [$_, $name] = explode(':', $name);
989  }
990  $method = $soapHook->getMethodByName($name);
991  if ($method) {
992  try {
993  return $method->execute($arguments);
994  } catch (ilSoapPluginException $e) {
995  throw new SoapFault('SOAP-ENV:Server', $e->getMessage());
996  }
997  }
998  throw new SoapFault('SOAP-ENV:Server', "Function '$name' does not exist");
999  }
1000 }
static getLocalRoles(string $sid, int $ref_id)
static getExerciseXML(string $sid, int $ref_id, int $attachFileContentsMode)
static getGroupsForUser(string $sid, string $parameters)
static saveTempFileAsMediaObject(string $sid, string $name, string $tmp_name)
static deleteCourse(string $sid, int $course_id)
static searchRoles(string $sid, string $key, string $combination, string $role_type)
static addObject(string $sid, int $a_target_id, string $a_xml)
static searchUser(string $sid, array $a_keyfields, string $query_operator, array $a_keyvalues, bool $attach_roles, int $active)
static getPathForRefId(string $sid, int $ref_id)
$_GET["client_id"]
Definition: webdav.php:30
static getIMSManifestXML(string $sid, int $ref_id)
static getUserIdsOfPosition(... $params)
static getFileXML(string $sid, int $ref_id, int $attachFileContentsMode)
static hasSCORMCertificate(string $sid, int $ref_id, int $usr_id)
static assignCourseMember(string $sid, int $course_id, int $user_id, string $type)
static getUserRoles(string $sid, int $user_id)
static getObjIdsByRefIds(string $sid, array $ref_ids)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getClientInfoXML(string $clientid)
static getInstallationInfoXML()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static exportDataCollectionContent(string $sid, int $data_collection_id, ?int $table_id=null, string $format="xls", ?string $filepath=null)
static getOperations(string $sid)
static ilClone(string $sid, int $copy_identifier)
static grantPermissions(string $sid, int $ref_id, int $role_id, array $permissions)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
static updateExercise(string $sid, int $ref_id, string $xml)
static getNrOfQuestionsInPass(string $sid, int $active_id, int $pass)
static getSuperiorPositionId(... $params)
static getTreeChilds(string $sid, int $ref_id, ?array $types=null, ?int $user_id=null)
static startBackgroundTaskWorker(string $sid)
Soap utitliy functions.
static addReference(string $sid, int $a_source_id, int $a_target_id)
static hasNewMail(string $sid)
static revokePermissions(string $sid, int $ref_id, int $role_id)
static getEmployeePositionId(... $params)
static getCourseXML(string $sid, int $course_id)
const CONTEXT_SOAP_NO_AUTH
static addRole(string $sid, int $target_id, string $obj_xml)
static lookupUser(string $sid, string $user_name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static assignGroupMember(string $sid, int $group_id, int $user_id, string $type)
static getUserIdBySid(string $sid)
static getRoles(string $sid, string $role_type, int $id)
static getObjectByReference(string $sid, int $a_ref_id, ?int $user_id=null)
static getCoursesForUser(string $sid, string $parameters)
static excludeGroupMember(string $sid, int $group_id, int $user_id)
static removeFromSystemByImportId(string $sid, string $import_id)
static getPositionIds(... $params)
static removeTestResults(string $sid, int $ref_id, array $a_user_ids)
static isAssignedToCourse(string $sid, int $course_id, int $user_id)
$path
Definition: ltiservices.php:29
static removeTrailingPathSeparators(string $path)
static getOrgUnitsSimpleXML(... $params)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static updateCourse(string $sid, int $course_id, string $xml)
$client
static getUserXML(string $sid, array $user_ids, bool $attach_roles)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static initILIAS()
ilias initialisation
static getLearningProgressChanges(string $sid, string $timestamp, bool $include_ref_ids, array $type_filter)
static removeUserFromPositionInOrgUnit(... $params)
$ref_id
Definition: ltiauth.php:65
static getObjIdByImportId(string $sid, string $import_id)
static addFile(string $sid, int $ref_id, string $xml)
static excludeCourseMember(string $sid, int $course_id, int $user_id)
static ilCloneDependencies(string $sid, int $copy_identifier)
static deleteUserRoleEntry(string $sid, int $user_id, int $role_id)
static getPositionTitle(... $params)
static updateFile(string $sid, int $ref_id, string $xml)
static logout(string $sid)
Soap exercise administration methods.
Soap methods for adminstrating web links.
static getQuestionSolution(string $sid, int $active_id, int $question_id, int $pass)
Class ilSoapHook.
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
static getTestUserData(string $sid, int $active_id)
static getObjectsByTitle(string $sid, string $a_title, ?int $user_id=null)
static deleteProgress(string $sid, array $ref_ids, array $usr_ids, array $type_filter, array $progress_filter)
static saveQuestionSolution(string $sid, int $active_id, int $question_id, int $pass, int $solution)
const ILIAS_MODULE
Definition: server.php:24
global $DIC
Definition: shib_login.php:22
static getObjectTreeOperations(string $sid, int $ref_id, int $user_id)
static getPreviousReachedPoints(string $sid, int $active_id, int $question_id, int $pass)
static getSCORMCompletionStatus(string $sid, int $usr_id, int $a_ref_id)
static addRoleFromTemplate(string $sid, int $target_id, string $obj_xml, int $template_id)
static createWebLink(string $sid, int $ref_id, string $xml)
static getUsersForContainer(string $sid, int $ref_id, bool $attach_roles, int $active)
static getPositionOfQuestion(string $sid, int $active_id, int $question_id, int $pass)
static addExercise(string $sid, int $ref_id, string $xml)
static saveQuestion(string $sid, int $active_id, int $question_id, int $pass, array $solution)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
static isAssignedToGroup(string $sid, int $group_id, int $user_id)
static getStructureObjects(string $sid, int $ref_id)
static deleteObject(string $sid, int $reference_id)
static getGroup(string $sid, int $ref_id)
__call($name, $arguments)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static buildHTTPPath(bool $use_module_depending_path=true)
static init(string $a_type)
Init context by type.
static updateGroup(string $sid, int $ref_id, string $grp_xml)
static addCourse(string $sid, int $target_id, string $crs_xml)
static getRefIdsByImportId(string $sid, string $import_id)
static addUserRoleEntry(string $sid, int $user_id, int $role_id)
static getProgressInfo(string $sid, int $ref_id, array $progress_filter)
static getXMLTree(string $sid, int $ref_id, ?array $types=null, ?int $user_id=null)
static deleteExpiredDualOptInUserObjects(string $sid, int $usr_id)
static updateObjects(string $sid, string $obj_xml)
static getRefIdsByObjId(string $sid, int $object_id)
static moveObject(string $sid, int $ref_id, int $target_id)
static importOrgUnitsSimpleXML(... $params)
static login(string $client, string $username, string $password)
static groupExists(string $sid, string $title)
const CONTEXT_SOAP
static deleteRole(string $sid, int $role_id)
static getMobsOfObject(string $sid, string $a_type, int $a_id)
static updateWebLink(string $sid, int $ref_id, string $xml)
static addGroup(string $sid, int $target_id, string $group_xml)
static importUsers(string $sid, int $folder_id, string $usr_xml, int $conflict_rule, bool $send_account_mail)
static getTestResults(string $sid, int $ref_id, bool $sum_only)
getUserIdsOfPositionAndOrgUnit(... $params)
static copyObject(string $sid, string $copy_settings_xml)
static readWebLink(string $sid, int $ref_id)
static searchObjects(string $sid, array $types, string $key, string $combination, ?int $user_id=null)
static getUsersForRole(string $sid, int $role_id, bool $attach_roles, int $active)
static addUserToPositionInOrgUnit(... $params)