mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Funktion json2odt für newline Qualifikationsziele
This commit is contained in:
@@ -280,8 +280,6 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
}
|
||||
|
||||
//Anforderungen durch Lernergebnisse des Studiums ersetzen
|
||||
|
||||
// Überprüfen, ob addon studiengangsverwaltung aktiv ist
|
||||
$addon_obj = new addon();
|
||||
$addonStgAktiv = $addon_obj->checkActiveAddon("studiengangsverwaltung");
|
||||
|
||||
@@ -295,6 +293,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
if (isset($qualifikationsziel->result[0]))
|
||||
{
|
||||
$qualifikation_beschreibung = $qualifikationsziel->result[0]->data[1]->elements[0];
|
||||
$qualifikation_beschreibung = json2odt($qualifikation_beschreibung);
|
||||
echo "<lernergebnisse>$qualifikation_beschreibung</lernergebnisse>";
|
||||
}
|
||||
|
||||
@@ -302,9 +301,6 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
else
|
||||
echo '<addon_aktiv>0</addon_aktiv>';
|
||||
|
||||
|
||||
|
||||
|
||||
if($row->typ=='d')
|
||||
{
|
||||
echo ' <niveau_code>UNESCO ISCED 7</niveau_code>';
|
||||
@@ -1148,6 +1144,14 @@ function cmp($a, $b)
|
||||
return strcmp($a->bezeichnung, $b->bezeichnung);
|
||||
}
|
||||
|
||||
//newline \n durch string '\n' ersetzen (für Qualifikationsziele)
|
||||
function json2odt($str)
|
||||
{
|
||||
$str = str_replace(array("\r\n", "\r", "\n"), '\n', $str);
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function printLehrveranstaltungTree($tree)
|
||||
{
|
||||
global $summe_ects_semester, $summe_sws_semester;
|
||||
|
||||
Reference in New Issue
Block a user