62 $this->parsingActive =
false;
63 $this->characterDataBuffer = null;
64 $this->curQuestionId = null;
65 $this->curAssignment = null;
66 $this->curExpression = null;
91 $this->characterDataBuffer =
'';
96 $this->characterDataBuffer .= $characterData;
106 $this->curQuestionId = (
int) $curQuestionId;
136 xml_set_object($a_xml_parser, $this);
137 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
138 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
143 if ($tagName !=
'QuestionSkillAssignments' && !$this->
isParsingActive()) {
148 case 'QuestionSkillAssignments':
152 case 'TriggerQuestion':
156 case 'TriggeredSkill':
159 $assignment->setImportSkillBaseId((
int) $tagAttributes[
'BaseId']);
160 $assignment->setImportSkillTrefId((
int) $tagAttributes[
'TrefId']);
161 $assignment->initImportSolutionComparisonExpressionList();
165 case 'OriginalSkillPath':
166 case 'OriginalSkillTitle':
170 case 'EvalByQuestionResult':
175 case 'EvalByQuestionSolution':
179 case 'SolutionComparisonExpression':
181 $expression->setPoints((
int) $tagAttributes[
'Points']);
182 $expression->setOrderIndex((
int) $tagAttributes[
'Index']);
196 case 'QuestionSkillAssignments':
200 case 'TriggerQuestion':
204 case 'TriggeredSkill':
209 case 'OriginalSkillTitle':
214 case 'OriginalSkillPath':
219 case 'EvalByQuestionSolution':
220 case 'EvalByQuestionResult':
223 case 'SolutionComparisonExpression':
238 if ($charData !=
"\n") {
240 $charData = preg_replace(
"/\t+/",
" ", $charData);
__construct(?string $xmlFile)
handlerCharacterData($xmlParser, $charData)
appendToCharacterDataBuffer(string $characterData)
setCurAssignment(?ilAssQuestionSkillAssignmentImport $curAssignment)
resetCharacterDataBuffer()
setHandlers($a_xml_parser)
handlerEndTag($xmlParser, $tagName)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
handlerBeginTag($xmlParser, $tagName, $tagAttributes)
setCurQuestionId(?int $curQuestionId)
__construct(Container $dic, ilPlugin $plugin)
const EVAL_MODE_BY_QUESTION_SOLUTION
setParsingActive(bool $parsingActive)
const EVAL_MODE_BY_QUESTION_RESULT
setCurExpression(?ilAssQuestionSolutionComparisonExpressionImport $curExpression)