37 public static function login(
string $client,
string $username,
string $password)
40 return $sua->login($client, $username, $password);
46 public static function logout(
string $sid)
49 return $sua->logout($sid);
55 public static function lookupUser(
string $sid,
string $user_name)
58 return $sua->lookupUser($sid, $user_name);
64 public static function addCourse(
string $sid,
int $target_id,
string $crs_xml)
67 return $sca->addCourse($sid, $target_id, $crs_xml);
76 return $sca->deleteCourse($sid, $course_id);
85 return $sca->assignCourseMember($sid, $course_id, $user_id, $type);
94 return $sca->isAssignedToCourse($sid, $course_id, $user_id);
103 return $sca->excludeCourseMember($sid, $course_id, $user_id);
112 return $sca->getCourseXML($sid, $course_id);
118 public static function updateCourse(
string $sid,
int $course_id,
string $xml)
121 return $sca->updateCourse($sid, $course_id, $xml);
130 return $soa->getObjIdByImportId($sid, $import_id);
139 return $soa->getRefIdsByImportId($sid, $import_id);
148 return $soa->getRefIdsByObjId($sid, $object_id);
157 return $soa->getObjectByReference($sid, $a_ref_id,
$user_id);
166 return $soa->getObjectsByTitle($sid, $a_title,
$user_id);
172 public static function addObject(
string $sid,
int $a_target_id,
string $a_xml)
175 return $soa->addObject($sid, $a_target_id, $a_xml);
181 public static function addReference(
string $sid,
int $a_source_id,
int $a_target_id)
184 return $soa->addReference($sid, $a_source_id, $a_target_id);
193 return $soa->deleteObject($sid, $reference_id);
202 return $soa->removeFromSystemByImportId($sid, $import_id);
211 return $soa->updateObjects($sid, $obj_xml);
220 return $soa->searchObjects($sid, $types, $key, $combination,
$user_id);
229 return $soa->getTreeChilds($sid, $ref_id, $types,
$user_id);
238 return $soa->getXMLTree($sid, $ref_id, $types,
$user_id);
247 return $soa->getOperations($sid);
256 return $soa->addUserRoleEntry($sid, $user_id, $role_id);
265 return $soa->deleteUserRoleEntry($sid, $user_id, $role_id);
274 return $soa->revokePermissions($sid, $ref_id, $role_id);
283 return $soa->grantPermissions($sid, $ref_id, $role_id, $permissions);
292 return $soa->getLocalRoles($sid, $ref_id);
301 return $soa->getUserRoles($sid, $user_id);
310 return $soa->deleteRole($sid, $role_id);
316 public static function addRole(
string $sid,
int $target_id,
string $obj_xml)
319 return $soa->addRole($sid, $target_id, $obj_xml);
325 public static function addRoleFromTemplate(
string $sid,
int $target_id,
string $obj_xml,
int $template_id)
328 return $soa->addRoleFromTemplate($sid, $target_id, $obj_xml, $template_id);
337 return $soa->getObjectTreeOperations($sid, $ref_id, $user_id);
343 public static function addGroup(
string $sid,
int $target_id,
string $group_xml)
346 return $soa->addGroup($sid, $target_id, $group_xml);
355 return $soa->groupExists($sid, $title);
364 return $soa->getGroup($sid, $ref_id);
373 return $sca->assignGroupMember($sid, $group_id, $user_id, $type);
382 return $sca->isAssignedToGroup($sid, $group_id, $user_id);
391 return $sca->excludeGroupMember($sid, $group_id, $user_id);
397 public static function ilClone(
string $sid,
int $copy_identifier)
400 $sou->disableSOAPCheck();
401 $sou->ignoreUserAbort();
402 return $sou->ilClone($sid, $copy_identifier);
411 $sou->disableSOAPCheck();
412 $sou->ignoreUserAbort();
413 return $sou->ilCloneDependencies($sid, $copy_identifier);
419 public static function saveQuestion(
string $sid,
int $active_id,
int $question_id,
int $pass, array $solution)
422 return $sass->saveQuestion($sid, $active_id, $question_id, $pass, $solution);
428 public static function saveQuestionSolution(
string $sid,
int $active_id,
int $question_id,
int $pass,
int $solution)
431 return $sass->saveQuestionSolution($sid, $active_id, $question_id, $pass, $solution);
440 return $sass->getQuestionSolution($sid, $active_id, $question_id, $pass);
449 return $sass->getTestUserData($sid, $active_id);
458 return $sass->getNrOfQuestionsInPass($sid, $active_id, $pass);
467 return $sass->getPositionOfQuestion($sid, $active_id, $question_id, $pass);
476 return $sass->getPreviousReachedPoints($sid, $active_id, $question_id, $pass);
485 $sou->disableSOAPCheck();
486 return $sou->saveTempFileAsMediaObject($sid, $name, $tmp_name);
495 $sou->disableSOAPCheck();
496 return $sou->getMobsOfObject($sid, $a_type, $a_id);
505 return $sca->getStructureObjects($sid, $ref_id);
511 public static function getRoles(
string $sid,
string $role_type,
int $id)
514 return $soa->getRoles($sid, $role_type, $id);
520 public static function importUsers(
string $sid,
int $folder_id,
string $usr_xml,
int $conflict_rule,
bool $send_account_mail)
523 return $sua->importUsers($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail);
532 return $sua->getUsersForContainer($sid, $ref_id, $attach_roles, $active);
538 public static function getUsersForRole(
string $sid,
int $role_id,
bool $attach_roles,
int $active)
541 return $sua->getUserForRole($sid, $role_id, $attach_roles, $active);
547 public static function searchUser(
string $sid, array $a_keyfields,
string $query_operator, array $a_keyvalues,
bool $attach_roles,
int $active)
550 return $sua->searchUser($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active);
559 return $sua->hasNewMail($sid);
568 return $sta->getExerciseXML($sid, $ref_id, $attachFileContentsMode);
577 return $sta->updateExercise($sid, $ref_id, $xml);
586 return $sta->addExercise($sid, $ref_id, $xml);
595 return $sta->getFileXML($sid, $ref_id, $attachFileContentsMode);
604 return $sta->updateFile($sid, $ref_id, $xml);
613 return $sta->addFile($sid, $ref_id, $xml);
622 return $soa->getObjIdsByRefIds($sid, $ref_ids);
628 public static function getUserXML(
string $sid, array $user_ids,
bool $attach_roles)
631 return $sua->getUserXML($sid, $user_ids, $attach_roles);
640 return $sua->updateGroup($sid, $ref_id, $grp_xml);
649 return $sua->getIMSManifestXML($sid, $ref_id);
655 return $sua->hasSCORMCertificate($sid, $ref_id, $usr_id);
661 public static function copyObject(
string $sid,
string $copy_settings_xml)
664 return $soa->copyObject($sid, $copy_settings_xml);
673 return $soa->runAsync($sid);
682 return $soa->moveObject($sid, $ref_id, $target_id);
691 return $soa->getTestResults($sid, $ref_id, $sum_only);
700 return $soa->removeTestResults($sid, $ref_id, $a_user_ids);
709 return $soc->getCoursesForUser($sid, $parameters);
718 return $soc->getGroupsForUser($sid, $parameters);
727 return $soa->getPathForRefId($sid, $ref_id);
733 public static function searchRoles(
string $sid,
string $key,
string $combination,
string $role_type)
736 return $roa->searchRoles($sid, $key, $combination, $role_type);
742 return $roa->getInstallationInfoXML();
751 return $roa->getClientInfoXML($clientid);
754 public static function buildHTTPPath(
bool $use_module_depending_path =
true): string
756 if ((
$_SERVER[
'HTTPS'] ??
'') ===
'on') {
757 $protocol =
'https://';
759 $protocol =
'http://';
762 $host =
$_SERVER[
'HTTP_HOST'] ??
'';
766 if ($use_module_depending_path && defined(
'ILIAS_MODULE')) {
768 $dirs = array_filter(explode(
'/', $module));
769 foreach ($dirs as $dir) {
783 return $sua->getSCORMCompletionStatus($sid, $usr_id, $a_ref_id);
792 return $sua->getUserIdBySid($sid);
801 return $swa->readWebLink($sid, $ref_id);
810 return $swa->createWebLink($sid, $ref_id, $xml);
819 return $swa->updateWebLink($sid, $ref_id, $xml);
825 $sou->disableSOAPCheck();
826 $sou->ignoreUserAbort();
827 return $sou->deleteExpiredDualOptInUserObjects($sid, $usr_id);
833 public static function deleteProgress(
string $sid, array $ref_ids, array $usr_ids, array $type_filter, array $progress_filter)
836 return $sla->deleteProgress($sid, $ref_ids, $usr_ids, $type_filter, $progress_filter);
845 return $s->getLearningProgressChanges($sid, $timestamp, $include_ref_ids, $type_filter);
854 return $sla->getProgressInfo($sid, $ref_id, $progress_filter);
863 return $dcl->exportDataCollectionContent($sid, $data_collection_id, $table_id, $format, $filepath);
972 public function __call($name, $arguments)
976 if (!isset(
$_GET[
'client_id'])) {
977 throw new SoapFault(
'SOAP-ENV:Server',
"Function '$name' does not exist");
985 $soapHook =
new ilSoapHook($DIC[
'component.factory']);
987 if (strpos($name,
':') !==
false) {
988 [$_, $name] = explode(
':', $name);
990 $method = $soapHook->getMethodByName($name);
993 return $method->execute($arguments);
995 throw new SoapFault(
'SOAP-ENV:Server', $e->getMessage());
998 throw new SoapFault(
'SOAP-ENV:Server',
"Function '$name' does not exist");
static getLocalRoles(string $sid, int $ref_id)
static getExerciseXML(string $sid, int $ref_id, int $attachFileContentsMode)
static getGroupsForUser(string $sid, string $parameters)
Class AddUserIdToPositionInOrgUnit.
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)
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)
Class EmployeePositionId.
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
Class AddUserIdToPositionInOrgUnit.
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)
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)
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)
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)
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)
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)
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)
Class UserIdsOfPositionAndOrgUnit.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class SuperiorPositionId.
foreach($mandatory_scripts as $file) $timestamp
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
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)
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)