4require_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);
 
   90            $tstr.=
"<" . 
$t . 
">";
 
  128        $not_supported = array(
"img", 
"p");
 
  135        foreach ($st as 
$s) {
 
  136            if (!in_array(
$s, $not_supported)) {
 
An exception for terminatinating execution or to throw for unit testing.
Abstract basic class which is to be extended by the concrete assessment question type classes.
migrateContentForLearningModule(ilAssSelfAssessmentMigrator $migrator)
static getInstance()
Singleton: get instance.
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...
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.