ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
ilQTIParser ($a_xml_file, $a_mode=IL_MO_PARSE_QTI, $a_qpl_id=0, $a_import_idents="") | |
Constructor. | |
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 | |
startParsing () | |
stores xml data in array | |
getParent ($a_xml_parser) | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element | |
handlerParseBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element parser | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element | |
handlerParseEndTag ($a_xml_parser, $a_name) | |
handler for end of element parser | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data | |
handlerParseCharacterData ($a_xml_parser, $a_data) | |
handler for character data | |
handlerVerifyBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element verification | |
handlerVerifyEndTag ($a_xml_parser, $a_name) | |
handler for end of element verification | |
handlerVerifyCharacterData ($a_xml_parser, $a_data) | |
handler for character data verification | |
& | getFoundItems () |
getImportMapping () | |
get array of new created questions for import id | |
Public Member Functions inherited from ilSaxParser | |
ilSaxParser ($a_xml_file= '', $throwException=false) | |
Constructor setup ILIAS global object public. | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
createParser () | |
create parser | |
setOptions ($a_xml_parser) | |
set parser options | |
openXMLFile () | |
open xml file | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file | |
freeParser ($a_xml_parser) | |
free xml parser handle | |
setThrowException ($throwException) | |
set error handling | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | 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. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | 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. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
Additional Inherited Members | |
Protected Member Functions inherited from ilSaxParser | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle |
Definition at line 38 of file class.ilQTIParser.php.
& ilQTIParser::getFoundItems | ( | ) |
Definition at line 1641 of file class.ilQTIParser.php.
References $founditems.
ilQTIParser::getImportMapping | ( | ) |
get array of new created questions for import id
Definition at line 1650 of file class.ilQTIParser.php.
References $import_mapping.
ilQTIParser::getParent | ( | $a_xml_parser | ) |
Definition at line 203 of file class.ilQTIParser.php.
Referenced by handlerParseCharacterData(), and handlerParseEndTag().
ilQTIParser::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element
Definition at line 218 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 1338 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 991 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 234 of file class.ilQTIParser.php.
References 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 1354 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 1007 of file class.ilQTIParser.php.
References $flow_mat, $ilDB, $presentation, assQuestion\_includeClass(), and getParent().
Referenced by handlerEndTag().
ilQTIParser::handlerVerifyBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element verification
Definition at line 1459 of file class.ilQTIParser.php.
References $title, 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 1619 of file class.ilQTIParser.php.
Referenced by handlerCharacterData().
ilQTIParser::handlerVerifyEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element verification
Definition at line 1592 of file class.ilQTIParser.php.
References $verifyfieldentrytext.
Referenced by handlerEndTag().
ilQTIParser::ilQTIParser | ( | $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 103 of file class.ilQTIParser.php.
References $lng, ilSaxParser\ilSaxParser(), and setParserMode().
ilQTIParser::setHandlers | ( | $a_xml_parser | ) |
set event handler should be overwritten by inherited class private
Reimplemented from ilSaxParser.
Definition at line 189 of file class.ilQTIParser.php.
ilQTIParser::setParserMode | ( | $a_mode = IL_MO_PARSE_QTI | ) |
Definition at line 170 of file class.ilQTIParser.php.
Referenced by ilQTIParser().
ilQTIParser::setTestObject | ( | & | $a_tst_object | ) |
Definition at line 161 of file class.ilQTIParser.php.
ilQTIParser::startParsing | ( | ) |
stores xml data in array
private
ilSaxParserException | or ILIAS Error |
Reimplemented from ilSaxParser.
Definition at line 196 of file class.ilQTIParser.php.
ilQTIParser::$assessment |
Definition at line 76 of file class.ilQTIParser.php.
ilQTIParser::$assessmentcontrol |
Definition at line 77 of file class.ilQTIParser.php.
ilQTIParser::$assessments |
Definition at line 75 of file class.ilQTIParser.php.
ilQTIParser::$characterbuffer |
Definition at line 66 of file class.ilQTIParser.php.
Referenced by handlerParseCharacterData().
ilQTIParser::$conditionvar |
Definition at line 67 of file class.ilQTIParser.php.
ilQTIParser::$decvar |
Definition at line 56 of file class.ilQTIParser.php.
ilQTIParser::$depth |
Definition at line 45 of file class.ilQTIParser.php.
ilQTIParser::$displayfeedback |
Definition at line 59 of file class.ilQTIParser.php.
ilQTIParser::$do_nothing |
Definition at line 73 of file class.ilQTIParser.php.
ilQTIParser::$flow |
Definition at line 62 of file class.ilQTIParser.php.
ilQTIParser::$flow_mat |
Definition at line 61 of file class.ilQTIParser.php.
Referenced by handlerParseEndTag().
ilQTIParser::$founditems = array() |
Definition at line 86 of file class.ilQTIParser.php.
Referenced by getFoundItems().
ilQTIParser::$gap_index |
Definition at line 74 of file class.ilQTIParser.php.
ilQTIParser::$hasRootElement |
Definition at line 41 of file class.ilQTIParser.php.
ilQTIParser::$import_idents |
Definition at line 69 of file class.ilQTIParser.php.
ilQTIParser::$import_mapping |
Definition at line 81 of file class.ilQTIParser.php.
Referenced by getImportMapping().
ilQTIParser::$in_assessment = FALSE |
Definition at line 79 of file class.ilQTIParser.php.
ilQTIParser::$in_itemmetadata |
Definition at line 83 of file class.ilQTIParser.php.
ilQTIParser::$in_objectives = FALSE |
Definition at line 84 of file class.ilQTIParser.php.
ilQTIParser::$in_presentation |
Definition at line 47 of file class.ilQTIParser.php.
ilQTIParser::$in_response |
Definition at line 48 of file class.ilQTIParser.php.
ilQTIParser::$item |
Definition at line 44 of file class.ilQTIParser.php.
ilQTIParser::$itemfeedback |
Definition at line 60 of file class.ilQTIParser.php.
ilQTIParser::$items |
Definition at line 43 of file class.ilQTIParser.php.
ilQTIParser::$lng |
Definition at line 40 of file class.ilQTIParser.php.
Referenced by ilQTIParser().
ilQTIParser::$material |
Definition at line 51 of file class.ilQTIParser.php.
ilQTIParser::$matimage |
Definition at line 52 of file class.ilQTIParser.php.
ilQTIParser::$mattext |
Definition at line 64 of file class.ilQTIParser.php.
ilQTIParser::$objectives |
Definition at line 78 of file class.ilQTIParser.php.
ilQTIParser::$outcomes |
Definition at line 55 of file class.ilQTIParser.php.
ilQTIParser::$parser_mode |
Definition at line 68 of file class.ilQTIParser.php.
ilQTIParser::$path |
Definition at line 42 of file class.ilQTIParser.php.
ilQTIParser::$presentation |
Definition at line 63 of file class.ilQTIParser.php.
Referenced by handlerParseEndTag().
ilQTIParser::$qpl_id |
Definition at line 70 of file class.ilQTIParser.php.
ilQTIParser::$qti_element |
Definition at line 46 of file class.ilQTIParser.php.
ilQTIParser::$question_counter = 1 |
Definition at line 82 of file class.ilQTIParser.php.
ilQTIParser::$render_type |
Definition at line 49 of file class.ilQTIParser.php.
ilQTIParser::$respcondition |
Definition at line 57 of file class.ilQTIParser.php.
ilQTIParser::$response |
Definition at line 53 of file class.ilQTIParser.php.
ilQTIParser::$response_label |
Definition at line 50 of file class.ilQTIParser.php.
ilQTIParser::$resprocessing |
Definition at line 54 of file class.ilQTIParser.php.
ilQTIParser::$sametag |
Definition at line 65 of file class.ilQTIParser.php.
ilQTIParser::$section |
Definition at line 80 of file class.ilQTIParser.php.
ilQTIParser::$setvar |
Definition at line 58 of file class.ilQTIParser.php.
ilQTIParser::$tst_id |
Definition at line 71 of file class.ilQTIParser.php.
ilQTIParser::$tst_object |
Definition at line 72 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldentry = 0 |
Definition at line 92 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldentrytext = "" |
Definition at line 93 of file class.ilQTIParser.php.
Referenced by handlerVerifyEndTag().
ilQTIParser::$verifyfieldlabel = 0 |
Definition at line 90 of file class.ilQTIParser.php.
ilQTIParser::$verifyfieldlabeltext = "" |
Definition at line 91 of file class.ilQTIParser.php.
ilQTIParser::$verifymetadatafield = 0 |
Definition at line 89 of file class.ilQTIParser.php.
ilQTIParser::$verifyqticomment = 0 |
Definition at line 88 of file class.ilQTIParser.php.
ilQTIParser::$verifyroot = false |
Definition at line 87 of file class.ilQTIParser.php.