ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilTestQuestionNavigationGUI Class Reference
+ Collaboration diagram for ilTestQuestionNavigationGUI:

Public Member Functions

 __construct (ilLanguage $lng)
 
 getEditSolutionCommand ()
 
 setEditSolutionCommand ($editSolutionCommand)
 
 isQuestionWorkedThrough ()
 
 setQuestionWorkedThrough ($questionWorkedThrough)
 
 getSubmitSolutionCommand ()
 
 setSubmitSolutionCommand ($submitSolutionCommand)
 
 getRevertChangesLinkTarget ()
 
 setRevertChangesLinkTarget ($revertChangesLinkTarget)
 
 isDiscardSolutionButtonEnabled ()
 
 setDiscardSolutionButtonEnabled ($discardSolutionButtonEnabled)
 
 getSkipQuestionLinkTarget ()
 
 setSkipQuestionLinkTarget ($skipQuestionLinkTarget)
 
 getInstantFeedbackCommand ()
 
 setInstantFeedbackCommand ($instantFeedbackCommand)
 
 isAnswerFreezingEnabled ()
 
 isForceInstantResponseEnabled ()
 
 setForceInstantResponseEnabled ($forceInstantResponseEnabled)
 
 setAnswerFreezingEnabled ($answerFreezingEnabled)
 
 getRequestHintCommand ()
 
 setRequestHintCommand ($requestHintCommand)
 
 getShowHintsCommand ()
 
 setShowHintsCommand ($showHintsCommand)
 
 hintRequestsExist ()
 
 setHintRequestsExist ($hintRequestsExist)
 
 getQuestionMarkLinkTarget ()
 
 setQuestionMarkLinkTarget ($questionMarkLinkTarget)
 
 isQuestionMarked ()
 
 setQuestionMarked ($questionMarked)
 
 isAnythingRendered ()
 
 setAnythingRendered ()
 
 isCharSelectorEnabled ()
 
 setCharSelectorEnabled ($charSelectorEnabled)
 
 getActionsHTML ()
 Get the HTML of an actions menu below the title. More...
 
 getHTML ()
 

Data Fields

const SHOW_DISABLED_COMMANDS = false
 
const CSS_CLASS_SUBMIT_BUTTONS = 'ilc_qsubmit_Submit'
 

Protected Attributes

 $lng
 

Private Member Functions

 getEditSolutionButtonLabel ()
 
 getSubmitSolutionButtonLabel ()
 
 getCheckButtonLabel ()
 
 getRequestHintButtonLabel ()
 
 getQuestionMarkActionLabel ()
 
 getQuestionMarkIconLabel ()
 
 getQuestionMarkIconSource ()
 
 getTemplate ($a_purpose='toolbar')
 Get the template. More...
 
 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)
 
 renderActionsIcon (ilTemplate $tpl, $iconSrc, $label, $cssClass)
 

Private Attributes

 $editSolutionCommand = ''
 
 $questionWorkedThrough = false
 
 $submitSolutionCommand = ''
 
 $revertChangesLinkTarget = ''
 
 $discardSolutionButtonEnabled = false
 
 $skipQuestionLinkTarget = ''
 
 $instantFeedbackCommand = ''
 
 $answerFreezingEnabled = false
 
 $forceInstantResponseEnabled = false
 
 $requestHintCommand = ''
 
 $showHintsCommand = ''
 
 $hintRequestsExist = false
 
 $questionMarkLinkTarget = ''
 
 $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 109 of file class.ilTestQuestionNavigationGUI.php.

References $lng.

Member Function Documentation

◆ getActionsHTML()

ilTestQuestionNavigationGUI::getActionsHTML ( )

Get the HTML of an actions menu below the title.

Returns
string

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

380 {
381 $tpl = $this->getTemplate('actions');
382
383 include_once("Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
384 $actions = new ilGroupedListGUI();
385 $actions->setAsDropDown(true, true);
386
387 if( $this->getQuestionMarkLinkTarget() )
388 {
389 $actions->addEntry($this->getQuestionMarkActionLabel(), $this->getQuestionMarkLinkTarget(),
390 '','','ilTestQuestionAction','tst_mark_question_action');
391 $actions->addSeparator();
392 }
393
394 if( $this->getRevertChangesLinkTarget() )
395 {
396 $actions->addEntry($this->lng->txt('tst_revert_changes'), $this->getRevertChangesLinkTarget(),
397 '','','ilTestQuestionAction ilTestRevertChangesAction','tst_revert_changes_action');
398 }
399 else {
400 $actions->addEntry($this->lng->txt('tst_revert_changes'), '#',
401 '','','ilTestQuestionAction ilTestRevertChangesAction disabled','tst_revert_changes_action');
402 }
403
404 if( $this->isDiscardSolutionButtonEnabled() )
405 {
406 $actions->addEntry($this->lng->txt('discard_answer'),'#',
407 '','','ilTestQuestionAction ilTestDiscardSolutionAction','tst_discard_solution_action');
408 }
409 else
410 {
411 $actions->addEntry($this->lng->txt('discard_answer'),'#',
412 '','','ilTestQuestionAction ilTestDiscardSolutionAction disabled','tst_discard_solution_action');
413 }
414
415 if( $this->getSkipQuestionLinkTarget() )
416 {
417 $actions->addEntry($this->lng->txt('postpone_question'), $this->getSkipQuestionLinkTarget(),
418 '','','ilTestQuestionAction','tst_skip_question_action');
419 }
420 elseif( self::SHOW_DISABLED_COMMANDS )
421 {
422 $actions->addEntry($this->lng->txt('postpone_question'), '#',
423 '','','ilTestQuestionAction disabled','tst_skip_question_action');
424 }
425
426 if( $this->isCharSelectorEnabled() )
427 {
428 $actions->addSeparator();
429 $actions->addEntry($this->lng->txt('char_selector_btn_label'),'#',
430 '','','ilTestQuestionAction ilCharSelectorMenuToggle','ilCharSelectorMenuToggleLink');
431 }
432
433 // render the mark icon
434 if( $this->getQuestionMarkLinkTarget() )
435 {
436 $this->renderActionsIcon(
437 $tpl, $this->getQuestionMarkIconSource(), $this->getQuestionMarkIconLabel(), 'ilTestMarkQuestionIcon'
438 );
439 }
440
441 // render the action menu
442 include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
443 $list = new ilAdvancedSelectionListGUI();
444 $list->setSelectionHeaderClass('btn-primary');
445 $list->setId('QuestionActions');
446 $list->setListTitle($this->lng->txt("actions"));
447 $list->setStyle(1);
448 $list->setGroupedList($actions);
449 $tpl->setVariable('ACTION_MENU',$list->getHTML());
450
451 return $tpl->get();
452 }
global $tpl
Definition: ilias.php:8
User interface class for advanced drop-down selection lists.
Grouped list GUI class.
renderActionsIcon(ilTemplate $tpl, $iconSrc, $label, $cssClass)
getTemplate($a_purpose='toolbar')
Get the template.

References $tpl, getQuestionMarkActionLabel(), getQuestionMarkIconLabel(), getQuestionMarkIconSource(), getQuestionMarkLinkTarget(), getRevertChangesLinkTarget(), getSkipQuestionLinkTarget(), getTemplate(), isCharSelectorEnabled(), isDiscardSolutionButtonEnabled(), and renderActionsIcon().

+ Here is the call graph for this function:

◆ getCheckButtonLabel()

ilTestQuestionNavigationGUI::getCheckButtonLabel ( )
private

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

531 {
532 if( $this->isAnswerFreezingEnabled() )
533 {
534 return 'submit_and_check';
535 }
536
537 return 'check';
538 }

References isAnswerFreezingEnabled().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionButtonLabel()

ilTestQuestionNavigationGUI::getEditSolutionButtonLabel ( )
private

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

509 {
510 if( $this->isQuestionWorkedThrough() )
511 {
512 return 'edit_answer';
513 }
514
515 return 'answer_question';
516 }

References isQuestionWorkedThrough().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionCommand()

ilTestQuestionNavigationGUI::getEditSolutionCommand ( )
Returns
string

Definition at line 117 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 459 of file class.ilTestQuestionNavigationGUI.php.

460 {
461// fau: testNav - add parameter for toolbar template purpose
462 $tpl = $this->getTemplate('toolbar');
463// fau.
464 if( $this->getEditSolutionCommand() )
465 {
466 $this->renderSubmitButton(
468 );
469 }
470
471// fau: testNav - don't show the standard submit button.
472// fau: testNav - discard answer is moved to the actions menu.
473// fau: testNav - skip question (postpone) is moved to the actions menu.
474
475 if( $this->getInstantFeedbackCommand())
476 {
477 $this->renderSubmitButton(
480 );
481 }
482
483 if( $this->getRequestHintCommand() )
484 {
485 $this->renderSubmitButton(
487 );
488 }
489
490 if( $this->getShowHintsCommand() )
491 {
492 $this->renderSubmitButton(
493 $tpl, $this->getShowHintsCommand(), 'button_show_requested_question_hints'
494 );
495 }
496
497// fau: testNav - question mark is moved to the actions menu.
498// fau: testNav - char selector is moved to the actions menu.
499
500 if( $this->isAnythingRendered() )
501 {
502 $this->parseNavigation($tpl);
503 }
504
505 return $tpl->get();
506 }
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)

References $tpl, getCheckButtonLabel(), getEditSolutionButtonLabel(), getEditSolutionCommand(), getInstantFeedbackCommand(), getRequestHintButtonLabel(), getRequestHintCommand(), getShowHintsCommand(), getTemplate(), isAnythingRendered(), isForceInstantResponseEnabled(), parseNavigation(), and renderSubmitButton().

+ Here is the call graph for this function:

◆ getInstantFeedbackCommand()

ilTestQuestionNavigationGUI::getInstantFeedbackCommand ( )
Returns
string

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

References $instantFeedbackCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getQuestionMarkActionLabel()

ilTestQuestionNavigationGUI::getQuestionMarkActionLabel ( )
private

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

552 {
553 if( $this->isQuestionMarked() )
554 {
555 return $this->lng->txt('tst_remove_mark');
556 }
557
558 return $this->lng->txt('tst_question_mark');
559 }

References isQuestionMarked().

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkIconLabel()

ilTestQuestionNavigationGUI::getQuestionMarkIconLabel ( )
private

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

563 {
564 if( $this->isQuestionMarked() )
565 {
566 return $this->lng->txt('tst_question_marked');
567 }
568
569 return$this->lng->txt('tst_question_not_marked');
570 }

References isQuestionMarked().

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkIconSource()

ilTestQuestionNavigationGUI::getQuestionMarkIconSource ( )
private

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

574 {
575 if( $this->isQuestionMarked() )
576 {
577 return ilUtil::getImagePath('marked.svg');
578 }
579
580 return ilUtil::getImagePath('marked_.svg');
581 }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)

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

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkLinkTarget()

ilTestQuestionNavigationGUI::getQuestionMarkLinkTarget ( )
Returns
string

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

References $questionMarkLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getRequestHintButtonLabel()

ilTestQuestionNavigationGUI::getRequestHintButtonLabel ( )
private

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

541 {
542 if( $this->hintRequestsExist() )
543 {
544 return 'button_request_next_question_hint';
545 }
546
547 return 'button_request_question_hint';
548 }

References hintRequestsExist().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestHintCommand()

ilTestQuestionNavigationGUI::getRequestHintCommand ( )
Returns
string

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

References $requestHintCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getRevertChangesLinkTarget()

ilTestQuestionNavigationGUI::getRevertChangesLinkTarget ( )
Returns
string

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

References $revertChangesLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getShowHintsCommand()

ilTestQuestionNavigationGUI::getShowHintsCommand ( )
Returns
string

Definition at line 279 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 199 of file class.ilTestQuestionNavigationGUI.php.

References $skipQuestionLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getSubmitSolutionButtonLabel()

ilTestQuestionNavigationGUI::getSubmitSolutionButtonLabel ( )
private

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

519 {
520 if( $this->isForceInstantResponseEnabled() )
521 {
522 return 'submit_and_check';
523 }
524
525// fau: testNav - rename the submit button to simply "Save"
526 return 'save';
527// fau.
528 }

References isForceInstantResponseEnabled().

+ Here is the call graph for this function:

◆ getSubmitSolutionCommand()

ilTestQuestionNavigationGUI::getSubmitSolutionCommand ( )

◆ getTemplate()

ilTestQuestionNavigationGUI::getTemplate (   $a_purpose = 'toolbar')
private

Get the template.

Parameters
string$a_purpose('toolbar' | 'actions')
Returns
ilTemplate

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

590 {
591 switch ($a_purpose)
592 {
593 case 'toolbar':
594 return new ilTemplate(
595 'tpl.tst_question_navigation.html', true, true, 'Modules/Test'
596 );
597
598 case 'actions':
599 return new ilTemplate(
600 'tpl.tst_question_actions.html', true, true, 'Modules/Test'
601 );
602 }
603 }
special template class to simplify handling of ITX/PEAR

Referenced by getActionsHTML(), and getHTML().

+ Here is the caller graph for this function:

◆ hintRequestsExist()

ilTestQuestionNavigationGUI::hintRequestsExist ( )
Returns
boolean

Definition at line 295 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 231 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 345 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 361 of file class.ilTestQuestionNavigationGUI.php.

References $charSelectorEnabled.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ isDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUI::isDiscardSolutionButtonEnabled ( )
Returns
bool

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

References $discardSolutionButtonEnabled.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ isForceInstantResponseEnabled()

ilTestQuestionNavigationGUI::isForceInstantResponseEnabled ( )
Returns
boolean

Definition at line 239 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 329 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarked.

Referenced by getQuestionMarkActionLabel(), getQuestionMarkIconLabel(), and getQuestionMarkIconSource().

+ Here is the caller graph for this function:

◆ isQuestionWorkedThrough()

ilTestQuestionNavigationGUI::isQuestionWorkedThrough ( )
Returns
boolean

Definition at line 133 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 618 of file class.ilTestQuestionNavigationGUI.php.

619 {
620 $tpl->setCurrentBlock('buttons');
621 $tpl->parseCurrentBlock();
622 }

References $tpl.

Referenced by renderButtonInstance(), and renderIcon().

+ Here is the caller graph for this function:

◆ parseNavigation()

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

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

610 {
611 $tpl->setCurrentBlock('question_related_navigation');
612 $tpl->parseCurrentBlock();
613 }

References $tpl.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ renderActionsIcon()

ilTestQuestionNavigationGUI::renderActionsIcon ( ilTemplate  $tpl,
  $iconSrc,
  $label,
  $cssClass 
)
private

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

708 {
709 $tpl->setCurrentBlock("actions_icon");
710 $tpl->setVariable("ICON_SRC", $iconSrc);
711 $tpl->setVariable("ICON_TEXT", $label);
712 $tpl->setVariable("ICON_CLASS", $cssClass);
713 $tpl->parseCurrentBlock();
714 }

References $tpl.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ renderButtonInstance()

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

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

629 {
630 $tpl->setCurrentBlock("button_instance");
631 $tpl->setVariable("BUTTON_INSTANCE", $button->render());
632 $tpl->parseCurrentBlock();
633
634 $this->parseButtonsBlock($tpl);
635 $this->setAnythingRendered();
636 }

References $tpl, parseButtonsBlock(), and setAnythingRendered().

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

+ 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 693 of file class.ilTestQuestionNavigationGUI.php.

694 {
695 $tpl->setCurrentBlock("submit_icon");
696 $tpl->setVariable("SUBMIT_ICON_CMD", $command);
697 $tpl->setVariable("SUBMIT_ICON_SRC", $iconSrc);
698 $tpl->setVariable("SUBMIT_ICON_TEXT", $label);
699 $tpl->setVariable("SUBMIT_ICON_CLASS", $cssClass);
700 $tpl->parseCurrentBlock();
701
702 $this->parseButtonsBlock($tpl);
703 $this->setAnythingRendered();
704 }

References $tpl, parseButtonsBlock(), and setAnythingRendered().

+ Here is the call graph for this function:

◆ renderJsLinkedButton()

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

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

677 {
678 $button = ilLinkButton::getInstance();
679 $button->setId($htmlId);
680 $button->addCSSClass($cssClass);
681 $button->setCaption($label);
682
683 $this->renderButtonInstance($tpl, $button);
684 }
static getInstance()
Factory.

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

+ Here is the call graph for this function:

◆ renderLinkButton()

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

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

662 {
663 $button = ilLinkButton::getInstance();
664 $button->setUrl($href);
665 $button->setCaption($label);
666
667 $this->renderButtonInstance($tpl, $button);
668 }

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

+ Here is the call 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 644 of file class.ilTestQuestionNavigationGUI.php.

645 {
646 $button = ilSubmitButton::getInstance();
647 $button->setCommand($command);
648 $button->setCaption($label);
649 $button->setPrimary($primary);
650 $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
651
652 $this->renderButtonInstance($tpl, $button);
653 }
static getInstance()
Factory.

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

Referenced by getHTML().

+ 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 255 of file class.ilTestQuestionNavigationGUI.php.

256 {
257 $this->answerFreezingEnabled = $answerFreezingEnabled;
258 }

References $answerFreezingEnabled.

◆ setAnythingRendered()

ilTestQuestionNavigationGUI::setAnythingRendered ( )
Parameters
boolean$buttonRendered

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

354 {
355 $this->anythingRendered = true;
356 }

Referenced by renderButtonInstance(), and renderIcon().

+ Here is the caller graph for this function:

◆ setCharSelectorEnabled()

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

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

370 {
371 $this->charSelectorEnabled = $charSelectorEnabled;
372 }

References $charSelectorEnabled.

◆ setDiscardSolutionButtonEnabled()

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

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

192 {
193 $this->discardSolutionButtonEnabled = $discardSolutionButtonEnabled;
194 }

References $discardSolutionButtonEnabled.

◆ setEditSolutionCommand()

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

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

126 {
127 $this->editSolutionCommand = $editSolutionCommand;
128 }

References $editSolutionCommand.

◆ setForceInstantResponseEnabled()

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

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

248 {
249 $this->forceInstantResponseEnabled = $forceInstantResponseEnabled;
250 }

References $forceInstantResponseEnabled.

◆ setHintRequestsExist()

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

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

304 {
306 }

References $hintRequestsExist, and hintRequestsExist().

+ Here is the call graph for this function:

◆ setInstantFeedbackCommand()

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

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

224 {
225 $this->instantFeedbackCommand = $instantFeedbackCommand;
226 }

References $instantFeedbackCommand.

◆ setQuestionMarked()

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

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

338 {
339 $this->questionMarked = $questionMarked;
340 }

References $questionMarked.

◆ setQuestionMarkLinkTarget()

ilTestQuestionNavigationGUI::setQuestionMarkLinkTarget (   $questionMarkLinkTarget)
Parameters
string$questionMarkLinkTarget

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

321 {
322 $this->questionMarkLinkTarget = $questionMarkLinkTarget;
323 }

References $questionMarkLinkTarget.

◆ setQuestionWorkedThrough()

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

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

142 {
143 $this->questionWorkedThrough = $questionWorkedThrough;
144 }

References $questionWorkedThrough.

◆ setRequestHintCommand()

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

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

272 {
273 $this->requestHintCommand = $requestHintCommand;
274 }

References $requestHintCommand.

◆ setRevertChangesLinkTarget()

ilTestQuestionNavigationGUI::setRevertChangesLinkTarget (   $revertChangesLinkTarget)
Parameters
string

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

175 {
176 $this->revertChangesLinkTarget = $revertChangesLinkTarget;
177 }

References $revertChangesLinkTarget.

◆ setShowHintsCommand()

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

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

288 {
289 $this->showHintsCommand = $showHintsCommand;
290 }

References $showHintsCommand.

◆ setSkipQuestionLinkTarget()

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

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

208 {
209 $this->skipQuestionLinkTarget = $skipQuestionLinkTarget;
210 }

References $skipQuestionLinkTarget.

◆ setSubmitSolutionCommand()

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

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

158 {
159 $this->submitSolutionCommand = $submitSolutionCommand;
160 }

References $submitSolutionCommand.

Field Documentation

◆ $answerFreezingEnabled

ilTestQuestionNavigationGUI::$answerFreezingEnabled = false
private

◆ $anythingRendered

ilTestQuestionNavigationGUI::$anythingRendered = false
private

Definition at line 104 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 20 of file class.ilTestQuestionNavigationGUI.php.

Referenced by __construct().

◆ $questionMarked

ilTestQuestionNavigationGUI::$questionMarked = false
private

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

Referenced by isQuestionMarked(), and setQuestionMarked().

◆ $questionMarkLinkTarget

ilTestQuestionNavigationGUI::$questionMarkLinkTarget = ''
private

◆ $questionWorkedThrough

ilTestQuestionNavigationGUI::$questionWorkedThrough = false
private

◆ $requestHintCommand

ilTestQuestionNavigationGUI::$requestHintCommand = ''
private

◆ $revertChangesLinkTarget

ilTestQuestionNavigationGUI::$revertChangesLinkTarget = ''
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 15 of file class.ilTestQuestionNavigationGUI.php.

◆ SHOW_DISABLED_COMMANDS

const ilTestQuestionNavigationGUI::SHOW_DISABLED_COMMANDS = false

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


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