4 require_once
'Modules/TestQuestionPool/interfaces/interface.ilAssSelfAssessmentMigrator.php';
20 require_once
'Services/RTE/classes/class.ilRTE.php';
23 $string = str_replace(
"</li><br />",
"</li>", $string);
24 $string = str_replace(
"</li><br>",
"</li>", $string);
26 require_once
'Services/MathJax/classes/class.ilMathJax.php';
30 $string = str_replace(
'{',
'{', $string);
31 $string = str_replace(
'}',
'}', $string);
43 $string = nl2br($string);
57 $ls =
'<span class="latex">';
61 $pos1 = strpos($string, $ls);
63 $pos2 = strpos($string, $le, $pos1);
66 $string = substr($string, 0, $pos2) .
"[/tex]" . substr($string, $pos2+7);
67 $string = substr($string, 0, $pos1) .
"[tex]" . substr($string, $pos1+20);
85 $tags = self::getSelfAssessmentTags();
90 $tstr.=
"<" . $t .
">";
128 $not_supported =
array(
"img",
"p");
135 foreach ($st as
$s) {
136 if (!in_array($s, $not_supported)) {
migrateContentForLearningModule(ilAssSelfAssessmentMigrator $migrator)
Abstract basic class which is to be extended by the concrete assessment question type classes...
static _replaceMediaObjectImageSrc($a_text, $a_direction=0, $nic=IL_INST_ID)
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
Create styles array
The data for the language used.
static getInstance()
Singleton: get instance.
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.
static isHTML($a_text)
Checks if a given string contains HTML or not.