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

Public Member Functions

 __construct (ilLanguage $lng)
 
 getCancelCmd ()
 
 setCancelCmd ($cancelCmd)
 
 getConfirmCmd ()
 
 setConfirmCmd ($confirmCmd)
 
 build ($isFixedTest)
 
- Public Member Functions inherited from ilConfirmationGUI
 __construct ()
 Constructor. More...
 
 setFormAction ($a_form_action)
 
 getFormAction ()
 
 setHeaderText ($a_headertext)
 Set Set header text. More...
 
 getHeaderText ()
 Get Set header text. More...
 
 addButton ($a_txt, $a_cmd)
 Set cancel button command and text. More...
 
 setCancel ($a_txt, $a_cmd, $a_id="")
 Set cancel button command and text. More...
 
 setConfirm ($a_txt, $a_cmd, $a_id="")
 Set confirmation button command and text. More...
 
 addItem ($a_post_var, $a_id, $a_text, $a_img="", $a_alt="")
 Add row item. More...
 
 addHiddenItem ($a_post_var, $a_value)
 Add hidden item. More...
 
 getHTML ()
 Get confirmation screen HTML. More...
 
 setFormName ($a_name)
 Set form name. More...
 

Protected Attributes

 $lng
 
 $cancelCmd
 
 $confirmCmd
 

Private Member Functions

 buildHeaderText ($isFixedTest)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 32 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References $lng.

33  {
34  $this->lng = $lng;
35 
36  $this->cancelCmd = null;
37  $this->confirmCmd = null;
38  }

Member Function Documentation

◆ build()

ilTestAnswerOptionalQuestionsConfirmationGUI::build (   $isFixedTest)

Definition at line 72 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References buildHeaderText(), getCancelCmd(), getConfirmCmd(), ilConfirmationGUI\setCancel(), ilConfirmationGUI\setConfirm(), and ilConfirmationGUI\setHeaderText().

73  {
74  $this->setHeaderText($this->buildHeaderText($isFixedTest));
75  $this->setCancel($this->lng->txt('back'), $this->getCancelCmd());
76  $this->setConfirm($this->lng->txt('proceed'), $this->getConfirmCmd());
77  }
setConfirm($a_txt, $a_cmd, $a_id="")
Set confirmation button command and text.
setCancel($a_txt, $a_cmd, $a_id="")
Set cancel button command and text.
setHeaderText($a_headertext)
Set Set header text.
+ Here is the call graph for this function:

◆ buildHeaderText()

ilTestAnswerOptionalQuestionsConfirmationGUI::buildHeaderText (   $isFixedTest)
private

Definition at line 79 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

Referenced by build().

80  {
81  if($isFixedTest)
82  {
83  return $this->lng->txt('tst_optional_questions_confirmation_fixed_test');
84  }
85 
86  return $this->lng->txt('tst_optional_questions_confirmation_non_fixed_test');
87  }
+ Here is the caller graph for this function:

◆ getCancelCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::getCancelCmd ( )
Returns
string

Definition at line 43 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References $cancelCmd.

Referenced by build().

+ Here is the caller graph for this function:

◆ getConfirmCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::getConfirmCmd ( )
Returns
string

Definition at line 59 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References $confirmCmd.

Referenced by build().

+ Here is the caller graph for this function:

◆ setCancelCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::setCancelCmd (   $cancelCmd)
Parameters
string$cancelCmd

Definition at line 51 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References $cancelCmd.

◆ setConfirmCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::setConfirmCmd (   $confirmCmd)
Parameters
string$confirmCmd

Definition at line 67 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

References $confirmCmd.

Field Documentation

◆ $cancelCmd

ilTestAnswerOptionalQuestionsConfirmationGUI::$cancelCmd
protected

◆ $confirmCmd

ilTestAnswerOptionalQuestionsConfirmationGUI::$confirmCmd
protected

◆ $lng

ilTestAnswerOptionalQuestionsConfirmationGUI::$lng
protected

Definition at line 17 of file class.ilTestAnswerOptionalQuestionsConfirmationGUI.php.

Referenced by __construct().


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