Class for question imports. More...
Inheritance diagram for assQuestionImport:Public Member Functions | |
| assQuestionImport (&$a_object) | |
| assQuestionImport constructor | |
| fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping) | |
| Creates a question from a QTI file. | |
Data Fields | |
| $object | |
Class for question imports.
assQuestionImport is a basis class question imports
Definition at line 34 of file class.assQuestionImport.php.
| assQuestionImport::assQuestionImport | ( | &$ | a_object | ) |
assQuestionImport constructor
| object | $a_object The question object public |
Definition at line 51 of file class.assQuestionImport.php.
{
$this->object =& $a_object;
}
| assQuestionImport::fromXML | ( | &$ | item, | |
| $ | questionpool_id, | |||
| &$ | tst_id, | |||
| &$ | tst_object, | |||
| &$ | question_counter, | |||
| &$ | import_mapping | |||
| ) |
Creates a question from a QTI file.
Receives parameters from a QTI parser and creates a valid ILIAS question object
| object | $item The QTI item object | |
| integer | $questionpool_id The id of the parent questionpool | |
| integer | $tst_id The id of the parent test if the question is part of a test | |
| object | $tst_object A reference to the parent test object | |
| integer | $question_counter A reference to a question counter to count the questions of an imported question pool | |
| array | $import_mapping An array containing references to included ILIAS objects public |
Reimplemented in assClozeTestImport, assFlashAppImport, assImagemapQuestionImport, assJavaAppletImport, assMatchingQuestionImport, assNumericImport, assOrderingQuestionImport, assSingleChoiceImport, assTextQuestionImport, and assTextSubsetImport.
Definition at line 69 of file class.assQuestionImport.php.
{
}
| assQuestionImport::$object |
Definition at line 43 of file class.assQuestionImport.php.
1.7.1