ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilAssQuestionRelatedNavigationBarGUI Class Reference
+ Collaboration diagram for ilAssQuestionRelatedNavigationBarGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilLanguage $lng)
 
 setInstantResponseEnabled ($instantFeedbackEnabled)
 
 isInstantResponseEnabled ()
 
 setInstantResponseCmd ($instantResponseCmd)
 
 getInstantResponseCmd ()
 
 getHTML ()
 

Protected Attributes

 $ctrl
 
 $lng
 
 $instantResponseCmd
 
 $instantResponseEnabled
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionRelatedNavigationBarGUI::__construct ( ilCtrl  $ctrl,
ilLanguage  $lng 
)

Member Function Documentation

◆ getHTML()

ilAssQuestionRelatedNavigationBarGUI::getHTML ( )

Definition at line 65 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References getInstantResponseCmd(), isInstantResponseEnabled(), and ILIAS\Repository\lng().

65  : string
66  {
67  $navTpl = new ilTemplate('tpl.qst_question_related_navigation.html', true, true, 'components/ILIAS/TestQuestionPool');
68 
69  $parseQuestionRelatedNavigation = false;
70 
71  if ($this->isInstantResponseEnabled()) {
72  $navTpl->setCurrentBlock("direct_feedback");
73  $navTpl->setVariable("CMD_SHOW_INSTANT_RESPONSE", $this->getInstantResponseCmd());
74  $navTpl->setVariable("TEXT_SHOW_INSTANT_RESPONSE", $this->lng->txt("check"));
75  $navTpl->parseCurrentBlock();
76 
77  $parseQuestionRelatedNavigation = true;
78  }
79 
80  if ($parseQuestionRelatedNavigation) {
81  $navTpl->setCurrentBlock("question_related_navigation");
82  $navTpl->parseCurrentBlock();
83  }
84 
85  return $navTpl->get();
86  }
+ Here is the call graph for this function:

◆ getInstantResponseCmd()

ilAssQuestionRelatedNavigationBarGUI::getInstantResponseCmd ( )

Definition at line 60 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseCmd.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ isInstantResponseEnabled()

ilAssQuestionRelatedNavigationBarGUI::isInstantResponseEnabled ( )

Definition at line 50 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseEnabled.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ setInstantResponseCmd()

ilAssQuestionRelatedNavigationBarGUI::setInstantResponseCmd (   $instantResponseCmd)

Definition at line 55 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseCmd.

55  : void
56  {
57  $this->instantResponseCmd = $instantResponseCmd;
58  }

◆ setInstantResponseEnabled()

ilAssQuestionRelatedNavigationBarGUI::setInstantResponseEnabled (   $instantFeedbackEnabled)

Definition at line 45 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

45  : void
46  {
47  $this->instantResponseEnabled = $instantFeedbackEnabled;
48  }

Field Documentation

◆ $ctrl

ilAssQuestionRelatedNavigationBarGUI::$ctrl
protected

Definition at line 30 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

Referenced by __construct().

◆ $instantResponseCmd

ilAssQuestionRelatedNavigationBarGUI::$instantResponseCmd
protected

◆ $instantResponseEnabled

ilAssQuestionRelatedNavigationBarGUI::$instantResponseEnabled
protected

◆ $lng

ilAssQuestionRelatedNavigationBarGUI::$lng
protected

Definition at line 35 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

Referenced by __construct().


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