Skip to content
Snippets Groups Projects
Commit b9b63608 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

A little cleanup

parent 5941000d
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
These scripts can no longer function with Hallgrim, since they rely on autoilias
which will become obsolete once hallgrim is feature complete. They are kept here
so their logic can be translated into proper scripts.
File moved
File moved
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "FREE";
$this->qTitle = "Freitext Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10;
}
function exe(){
$question = "Fragentext...";
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "m" => $ml);
}
}
?>
<?php
class autoILIASscript{{
function autoILIASscript(){{
$this->qType = "{type}";
$this->qTitle = "{title}";
$this->qAuthor = "{author}";
$this->qNumber = {number};
$this->qPoints = {points};
{isComment}$this->gapLength = {gapLength};
}}
function exe(){{
$question = "{question}";
$ml = "{solution}";
return array("q" => $question, "m" => $ml);
}}
}}
?>
<?php
class autoILIASscript{{
function autoILIASscript(){{
$this->qType = "{type}";
$this->qTitle = "{title}";
$this->qAuthor = "{author}";
$this->qNumber = {number};
$this->qPoints = {points};
{gapComment}$this->gapLength = {gapLength};
}}
function exe(){{
$question = "{question}";
$ml = "{solution}";
return array("q" => $question, "m" => $ml);
}}
}}
?>
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "MULTI";
$this->qTitle = "Mehrfach Auswahl Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10; // Gesamtpunktzahl = |Antwortmoeglichkeiten| * $this->qPoints
}
function exe(){
$question = "Fragentext...";
$answer = array(array("A", true), array("B", false), array("C", true));
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "a" => $answer, "m" => $ml);
}
}
?>
\ No newline at end of file
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "NUMERIC";
$this->qTitle = "Numerische Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10;
//$this->numericFormatstring = "";
}
function exe(){
$question = "Fragentext...";
$answer = 42;
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "a" => $answer, "m" => $ml);
}
}
?>
\ No newline at end of file
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "ORDER";
$this->qTitle = "Anordnungs Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10;
}
function exe(){
// <span style=\"font-size: x-small;\"><b>Hinweis: </b>GgF. m&uuml;ssen die Terme in der richtigen Reihenfolge durchnummeriert werden.</span>
$question = "Fragentext...";
$answer = array("A", "B", "C", "D");
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "a" => $answer, "m" => $ml);
}
}
?>
\ No newline at end of file
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "SELECT";
$this->qTitle = "Auswahll&uuml;cken Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10;
}
function exe(){
$question = "Fragentext mit L&uuml;cken zum Ausw&auml;hlen [select][i(2P)]richtig[/i][i(0P)]falsch[/i][/select]...";
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "m" => $ml);
}
}
?>
\ No newline at end of file
<?php
class autoILIASscript{
function autoILIASscript(){
$this->qType = "SINGLE";
$this->qTitle = "Auswahl Frage";
$this->qAuthor = "Vorname Name";
$this->qNumber = 100;
$this->qPoints = 10;
}
function exe(){
$question = "Fragentext...";
$answer = array(array("A", false), array("B", false), array("C", true));
$ml = "Musterl&ouml;sung...";
return array("q" => $question, "a" => $answer, "m" => $ml);
}
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment