18 'assQuestion' => [
'PercentageResultExpression',
'EmptyAnswerExpression'],
19 'assSingleChoice' => [
'NumberOfResultExpression'],
20 'assMultipleChoice' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
21 'assErrorText' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
22 'assImagemapQuestion' => [
'NumberOfResultExpression',
'ExclusiveResultExpression'],
23 'assNumeric' => [
'NumericResultExpression'],
24 'assOrderingQuestion' => [
'OrderingResultExpression'],
25 'assOrderingHorizontal' => [
'OrderingResultExpression'],
26 'assMatchingQuestion' => [
'MatchingResultExpression'],
27 'assTextSubset' => [
'StringResultExpression'],
28 'assFormulaQuestion' => [
'NumericResultExpression'],
30 'StringResultExpression_1',
'StringResultExpression_2',
31 'NumberOfResultExpression',
'NumericResultExpression'
51 $this->questionOBJ =
null;
73 public function get() : \
ILIAS\
UI\Component\Modal\Modal
75 $this->pageTemplate->addCss(
'Modules/TestQuestionPool/templates/default/lac_legend.css');
83 return $this->uiFactory->modal()->lightbox([
84 $this->uiFactory->modal()->lightboxTextPage(
86 $this->lng->txt(
'qpl_skill_point_eval_by_solution_compare')
98 'tpl.qpl_logical_answer_compare_legend.html',
101 'Modules/TestQuestionPool'
111 'COMMON_ELEMENTS_HEADER',
112 $this->lng->txt(
'qpl_lac_legend_header_common')
116 $tpl->setCurrentBlock(
'common_elements');
117 $tpl->setVariable(
'CE_ELEMENT', $element);
118 $tpl->setVariable(
'CE_DESCRIPTION', $description);
119 $tpl->parseCurrentBlock();
129 'QUEST_SPECIFIC_ELEMENTS_HEADER',
130 $this->lng->txt(
'qpl_lac_legend_header_quest_specific')
134 $tpl->setCurrentBlock(
'quest_specific_elements');
135 $tpl->setVariable(
'QSE_ELEMENT', $expression);
136 $tpl->setVariable(
'QSE_DESCRIPTION', $this->lng->txt($description));
137 $tpl->setVariable(
'QSE_OPERATORS_TXT', $this->lng->txt(
'qpl_lac_legend_label_operators'));
138 $tpl->setVariable(
'QSE_OPERATORS', implode(
', ', $this->
getQuestionOBJ()->getOperators($expression)));
139 $tpl->parseCurrentBlock();
149 'QUEST_SPECIFIC_EXAMPLES_HEADER',
150 $this->lng->txt(
'lacex_example_header')
157 foreach ($questionTypes as $questionType) {
170 $langVar =
'lacex_' . $questionType .
'_' . $exampleCode;
172 return [$langVar .
'_e', $langVar .
'_d'];
182 $tpl->setCurrentBlock(
'quest_specific_examples');
183 $tpl->setVariable(
'QSEX_ELEMENT', $this->lng->txt($langVarE));
184 $tpl->setVariable(
'QSEX_DESCRIPTION', $this->lng->txt($langVarD));
185 $tpl->parseCurrentBlock();
195 $expressionTypes = [];
197 foreach ($this->
getQuestionOBJ()->getExpressionTypes() as $expressionType) {
198 $expressionTypes[$expressionType] = $availableExpressionTypes[$expressionType];
201 return $expressionTypes;
210 '&' => $this->lng->txt(
'qpl_lac_desc_logical_and'),
211 '|' => $this->lng->txt(
'qpl_lac_desc_logical_or'),
212 '!' => $this->lng->txt(
'qpl_lac_desc_negation'),
213 '()' => $this->lng->txt(
'qpl_lac_desc_brackets'),
216 'R' => $this->lng->txt(
'qpl_lac_desc_res_of_cur_quest'),
217 'R[m]' => $this->lng->txt(
'qpl_lac_desc_res_of_answ_m_of_cur_quest')
244 if (!isset($this->examplesByQuestionType[$questionType])) {
248 return $this->examplesByQuestionType[$questionType];
258 foreach ($examples as $exampleCode) {
An exception for terminatinating execution or to throw for unit testing.
setQuestionOBJ(iQuestionCondition $questionOBJ)
renderExample(ilTemplate $tpl, string $langVarE, string $langVarD)
getExpressionTypeExamplesByQuestionType(string $questionType)
renderQuestSpecificExamples(ilTemplate $tpl)
buildLangVarsByExampleCode(string $questionType, string $exampleCode)
renderCommonLegendPart(ilTemplate $tpl)
renderQuestSpecificLegendPart(ilTemplate $tpl)
getQuestionTypeSpecificExpressions()
renderExamples(ilTemplate $tpl, array $examples, string $questionType)
getAvailableExpressionTypes()
__construct(ilGlobalTemplateInterface $pageTemplate, ilLanguage $lng, \ILIAS\UI\Factory $uiFactory)
ilAssLacLegendGUI constructor.
special template class to simplify handling of ITX/PEAR
Class iQuestionCondition.
const PercentageResultExpression
const OrderingResultExpression
const MatchingResultExpression
const StringResultExpression
const NumericResultExpression
const EmptyAnswerExpression
const ExclusiveResultExpression
const NumberOfResultExpression
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Class ChatMainBarProvider \MainMenu\Provider.