ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestPassDeletionConfirmationGUI Class Reference
+ Inheritance diagram for ilTestPassDeletionConfirmationGUI:
+ Collaboration diagram for ilTestPassDeletionConfirmationGUI:

Public Member Functions

 __construct (ilCtrlInterface $ctrl, ilLanguage $lng, object $parentGUI)
 
 build (int $activeId, int $pass, string $context)
 
- Public Member Functions inherited from ilConfirmationGUI
 setFormAction (string $a_form_action)
 
 getFormAction ()
 
 setHeaderText (string $a_headertext)
 
 getHeaderText ()
 
 setFormName (string $a_name)
 
 addButton (string $a_txt, string $a_cmd)
 
 setCancel (string $a_txt, string $a_cmd, string $a_id='')
 
 setConfirm (string $a_txt, string $a_cmd, string $a_id='')
 
 addItem (string $a_post_var, string $a_id, string $a_text, string $a_img='', string $a_alt='')
 
 addHiddenItem (string $a_post_var, string $a_value)
 
 getHTML ()
 

Data Fields

const CONTEXT_PASS_OVERVIEW = 'contPassOverview'
 
const CONTEXT_INFO_SCREEN = 'contInfoScreen'
 

Protected Attributes

ilCtrl $ctrl
 
- Protected Attributes inherited from ilConfirmationGUI
ilLanguage $lng
 
string $form_action = ''
 
string $headertext = ''
 
string $cancel_txt = ''
 
string $cancel_cmd = ''
 
string $cancel_id = ''
 
string $confirm_txt = ''
 
string $confirm_cmd = ''
 
string $confirm_id = ''
 

Detailed Description

Definition at line 27 of file class.ilTestPassDeletionConfirmationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestPassDeletionConfirmationGUI::__construct ( ilCtrlInterface  $ctrl,
ilLanguage  $lng,
object  $parentGUI 
)

Member Function Documentation

◆ build()

ilTestPassDeletionConfirmationGUI::build ( int  $activeId,
int  $pass,
string  $context 
)

Definition at line 44 of file class.ilTestPassDeletionConfirmationGUI.php.

44 : void
45 {
46 $this->addHiddenItem('active_id', (string) $activeId);
47 $this->addHiddenItem('pass', (string) $pass);
48
49 switch ($context) {
52
53 $this->addHiddenItem('context', $context);
54 break;
55
56 default: throw new ilTestException('invalid context given!');
57 }
58
59 $this->setCancel($this->lng->txt('cancel'), 'cancelDeletePass');
60 $this->setConfirm($this->lng->txt('delete'), 'performDeletePass');
61 $this->setHeaderText($this->lng->txt('conf_delete_pass'));
62 }
setCancel(string $a_txt, string $a_cmd, string $a_id='')
setHeaderText(string $a_headertext)
setConfirm(string $a_txt, string $a_cmd, string $a_id='')
addHiddenItem(string $a_post_var, string $a_value)
Base Exception for all Exceptions relating to Modules/Test.
$context
Definition: webdav.php:31

References $context, ilConfirmationGUI\addHiddenItem(), CONTEXT_INFO_SCREEN, CONTEXT_PASS_OVERVIEW, ILIAS\Repository\lng(), ilConfirmationGUI\setCancel(), ilConfirmationGUI\setConfirm(), and ilConfirmationGUI\setHeaderText().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilTestPassDeletionConfirmationGUI::$ctrl
protected

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

Referenced by __construct().

◆ CONTEXT_INFO_SCREEN

const ilTestPassDeletionConfirmationGUI::CONTEXT_INFO_SCREEN = 'contInfoScreen'

◆ CONTEXT_PASS_OVERVIEW

const ilTestPassDeletionConfirmationGUI::CONTEXT_PASS_OVERVIEW = 'contPassOverview'

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