40         $DIC->language()->loadLanguageModule(
'orgu');
    44         $xml = simplexml_load_string($params[
'OrgUnitTree']);
    47             foreach ($xml->children() as $ou_id => $node) {
    48                 $importer->simpleImportElement(simplexml_load_string($node->asXML()));
    51             throw new \ilSoapPluginException(
"Could not Read the XML File");
    54         if (count($importer->getErrors()) || count($importer->getWarnings())) {
    56             if ($importer->hasWarnings()) {
    57                 $arr_msg[] = $DIC->language()->txt(
"import_terminated_with_warnings");
    58                 foreach ($importer->getWarnings() as $warning) {
    59                     $arr_msg[$warning[
"import_id"]] = $DIC->language()->txt($warning[
"lang_var"]) . 
" (Import ID: " . $warning[
"import_id"] . 
")";
    62             if ($importer->hasErrors()) {
    63                 $arr_msg[] = $DIC->language()->txt(
"import_terminated_with_errors");
    64                 foreach ($importer->getErrors() as 
$error) {
    65                     $arr_msg[
$error[
"import_id"]] = $DIC->language()->txt($error[
"lang_var"]) . 
" (Import ID: " . $error[
"import_id"] . 
")";
    69             throw new \ilSoapPluginException(implode(
" / ", $arr_msg));
    77         return "importOrgUnitsSimpleXML";
    92         return "Imports ILIAS Organisational Units (SimpleXML)";
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getAdditionalInputParams()
 
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
 
getName()
Get the name of the method. 
 
getOutputParams()
Get the output parameters in the same format as the input parameters. 
 
getDocumentation()
Get the documentation of this method.