ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilTestQuestionNavigationGUI Class Reference
+ Collaboration diagram for ilTestQuestionNavigationGUI:

Public Member Functions

 __construct (ilLanguage $lng)
 
 getEditSolutionCommand ()
 
 setEditSolutionCommand ($editSolutionCommand)
 
 isQuestionWorkedThrough ()
 
 setQuestionWorkedThrough ($questionWorkedThrough)
 
 getSubmitSolutionCommand ()
 
 setSubmitSolutionCommand ($submitSolutionCommand)
 
 isDiscardSolutionButtonEnabled ()
 
 setDiscardSolutionButtonEnabled ($discardSolutionButtonEnabled)
 
 getSkipQuestionLinkTarget ()
 
 setSkipQuestionLinkTarget ($skipQuestionLinkTarget)
 
 getInstantFeedbackCommand ()
 
 setInstantFeedbackCommand ($instantFeedbackCommand)
 
 isAnswerFreezingEnabled ()
 
 isForceInstantResponseEnabled ()
 
 setForceInstantResponseEnabled ($forceInstantResponseEnabled)
 
 setAnswerFreezingEnabled ($answerFreezingEnabled)
 
 getRequestHintCommand ()
 
 setRequestHintCommand ($requestHintCommand)
 
 getShowHintsCommand ()
 
 setShowHintsCommand ($showHintsCommand)
 
 hintRequestsExist ()
 
 setHintRequestsExist ($hintRequestsExist)
 
 getQuestionMarkCommand ()
 
 setQuestionMarkCommand ($questionMarkCommand)
 
 isQuestionMarked ()
 
 setQuestionMarked ($questionMarked)
 
 isAnythingRendered ()
 
 setAnythingRendered ()
 
 isCharSelectorEnabled ()
 
 setCharSelectorEnabled ($charSelectorEnabled)
 
 getHTML ()
 

Data Fields

const CSS_CLASS_SUBMIT_BUTTONS = 'ilc_qsubmit_Submit'
 

Protected Attributes

 $lng
 

Private Member Functions

 getEditSolutionButtonLabel ()
 
 getSubmitSolutionButtonLabel ()
 
 getCheckButtonLabel ()
 
 getRequestHintButtonLabel ()
 
 getQuestionMarkIconLabel ()
 
 getQuestionMarkIconSource ()
 
 getTemplate ()
 
 parseNavigation (ilTemplate $tpl)
 
 parseButtonsBlock (ilTemplate $tpl)
 
 renderButtonInstance (ilTemplate $tpl, $button)
 
 renderSubmitButton (ilTemplate $tpl, $command, $label, $primary=false)
 
 renderLinkButton (ilTemplate $tpl, $href, $label)
 
 renderJsLinkedButton (ilTemplate $tpl, $htmlId, $label, $cssClass)
 
 renderIcon (ilTemplate $tpl, $command, $iconSrc, $label, $cssClass)
 

Private Attributes

 $editSolutionCommand = ''
 
 $questionWorkedThrough = false
 
 $submitSolutionCommand = ''
 
 $discardSolutionButtonEnabled = false
 
 $skipQuestionLinkTarget = ''
 
 $instantFeedbackCommand = ''
 
 $answerFreezingEnabled = false
 
 $forceInstantResponseEnabled = false
 
 $requestHintCommand = ''
 
 $showHintsCommand = ''
 
 $hintRequestsExist = false
 
 $questionMarkCommand = ''
 
 $questionMarked = false
 
 $charSelectorEnabled = false
 
 $anythingRendered = false
 

Detailed Description

Definition at line 11 of file class.ilTestQuestionNavigationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionNavigationGUI::__construct ( ilLanguage  $lng)
Parameters
ilLanguage$lng

Definition at line 98 of file class.ilTestQuestionNavigationGUI.php.

References $lng.

99  {
100  $this->lng = $lng;
101  }

Member Function Documentation

◆ getCheckButtonLabel()

ilTestQuestionNavigationGUI::getCheckButtonLabel ( )
private

Definition at line 438 of file class.ilTestQuestionNavigationGUI.php.

References isAnswerFreezingEnabled().

Referenced by getHTML().

439  {
440  if( $this->isAnswerFreezingEnabled() )
441  {
442  return 'submit_and_check';
443  }
444 
445  return 'check';
446  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionButtonLabel()

ilTestQuestionNavigationGUI::getEditSolutionButtonLabel ( )
private

Definition at line 418 of file class.ilTestQuestionNavigationGUI.php.

References isQuestionWorkedThrough().

Referenced by getHTML().

419  {
420  if( $this->isQuestionWorkedThrough() )
421  {
422  return 'edit_answer';
423  }
424 
425  return 'answer_question';
426  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionCommand()

ilTestQuestionNavigationGUI::getEditSolutionCommand ( )
Returns
string

Definition at line 106 of file class.ilTestQuestionNavigationGUI.php.

References $editSolutionCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilTestQuestionNavigationGUI::getHTML ( )
Returns
string

Definition at line 346 of file class.ilTestQuestionNavigationGUI.php.

References $tpl, getCheckButtonLabel(), getEditSolutionButtonLabel(), getEditSolutionCommand(), getInstantFeedbackCommand(), getQuestionMarkCommand(), getQuestionMarkIconLabel(), getQuestionMarkIconSource(), getRequestHintButtonLabel(), getRequestHintCommand(), getShowHintsCommand(), getSkipQuestionLinkTarget(), getSubmitSolutionButtonLabel(), getSubmitSolutionCommand(), getTemplate(), isAnythingRendered(), isCharSelectorEnabled(), isDiscardSolutionButtonEnabled(), isForceInstantResponseEnabled(), parseNavigation(), renderIcon(), renderJsLinkedButton(), renderLinkButton(), and renderSubmitButton().

347  {
348  $tpl = $this->getTemplate();
349 
350  if( $this->getEditSolutionCommand() )
351  {
352  $this->renderSubmitButton(
354  );
355  }
356 
357  if( $this->getSubmitSolutionCommand() )
358  {
359  $this->renderSubmitButton(
361  );
362  }
363 
364  if( $this->isDiscardSolutionButtonEnabled() )
365  {
366  $this->renderJsLinkedButton($tpl, 'tst_discard_answer_button', 'discard_answer', '');
367  }
368 
369  if( $this->getSkipQuestionLinkTarget() )
370  {
371  $this->renderLinkButton($tpl, $this->getSkipQuestionLinkTarget(), 'skip_question');
372  }
373 
374  if( $this->getInstantFeedbackCommand() && !$this->isForceInstantResponseEnabled() )
375  {
376  $this->renderSubmitButton(
378  );
379  }
380 
381  if( $this->getRequestHintCommand() )
382  {
383  $this->renderSubmitButton(
385  );
386  }
387 
388  if( $this->getShowHintsCommand() )
389  {
390  $this->renderSubmitButton(
391  $tpl, $this->getShowHintsCommand(), 'button_show_requested_question_hints'
392  );
393  }
394 
395  if( $this->getQuestionMarkCommand() )
396  {
397  $this->renderIcon(
399  $this->getQuestionMarkIconLabel(), 'ilTstMarkQuestionButton'
400  );
401  }
402 
403  if( $this->isCharSelectorEnabled() )
404  {
405  $this->renderJsLinkedButton($tpl,
406  'charselectorbutton', 'char_selector_btn_label', 'ilCharSelectorToggle'
407  );
408  }
409 
410  if( $this->isAnythingRendered() )
411  {
412  $this->parseNavigation($tpl);
413  }
414 
415  return $tpl->get();
416  }
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)
renderIcon(ilTemplate $tpl, $command, $iconSrc, $label, $cssClass)
global $tpl
Definition: ilias.php:8
renderJsLinkedButton(ilTemplate $tpl, $htmlId, $label, $cssClass)
renderLinkButton(ilTemplate $tpl, $href, $label)
+ Here is the call graph for this function:

◆ getInstantFeedbackCommand()

ilTestQuestionNavigationGUI::getInstantFeedbackCommand ( )
Returns
string

Definition at line 186 of file class.ilTestQuestionNavigationGUI.php.

References $instantFeedbackCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getQuestionMarkCommand()

ilTestQuestionNavigationGUI::getQuestionMarkCommand ( )
Returns
string

Definition at line 282 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarkCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getQuestionMarkIconLabel()

ilTestQuestionNavigationGUI::getQuestionMarkIconLabel ( )
private

Definition at line 458 of file class.ilTestQuestionNavigationGUI.php.

References isQuestionMarked().

Referenced by getHTML().

459  {
460  if( $this->isQuestionMarked() )
461  {
462  return $this->lng->txt('tst_remove_mark');
463  }
464 
465  return $this->lng->txt('tst_question_mark');
466  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkIconSource()

ilTestQuestionNavigationGUI::getQuestionMarkIconSource ( )
private

Definition at line 468 of file class.ilTestQuestionNavigationGUI.php.

References ilUtil\getImagePath(), and isQuestionMarked().

Referenced by getHTML().

469  {
470  if( $this->isQuestionMarked() )
471  {
472  return ilUtil::getImagePath('marked.svg');
473  }
474 
475  return ilUtil::getImagePath('marked_.svg');
476  }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestHintButtonLabel()

ilTestQuestionNavigationGUI::getRequestHintButtonLabel ( )
private

Definition at line 448 of file class.ilTestQuestionNavigationGUI.php.

References hintRequestsExist().

Referenced by getHTML().

449  {
450  if( $this->hintRequestsExist() )
451  {
452  return 'button_request_next_question_hint';
453  }
454 
455  return 'button_request_question_hint';
456  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestHintCommand()

ilTestQuestionNavigationGUI::getRequestHintCommand ( )
Returns
string

Definition at line 234 of file class.ilTestQuestionNavigationGUI.php.

References $requestHintCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getShowHintsCommand()

ilTestQuestionNavigationGUI::getShowHintsCommand ( )
Returns
string

Definition at line 250 of file class.ilTestQuestionNavigationGUI.php.

References $showHintsCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getSkipQuestionLinkTarget()

ilTestQuestionNavigationGUI::getSkipQuestionLinkTarget ( )
Returns
string

Definition at line 170 of file class.ilTestQuestionNavigationGUI.php.

References $skipQuestionLinkTarget.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getSubmitSolutionButtonLabel()

ilTestQuestionNavigationGUI::getSubmitSolutionButtonLabel ( )
private

Definition at line 428 of file class.ilTestQuestionNavigationGUI.php.

References isForceInstantResponseEnabled().

Referenced by getHTML().

429  {
430  if( $this->isForceInstantResponseEnabled() )
431  {
432  return 'submit_and_check';
433  }
434 
435  return 'submit_answer';
436  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSubmitSolutionCommand()

ilTestQuestionNavigationGUI::getSubmitSolutionCommand ( )
Returns
string

Definition at line 138 of file class.ilTestQuestionNavigationGUI.php.

References $submitSolutionCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getTemplate()

ilTestQuestionNavigationGUI::getTemplate ( )
private
Returns
ilTemplate

Definition at line 481 of file class.ilTestQuestionNavigationGUI.php.

Referenced by getHTML().

482  {
483  return new ilTemplate(
484  'tpl.tst_question_navigation.html', true, true, 'Modules/Test'
485  );
486  }
special template class to simplify handling of ITX/PEAR
+ Here is the caller graph for this function:

◆ hintRequestsExist()

ilTestQuestionNavigationGUI::hintRequestsExist ( )
Returns
boolean

Definition at line 266 of file class.ilTestQuestionNavigationGUI.php.

References $hintRequestsExist.

Referenced by getRequestHintButtonLabel(), and setHintRequestsExist().

+ Here is the caller graph for this function:

◆ isAnswerFreezingEnabled()

ilTestQuestionNavigationGUI::isAnswerFreezingEnabled ( )
Returns
boolean

Definition at line 202 of file class.ilTestQuestionNavigationGUI.php.

References $answerFreezingEnabled.

Referenced by getCheckButtonLabel().

+ Here is the caller graph for this function:

◆ isAnythingRendered()

ilTestQuestionNavigationGUI::isAnythingRendered ( )
Returns
boolean

Definition at line 314 of file class.ilTestQuestionNavigationGUI.php.

References $anythingRendered.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ isCharSelectorEnabled()

ilTestQuestionNavigationGUI::isCharSelectorEnabled ( )
Returns
boolean

Definition at line 330 of file class.ilTestQuestionNavigationGUI.php.

References $charSelectorEnabled.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ isDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUI::isDiscardSolutionButtonEnabled ( )
Returns
bool

Definition at line 154 of file class.ilTestQuestionNavigationGUI.php.

References $discardSolutionButtonEnabled.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ isForceInstantResponseEnabled()

ilTestQuestionNavigationGUI::isForceInstantResponseEnabled ( )
Returns
boolean

Definition at line 210 of file class.ilTestQuestionNavigationGUI.php.

References $forceInstantResponseEnabled.

Referenced by getHTML(), and getSubmitSolutionButtonLabel().

+ Here is the caller graph for this function:

◆ isQuestionMarked()

ilTestQuestionNavigationGUI::isQuestionMarked ( )
Returns
boolean

Definition at line 298 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarked.

Referenced by getQuestionMarkIconLabel(), and getQuestionMarkIconSource().

+ Here is the caller graph for this function:

◆ isQuestionWorkedThrough()

ilTestQuestionNavigationGUI::isQuestionWorkedThrough ( )
Returns
boolean

Definition at line 122 of file class.ilTestQuestionNavigationGUI.php.

References $questionWorkedThrough.

Referenced by getEditSolutionButtonLabel().

+ Here is the caller graph for this function:

◆ parseButtonsBlock()

ilTestQuestionNavigationGUI::parseButtonsBlock ( ilTemplate  $tpl)
private
Parameters
ilTemplate$tpl

Definition at line 500 of file class.ilTestQuestionNavigationGUI.php.

References ilTemplate\parseCurrentBlock(), and ilTemplate\setCurrentBlock().

Referenced by renderButtonInstance(), and renderIcon().

501  {
502  $tpl->setCurrentBlock('buttons');
503  $tpl->parseCurrentBlock();
504  }
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseNavigation()

ilTestQuestionNavigationGUI::parseNavigation ( ilTemplate  $tpl)
private
Parameters
ilTemplate$tpl

Definition at line 491 of file class.ilTestQuestionNavigationGUI.php.

References ilTemplate\parseCurrentBlock(), and ilTemplate\setCurrentBlock().

Referenced by getHTML().

492  {
493  $tpl->setCurrentBlock('question_related_navigation');
494  $tpl->parseCurrentBlock();
495  }
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderButtonInstance()

ilTestQuestionNavigationGUI::renderButtonInstance ( ilTemplate  $tpl,
  $button 
)
private
Parameters
ilTemplate$tpl
$button

Definition at line 510 of file class.ilTestQuestionNavigationGUI.php.

References parseButtonsBlock(), ilTemplate\parseCurrentBlock(), setAnythingRendered(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

Referenced by renderJsLinkedButton(), renderLinkButton(), and renderSubmitButton().

511  {
512  $tpl->setCurrentBlock("button_instance");
513  $tpl->setVariable("BUTTON_INSTANCE", $button->render());
514  $tpl->parseCurrentBlock();
515 
516  $this->parseButtonsBlock($tpl);
517  $this->setAnythingRendered();
518  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderIcon()

ilTestQuestionNavigationGUI::renderIcon ( ilTemplate  $tpl,
  $command,
  $iconSrc,
  $label,
  $cssClass 
)
private
Parameters
ilTemplate$tpl
$command
$iconSrc
$label
$cssClass

Definition at line 575 of file class.ilTestQuestionNavigationGUI.php.

References parseButtonsBlock(), ilTemplate\parseCurrentBlock(), setAnythingRendered(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

Referenced by getHTML().

576  {
577  $tpl->setCurrentBlock("submit_icon");
578  $tpl->setVariable("SUBMIT_ICON_CMD", $command);
579  $tpl->setVariable("SUBMIT_ICON_SRC", $iconSrc);
580  $tpl->setVariable("SUBMIT_ICON_TEXT", $label);
581  $tpl->setVariable("SUBMIT_ICON_CLASS", $cssClass);
582  $tpl->parseCurrentBlock();
583 
584  $this->parseButtonsBlock($tpl);
585  $this->setAnythingRendered();
586  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderJsLinkedButton()

ilTestQuestionNavigationGUI::renderJsLinkedButton ( ilTemplate  $tpl,
  $htmlId,
  $label,
  $cssClass 
)
private
Parameters
ilTemplate$tpl
$htmlId
$label
$cssClass

Definition at line 558 of file class.ilTestQuestionNavigationGUI.php.

References ilLinkButton\getInstance(), and renderButtonInstance().

Referenced by getHTML().

559  {
560  $button = ilLinkButton::getInstance();
561  $button->setId($htmlId);
562  $button->addCSSClass($cssClass);
563  $button->setCaption($label);
564 
565  $this->renderButtonInstance($tpl, $button);
566  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderLinkButton()

ilTestQuestionNavigationGUI::renderLinkButton ( ilTemplate  $tpl,
  $href,
  $label 
)
private
Parameters
ilTemplate$tpl
$htmlId
$label
$cssClass

Definition at line 543 of file class.ilTestQuestionNavigationGUI.php.

References ilLinkButton\getInstance(), and renderButtonInstance().

Referenced by getHTML().

544  {
545  $button = ilLinkButton::getInstance();
546  $button->setUrl($href);
547  $button->setCaption($label);
548 
549  $this->renderButtonInstance($tpl, $button);
550  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderSubmitButton()

ilTestQuestionNavigationGUI::renderSubmitButton ( ilTemplate  $tpl,
  $command,
  $label,
  $primary = false 
)
private
Parameters
ilTemplate$tpl
$command
$label
bool | false$primary

Definition at line 526 of file class.ilTestQuestionNavigationGUI.php.

References ilSubmitButton\getInstance(), and renderButtonInstance().

Referenced by getHTML().

527  {
528  $button = ilSubmitButton::getInstance();
529  $button->setCommand($command);
530  $button->setCaption($label);
531  $button->setPrimary($primary);
532  $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
533 
534  $this->renderButtonInstance($tpl, $button);
535  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAnswerFreezingEnabled()

ilTestQuestionNavigationGUI::setAnswerFreezingEnabled (   $answerFreezingEnabled)
Parameters
boolean$answerFreezingEnabled

Definition at line 226 of file class.ilTestQuestionNavigationGUI.php.

References $answerFreezingEnabled.

227  {
228  $this->answerFreezingEnabled = $answerFreezingEnabled;
229  }

◆ setAnythingRendered()

ilTestQuestionNavigationGUI::setAnythingRendered ( )
Parameters
boolean$buttonRendered

Definition at line 322 of file class.ilTestQuestionNavigationGUI.php.

Referenced by renderButtonInstance(), and renderIcon().

323  {
324  $this->anythingRendered = true;
325  }
+ Here is the caller graph for this function:

◆ setCharSelectorEnabled()

ilTestQuestionNavigationGUI::setCharSelectorEnabled (   $charSelectorEnabled)
Parameters
boolean$charSelectorEnabled

Definition at line 338 of file class.ilTestQuestionNavigationGUI.php.

References $charSelectorEnabled.

339  {
340  $this->charSelectorEnabled = $charSelectorEnabled;
341  }

◆ setDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUI::setDiscardSolutionButtonEnabled (   $discardSolutionButtonEnabled)
Parameters
bool$discardSolutionButtonEnabled

Definition at line 162 of file class.ilTestQuestionNavigationGUI.php.

References $discardSolutionButtonEnabled.

163  {
164  $this->discardSolutionButtonEnabled = $discardSolutionButtonEnabled;
165  }

◆ setEditSolutionCommand()

ilTestQuestionNavigationGUI::setEditSolutionCommand (   $editSolutionCommand)
Parameters
string$editSolutionCommand

Definition at line 114 of file class.ilTestQuestionNavigationGUI.php.

References $editSolutionCommand.

115  {
116  $this->editSolutionCommand = $editSolutionCommand;
117  }

◆ setForceInstantResponseEnabled()

ilTestQuestionNavigationGUI::setForceInstantResponseEnabled (   $forceInstantResponseEnabled)
Parameters
boolean$forceInstantResponseEnabled

Definition at line 218 of file class.ilTestQuestionNavigationGUI.php.

References $forceInstantResponseEnabled.

219  {
220  $this->forceInstantResponseEnabled = $forceInstantResponseEnabled;
221  }

◆ setHintRequestsExist()

ilTestQuestionNavigationGUI::setHintRequestsExist (   $hintRequestsExist)
Parameters
boolean$hintRequestsExist

Definition at line 274 of file class.ilTestQuestionNavigationGUI.php.

References $hintRequestsExist, and hintRequestsExist().

+ Here is the call graph for this function:

◆ setInstantFeedbackCommand()

ilTestQuestionNavigationGUI::setInstantFeedbackCommand (   $instantFeedbackCommand)
Parameters
string$instantFeedbackCommand

Definition at line 194 of file class.ilTestQuestionNavigationGUI.php.

References $instantFeedbackCommand.

195  {
196  $this->instantFeedbackCommand = $instantFeedbackCommand;
197  }

◆ setQuestionMarkCommand()

ilTestQuestionNavigationGUI::setQuestionMarkCommand (   $questionMarkCommand)
Parameters
string$questionMarkCommand

Definition at line 290 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarkCommand.

291  {
292  $this->questionMarkCommand = $questionMarkCommand;
293  }

◆ setQuestionMarked()

ilTestQuestionNavigationGUI::setQuestionMarked (   $questionMarked)
Parameters
boolean$questionMarked

Definition at line 306 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarked.

307  {
308  $this->questionMarked = $questionMarked;
309  }

◆ setQuestionWorkedThrough()

ilTestQuestionNavigationGUI::setQuestionWorkedThrough (   $questionWorkedThrough)
Parameters
boolean$questionWorkedThrough

Definition at line 130 of file class.ilTestQuestionNavigationGUI.php.

References $questionWorkedThrough.

131  {
132  $this->questionWorkedThrough = $questionWorkedThrough;
133  }

◆ setRequestHintCommand()

ilTestQuestionNavigationGUI::setRequestHintCommand (   $requestHintCommand)
Parameters
string$requestHintCommand

Definition at line 242 of file class.ilTestQuestionNavigationGUI.php.

References $requestHintCommand.

243  {
244  $this->requestHintCommand = $requestHintCommand;
245  }

◆ setShowHintsCommand()

ilTestQuestionNavigationGUI::setShowHintsCommand (   $showHintsCommand)
Parameters
string$showHintsCommand

Definition at line 258 of file class.ilTestQuestionNavigationGUI.php.

References $showHintsCommand.

259  {
260  $this->showHintsCommand = $showHintsCommand;
261  }

◆ setSkipQuestionLinkTarget()

ilTestQuestionNavigationGUI::setSkipQuestionLinkTarget (   $skipQuestionLinkTarget)
Parameters
string$skipQuestionLinkTarget

Definition at line 178 of file class.ilTestQuestionNavigationGUI.php.

References $skipQuestionLinkTarget.

179  {
180  $this->skipQuestionLinkTarget = $skipQuestionLinkTarget;
181  }

◆ setSubmitSolutionCommand()

ilTestQuestionNavigationGUI::setSubmitSolutionCommand (   $submitSolutionCommand)
Parameters
string$submitSolutionCommand

Definition at line 146 of file class.ilTestQuestionNavigationGUI.php.

References $submitSolutionCommand.

147  {
148  $this->submitSolutionCommand = $submitSolutionCommand;
149  }

Field Documentation

◆ $answerFreezingEnabled

ilTestQuestionNavigationGUI::$answerFreezingEnabled = false
private

◆ $anythingRendered

ilTestQuestionNavigationGUI::$anythingRendered = false
private

Definition at line 93 of file class.ilTestQuestionNavigationGUI.php.

Referenced by isAnythingRendered().

◆ $charSelectorEnabled

ilTestQuestionNavigationGUI::$charSelectorEnabled = false
private

◆ $discardSolutionButtonEnabled

ilTestQuestionNavigationGUI::$discardSolutionButtonEnabled = false
private

◆ $editSolutionCommand

ilTestQuestionNavigationGUI::$editSolutionCommand = ''
private

◆ $forceInstantResponseEnabled

ilTestQuestionNavigationGUI::$forceInstantResponseEnabled = false
private

◆ $hintRequestsExist

ilTestQuestionNavigationGUI::$hintRequestsExist = false
private

◆ $instantFeedbackCommand

ilTestQuestionNavigationGUI::$instantFeedbackCommand = ''
private

◆ $lng

ilTestQuestionNavigationGUI::$lng
protected

Definition at line 18 of file class.ilTestQuestionNavigationGUI.php.

Referenced by __construct().

◆ $questionMarkCommand

ilTestQuestionNavigationGUI::$questionMarkCommand = ''
private

◆ $questionMarked

ilTestQuestionNavigationGUI::$questionMarked = false
private

Definition at line 83 of file class.ilTestQuestionNavigationGUI.php.

Referenced by isQuestionMarked(), and setQuestionMarked().

◆ $questionWorkedThrough

ilTestQuestionNavigationGUI::$questionWorkedThrough = false
private

◆ $requestHintCommand

ilTestQuestionNavigationGUI::$requestHintCommand = ''
private

◆ $showHintsCommand

ilTestQuestionNavigationGUI::$showHintsCommand = ''
private

◆ $skipQuestionLinkTarget

ilTestQuestionNavigationGUI::$skipQuestionLinkTarget = ''
private

◆ $submitSolutionCommand

ilTestQuestionNavigationGUI::$submitSolutionCommand = ''
private

◆ CSS_CLASS_SUBMIT_BUTTONS

const ilTestQuestionNavigationGUI::CSS_CLASS_SUBMIT_BUTTONS = 'ilc_qsubmit_Submit'

Definition at line 13 of file class.ilTestQuestionNavigationGUI.php.


The documentation for this class was generated from the following file: