ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
isIgnoreItemsEnabled () | |
setIgnoreItemsEnabled ($ignoreItemsEnabled) | |
__construct ($a_xml_file, $a_mode=IL_MO_PARSE_QTI, $a_qpl_id=0, $a_import_idents="") | |
Constructor. More... | |
getQuestionSetType () | |
setQuestionSetType ($questionSetType) | |
setTestObject (&$a_tst_object) | |
setParserMode ($a_mode=IL_MO_PARSE_QTI) | |
setHandlers ($a_xml_parser) | |
set event handler should be overwritten by inherited class private More... | |
startParsing () | |
getParent ($a_xml_parser) | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element More... | |
handlerParseBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element parser More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element More... | |
handlerParseEndTag ($a_xml_parser, $a_name) | |
handler for end of element parser More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
handlerParseCharacterData ($a_xml_parser, $a_data) | |
handler for character data More... | |
handlerVerifyBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element verification More... | |
handlerVerifyEndTag ($a_xml_parser, $a_name) | |
handler for end of element verification More... | |
handlerVerifyCharacterData ($a_xml_parser, $a_data) | |
handler for character data verification More... | |
& | getFoundItems () |
getImportMapping () | |
get array of new created questions for import id More... | |
getQuestionIdMapping () | |
setXMLContent ($a_xml_content) | |
openXMLFile () | |
getNumImportedItems () | |
Public Member Functions inherited from ilSaxParser | |
__construct ($a_xml_file='', $throwException=false) | |
Constructor setup ILIAS global object public. More... | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array More... | |
createParser () | |
create parser More... | |
setOptions ($a_xml_parser) | |
set parser options More... | |
setHandlers ($a_xml_parser) | |
set event handler should be overwritten by inherited class private More... | |
openXMLFile () | |
open xml file More... | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file More... | |
freeParser ($a_xml_parser) | |
free xml parser handle More... | |
setThrowException ($throwException) | |
set error handling More... | |
Public Member Functions inherited from PEAR | |
__construct ($error_class=null) | |
Constructor. More... | |
_PEAR () | |
Destructor (the emulated type of...). More... | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. More... | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. More... | |
expectError ($code=' *') | |
This method is used to tell which errors you expect to get. More... | |
popExpect () | |
This method pops one element off the expected error codes stack. More... | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. More... | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. More... | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. More... | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. More... | |
popErrorHandling () | |
Pop the last error handler used. More... | |
loadExtension ($ext) | |
OS independant PHP extension load. More... | |
Protected Member Functions | |
fetchNumericVersionFromVersionDateString ($versionDateString) | |
fetchSourceNicFromItemIdent ($itemIdent) | |
cleanInvalidXmlChars ($xmlContent) | |
isMatImageAvailable () | |
virusDetected ($buffer) | |
Protected Member Functions inherited from ilSaxParser | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle More... | |
Protected Attributes | |
$numImportedItems = 0 | |
$prensentation_material | |
$in_prensentation_material = false | |
$ignoreItemsEnabled = false | |
$questionSetType = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from PEAR | |
static & | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
static | setErrorHandling ($mode=null, $options=null) |
Sets how errors generated by this object should be handled. More... | |
Definition at line 39 of file class.ilQTIParser.php.
ilQTIParser::__construct | ( | $a_xml_file, | |
$a_mode = IL_MO_PARSE_QTI , |
|||
$a_qpl_id = 0 , |
|||
$a_import_idents = "" |
|||
) |
Constructor.
string | $a_xml_file | xml file |
integer | $a_mode | Parser mode IL_MO_PARSE_QTI | IL_MO_VERIFY_QTI public |
Definition at line 146 of file class.ilQTIParser.php.
References $lng, array, and setParserMode().
|
protected |
Definition at line 1908 of file class.ilQTIParser.php.
References array.
Referenced by openXMLFile(), and setXMLContent().
|
protected |
Definition at line 1884 of file class.ilQTIParser.php.
Referenced by handlerParseEndTag().
|
protected |
Definition at line 1896 of file class.ilQTIParser.php.
Referenced by handlerParseBeginTag().
& ilQTIParser::getFoundItems | ( | ) |
ilQTIParser::getImportMapping | ( | ) |
get array of new created questions for import id
Definition at line 1838 of file class.ilQTIParser.php.
References $import_mapping, and array.
Referenced by getQuestionIdMapping().
ilQTIParser::getNumImportedItems | ( | ) |
ilQTIParser::getParent | ( | $a_xml_parser | ) |
Definition at line 262 of file class.ilQTIParser.php.
Referenced by handlerParseCharacterData(), and handlerParseEndTag().
ilQTIParser::getQuestionIdMapping | ( | ) |
Definition at line 1853 of file class.ilQTIParser.php.
References array, and getImportMapping().
ilQTIParser::getQuestionSetType | ( | ) |
ilQTIParser::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element
Definition at line 277 of file class.ilQTIParser.php.
References handlerParseBeginTag(), handlerVerifyBeginTag(), IL_MO_PARSE_QTI, and IL_MO_VERIFY_QTI.
ilQTIParser::handlerCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
handler for character data
Definition at line 1465 of file class.ilQTIParser.php.
References handlerParseCharacterData(), handlerVerifyCharacterData(), IL_MO_PARSE_QTI, and IL_MO_VERIFY_QTI.
ilQTIParser::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element
Definition at line 1072 of file class.ilQTIParser.php.
References handlerParseEndTag(), handlerVerifyEndTag(), IL_MO_PARSE_QTI, and IL_MO_VERIFY_QTI.
ilQTIParser::handlerParseBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element parser
Definition at line 293 of file class.ilQTIParser.php.
References array, fetchSourceNicFromItemIdent(), isIgnoreItemsEnabled(), RESPONSEVAR_EQUAL, RESPONSEVAR_GT, RESPONSEVAR_GTE, RESPONSEVAR_INSIDE, RESPONSEVAR_LT, RESPONSEVAR_LTE, RESPONSEVAR_SUBSET, RESPONSEVAR_SUBSTRING, RT_RESPONSE_GRP, RT_RESPONSE_LID, RT_RESPONSE_NUM, RT_RESPONSE_STR, and RT_RESPONSE_XY.
Referenced by handlerBeginTag().
ilQTIParser::handlerParseCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
handler for character data
Definition at line 1481 of file class.ilQTIParser.php.
References $characterbuffer, and getParent().
Referenced by handlerCharacterData().
ilQTIParser::handlerParseEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element parser
Definition at line 1088 of file class.ilQTIParser.php.
References $GLOBALS, $ilDB, $ilUser, assQuestion\_includeClass(), array, fetchNumericVersionFromVersionDateString(), getParent(), ilAssQuestionTypeList\isImportable(), isMatImageAvailable(), and virusDetected().
Referenced by handlerEndTag().
ilQTIParser::handlerVerifyBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element verification
Definition at line 1586 of file class.ilQTIParser.php.
References $title, array, QT_CLOZE, QT_IMAGEMAP, QT_MATCHING, QT_MULTIPLE_CHOICE_MR, QT_MULTIPLE_CHOICE_SR, QT_NUMERIC, QT_ORDERING, and QT_TEXT.
Referenced by handlerBeginTag().
ilQTIParser::handlerVerifyCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
handler for character data verification
Definition at line 1797 of file class.ilQTIParser.php.
Referenced by handlerCharacterData().
ilQTIParser::handlerVerifyEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element verification
Definition at line 1742 of file class.ilQTIParser.php.
References $verifyfieldentrytext, array, ilObjTest\QUESTION_SET_TYPE_FIXED, ilObjTest\QUESTION_SET_TYPE_RANDOM, and setQuestionSetType().
Referenced by handlerEndTag().
ilQTIParser::isIgnoreItemsEnabled | ( | ) |
Definition at line 123 of file class.ilQTIParser.php.
References $ignoreItemsEnabled.
Referenced by handlerParseBeginTag().
|
protected |
Definition at line 1952 of file class.ilQTIParser.php.
Referenced by handlerParseEndTag().
ilQTIParser::openXMLFile | ( | ) |
Definition at line 1875 of file class.ilQTIParser.php.
References cleanInvalidXmlChars().
ilQTIParser::setHandlers | ( | $a_xml_parser | ) |
set event handler should be overwritten by inherited class private
Definition at line 248 of file class.ilQTIParser.php.
ilQTIParser::setIgnoreItemsEnabled | ( | $ignoreItemsEnabled | ) |
boolean | $ignoreItemsEnabled |
Definition at line 131 of file class.ilQTIParser.php.
References $ignoreItemsEnabled.
ilQTIParser::setParserMode | ( | $a_mode = IL_MO_PARSE_QTI | ) |
Definition at line 229 of file class.ilQTIParser.php.
References array.
Referenced by __construct().
ilQTIParser::setQuestionSetType | ( | $questionSetType | ) |
null | $questionSetType |
Definition at line 215 of file class.ilQTIParser.php.
References $questionSetType.
Referenced by handlerVerifyEndTag().
ilQTIParser::setTestObject | ( | & | $a_tst_object | ) |
Definition at line 220 of file class.ilQTIParser.php.
ilQTIParser::setXMLContent | ( | $a_xml_content | ) |
Definition at line 1868 of file class.ilQTIParser.php.
References cleanInvalidXmlChars().
ilQTIParser::startParsing | ( | ) |
Definition at line 255 of file class.ilQTIParser.php.
|
protected |
Definition at line 1967 of file class.ilQTIParser.php.
References ilVirusScannerFactory\_getInstance().
Referenced by handlerParseEndTag().
ilQTIParser::$assessment |
Definition at line 82 of file class.ilQTIParser.php.
ilQTIParser::$assessmentcontrol |
Definition at line 83 of file class.ilQTIParser.php.
ilQTIParser::$assessments |
Definition at line 81 of file class.ilQTIParser.php.
ilQTIParser::$characterbuffer |
Definition at line 72 of file class.ilQTIParser.php.
Referenced by handlerParseCharacterData().
ilQTIParser::$conditionvar |
Definition at line 73 of file class.ilQTIParser.php.
ilQTIParser::$decvar |
Definition at line 62 of file class.ilQTIParser.php.
ilQTIParser::$depth |
Definition at line 46 of file class.ilQTIParser.php.
ilQTIParser::$displayfeedback |
Definition at line 65 of file class.ilQTIParser.php.
ilQTIParser::$do_nothing |
Definition at line 79 of file class.ilQTIParser.php.
ilQTIParser::$flow |
Definition at line 68 of file class.ilQTIParser.php.
ilQTIParser::$flow_mat |
Definition at line 67 of file class.ilQTIParser.php.
ilQTIParser::$founditems = array() |
Definition at line 92 of file class.ilQTIParser.php.
Referenced by getFoundItems().
ilQTIParser::$gap_index |
Definition at line 80 of file class.ilQTIParser.php.
ilQTIParser::$hasRootElement |
Definition at line 42 of file class.ilQTIParser.php.
|
protected |
Definition at line 118 of file class.ilQTIParser.php.
Referenced by isIgnoreItemsEnabled(), and setIgnoreItemsEnabled().
ilQTIParser::$import_idents |
Definition at line 75 of file class.ilQTIParser.php.
ilQTIParser::$import_mapping |
Definition at line 87 of file class.ilQTIParser.php.
Referenced by getImportMapping().
ilQTIParser::$in_assessment = FALSE |
Definition at line 85 of file class.ilQTIParser.php.
ilQTIParser::$in_itemmetadata |
Definition at line 89 of file class.ilQTIParser.php.
ilQTIParser::$in_objectives = FALSE |
Definition at line 90 of file class.ilQTIParser.php.
|
protected |
Definition at line 113 of file class.ilQTIParser.php.
ilQTIParser::$in_presentation |
Definition at line 48 of file class.ilQTIParser.php.
ilQTIParser::$in_response |
Definition at line 49 of file class.ilQTIParser.php.
ilQTIParser::$item |
Definition at line 45 of file class.ilQTIParser.php.
ilQTIParser::$itemfeedback |
Definition at line 66 of file class.ilQTIParser.php.
ilQTIParser::$items |
Definition at line 44 of file class.ilQTIParser.php.
ilQTIParser::$lng |
Definition at line 41 of file class.ilQTIParser.php.
Referenced by __construct().
ilQTIParser::$material |
Definition at line 52 of file class.ilQTIParser.php.
ilQTIParser::$matimage |
Definition at line 57 of file class.ilQTIParser.php.
ilQTIParser::$mattext |
Definition at line 70 of file class.ilQTIParser.php.
|
protected |
Definition at line 104 of file class.ilQTIParser.php.
Referenced by getNumImportedItems().
ilQTIParser::$objectives |
Definition at line 84 of file class.ilQTIParser.php.
ilQTIParser::$outcomes |
Definition at line 61 of file class.ilQTIParser.php.
ilQTIParser::$parser_mode |
Definition at line 74 of file class.ilQTIParser.php.
ilQTIParser::$path |
Definition at line 43 of file class.ilQTIParser.php.
|
protected |
Definition at line 109 of file class.ilQTIParser.php.
ilQTIParser::$presentation |
Definition at line 69 of file class.ilQTIParser.php.
ilQTIParser::$qpl_id |
Definition at line 76 of file class.ilQTIParser.php.
ilQTIParser::$qti_element |
Definition at line 47 of file class.ilQTIParser.php.
ilQTIParser::$question_counter = 1 |
Definition at line 88 of file class.ilQTIParser.php.
|
protected |
Definition at line 136 of file class.ilQTIParser.php.
Referenced by getQuestionSetType(), and setQuestionSetType().
ilQTIParser::$render_type |
Definition at line 50 of file class.ilQTIParser.php.
ilQTIParser::$respcondition |
Definition at line 63 of file class.ilQTIParser.php.
ilQTIParser::$response |
Definition at line 59 of file class.ilQTIParser.php.
ilQTIParser::$response_label |
Definition at line 51 of file class.ilQTIParser.php.
ilQTIParser::$resprocessing |
Definition at line 60 of file class.ilQTIParser.php.
ilQTIParser::$sametag |
Definition at line 71 of file class.ilQTIParser.php.
ilQTIParser::$section |
Definition at line 86 of file class.ilQTIParser.php.
ilQTIParser::$setvar |
Definition at line 64 of file class.ilQTIParser.php.
ilQTIParser::$tst_id |
Definition at line 77 of file class.ilQTIParser.php.
ilQTIParser::$tst_object |
Definition at line 78 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldentry = 0 |
Definition at line 98 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldentrytext = "" |
Definition at line 99 of file class.ilQTIParser.php.
Referenced by handlerVerifyEndTag().
ilQTIParser::$verifyfieldlabel = 0 |
Definition at line 96 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldlabeltext = "" |
Definition at line 97 of file class.ilQTIParser.php.
ilQTIParser::$verifymetadatafield = 0 |
Definition at line 95 of file class.ilQTIParser.php.
ilQTIParser::$verifyqticomment = 0 |
Definition at line 94 of file class.ilQTIParser.php.
ilQTIParser::$verifyroot = false |
Definition at line 93 of file class.ilQTIParser.php.