ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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)
 Set cancel button command and text. More...
 
 setConfirm ($a_txt, $a_cmd)
 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.

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

References $lng.

Member Function Documentation

◆ build()

ilTestAnswerOptionalQuestionsConfirmationGUI::build (   $isFixedTest)

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

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 }
setCancel($a_txt, $a_cmd)
Set cancel button command and text.
setHeaderText($a_headertext)
Set Set header text.
setConfirm($a_txt, $a_cmd)
Set confirmation button command and text.

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

+ Here is the call graph for this function:

◆ buildHeaderText()

ilTestAnswerOptionalQuestionsConfirmationGUI::buildHeaderText (   $isFixedTest)
private

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

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 }

Referenced by build().

+ Here is the caller graph for this function:

◆ getCancelCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::getCancelCmd ( )

◆ getConfirmCmd()

ilTestAnswerOptionalQuestionsConfirmationGUI::getConfirmCmd ( )

◆ setCancelCmd()

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

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

52 {
53 $this->cancelCmd = $cancelCmd;
54 }

References $cancelCmd.

◆ setConfirmCmd()

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

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

68 {
69 $this->confirmCmd = $confirmCmd;
70 }

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: