Definition at line 8 of file class.ilAssLacLegendGUI.php.
◆ __construct()
◆ buildLangVarsByExampleCode()
ilAssLacLegendGUI::buildLangVarsByExampleCode |
( |
string |
$questionType, |
|
|
string |
$exampleCode |
|
) |
| |
|
private |
- Parameters
-
string | $questionType | |
string | $exampleCode | |
- Returns
- string[]
Definition at line 168 of file class.ilAssLacLegendGUI.php.
Referenced by renderExamples().
170 $langVar =
'lacex_' . $questionType .
'_' . $exampleCode;
172 return [$langVar .
'_e', $langVar .
'_d'];
◆ get()
ilAssLacLegendGUI::get |
( |
| ) |
|
- Returns
Definition at line 73 of file class.ilAssLacLegendGUI.php.
References $tpl, getTemplate(), renderCommonLegendPart(), renderQuestSpecificExamples(), and renderQuestSpecificLegendPart().
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')
This describes commonalities between the different modals.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
renderCommonLegendPart(ilTemplate $tpl)
renderQuestSpecificExamples(ilTemplate $tpl)
renderQuestSpecificLegendPart(ilTemplate $tpl)
◆ getAvailableExpressionTypes()
ilAssLacLegendGUI::getAvailableExpressionTypes |
( |
| ) |
|
|
private |
◆ getCommonElements()
ilAssLacLegendGUI::getCommonElements |
( |
| ) |
|
|
private |
- Returns
- array<string, string>
Definition at line 207 of file class.ilAssLacLegendGUI.php.
Referenced by renderCommonLegendPart().
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')
◆ getExpressionTypeExamplesByQuestionType()
ilAssLacLegendGUI::getExpressionTypeExamplesByQuestionType |
( |
string |
$questionType | ) |
|
|
private |
◆ getQuestionOBJ()
ilAssLacLegendGUI::getQuestionOBJ |
( |
| ) |
|
◆ getQuestionTypeSpecificExpressions()
ilAssLacLegendGUI::getQuestionTypeSpecificExpressions |
( |
| ) |
|
|
private |
◆ getTemplate()
ilAssLacLegendGUI::getTemplate |
( |
| ) |
|
|
protected |
◆ renderCommonLegendPart()
ilAssLacLegendGUI::renderCommonLegendPart |
( |
ilTemplate |
$tpl | ) |
|
|
private |
◆ renderExample()
ilAssLacLegendGUI::renderExample |
( |
ilTemplate |
$tpl, |
|
|
string |
$langVarE, |
|
|
string |
$langVarD |
|
) |
| |
|
private |
◆ renderExamples()
ilAssLacLegendGUI::renderExamples |
( |
ilTemplate |
$tpl, |
|
|
array |
$examples, |
|
|
string |
$questionType |
|
) |
| |
|
private |
◆ renderQuestSpecificExamples()
ilAssLacLegendGUI::renderQuestSpecificExamples |
( |
ilTemplate |
$tpl | ) |
|
|
private |
◆ renderQuestSpecificLegendPart()
ilAssLacLegendGUI::renderQuestSpecificLegendPart |
( |
ilTemplate |
$tpl | ) |
|
|
private |
- Parameters
-
Definition at line 126 of file class.ilAssLacLegendGUI.php.
References getQuestionOBJ(), getQuestionTypeSpecificExpressions(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Referenced by get().
129 'QUEST_SPECIFIC_ELEMENTS_HEADER',
130 $this->lng->txt(
'qpl_lac_legend_header_quest_specific')
136 $tpl->
setVariable(
'QSE_DESCRIPTION', $this->lng->txt($description));
137 $tpl->
setVariable(
'QSE_OPERATORS_TXT', $this->lng->txt(
'qpl_lac_legend_label_operators'));
getQuestionTypeSpecificExpressions()
setVariable($variable, $value='')
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
◆ setQuestionOBJ()
◆ $examplesByQuestionType
ilAssLacLegendGUI::$examplesByQuestionType |
|
private |
Initial value:= [
'assQuestion' => ['PercentageResultExpression', 'EmptyAnswerExpression']
Definition at line 17 of file class.ilAssLacLegendGUI.php.
◆ $lng
◆ $pageTemplate
ilAssLacLegendGUI::$pageTemplate |
|
protected |
◆ $questionOBJ
ilAssLacLegendGUI::$questionOBJ |
|
private |
◆ $uiFactory
ilAssLacLegendGUI::$uiFactory |
|
private |
The documentation for this class was generated from the following file: