33 'assQuestion' => [
'PercentageResultExpression',
'EmptyAnswerExpression'],
34 'assSingleChoice' => [
'NumberOfResultExpression'],
35 'assMultipleChoice' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
36 'assErrorText' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
37 'assImagemapQuestion' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
38 'assNumeric' => [
'NumericResultExpression'],
39 'assOrderingQuestion' => [
'OrderingResultExpression'],
40 'assOrderingHorizontal' => [
'OrderingResultExpression'],
41 'assMatchingQuestion' => [
'MatchingResultExpression'],
42 'assTextSubset' => [
'StringResultExpression'],
43 'assFormulaQuestion' => [
'NumericResultExpression'],
45 'StringResultExpression_1',
'StringResultExpression_2',
46 'NumberOfResultExpression',
'NumericResultExpression' 66 $this->questionOBJ = null;
87 $this->pageTemplate->addCss(
'Modules/TestQuestionPool/templates/default/lac_legend.css');
95 return $this->uiFactory->modal()->lightbox([
96 $this->uiFactory->modal()->lightboxTextPage(
98 $this->
lng->txt(
'qpl_skill_point_eval_by_solution_compare')
110 'tpl.qpl_logical_answer_compare_legend.html',
113 'Modules/TestQuestionPool' 123 'COMMON_ELEMENTS_HEADER',
124 $this->
lng->txt(
'qpl_lac_legend_header_common')
141 'QUEST_SPECIFIC_ELEMENTS_HEADER',
142 $this->
lng->txt(
'qpl_lac_legend_header_quest_specific')
148 $tpl->
setVariable(
'QSE_DESCRIPTION', $this->
lng->txt($description));
149 $tpl->
setVariable(
'QSE_OPERATORS_TXT', $this->
lng->txt(
'qpl_lac_legend_label_operators'));
161 'QUEST_SPECIFIC_EXAMPLES_HEADER',
162 $this->
lng->txt(
'lacex_example_header')
169 foreach ($questionTypes as $questionType) {
182 $langVar =
'lacex_' . $questionType .
'_' . $exampleCode;
184 return [$langVar .
'_e', $langVar .
'_d'];
196 $tpl->
setVariable(
'QSEX_DESCRIPTION', $this->
lng->txt($langVarD));
207 $expressionTypes = [];
209 foreach ($this->
getQuestionOBJ()->getExpressionTypes() as $expressionType) {
210 $expressionTypes[$expressionType] = $availableExpressionTypes[$expressionType];
213 return $expressionTypes;
222 '&' => $this->
lng->txt(
'qpl_lac_desc_logical_and'),
223 '|' => $this->
lng->txt(
'qpl_lac_desc_logical_or'),
224 '!' => $this->
lng->txt(
'qpl_lac_desc_negation'),
225 '()' => $this->
lng->txt(
'qpl_lac_desc_brackets'),
228 'R' => $this->
lng->txt(
'qpl_lac_desc_res_of_cur_quest'),
229 'R[m]' => $this->
lng->txt(
'qpl_lac_desc_res_of_answ_m_of_cur_quest')
256 if (!isset($this->examplesByQuestionType[$questionType])) {
260 return $this->examplesByQuestionType[$questionType];
270 foreach ($examples as $exampleCode) {
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
const PercentageResultExpression
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
renderExample(ilTemplate $tpl, string $langVarE, string $langVarD)
buildLangVarsByExampleCode(string $questionType, string $exampleCode)
const NumberOfResultExpression
const ExclusiveResultExpression
Abstract basic class which is to be extended by the concrete assessment question type classes...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
renderCommonLegendPart(ilTemplate $tpl)
const StringResultExpression
renderQuestSpecificExamples(ilTemplate $tpl)
getAvailableExpressionTypes()
setQuestionOBJ(assQuestion $questionOBJ)
setVariable($variable, $value='')
Sets a variable value.
getQuestionTypeSpecificExpressions()
const NumericResultExpression
__construct(ilGlobalTemplateInterface $pageTemplate, ilLanguage $lng, \ILIAS\UI\Factory $uiFactory)
ilAssLacLegendGUI constructor.
const MatchingResultExpression
const OrderingResultExpression
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
getExpressionTypeExamplesByQuestionType(string $questionType)
renderExamples(ilTemplate $tpl, array $examples, string $questionType)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
renderQuestSpecificLegendPart(ilTemplate $tpl)
const EmptyAnswerExpression