ILIAS  release_8 Revision v8.24
ilTestPassDeletionConfirmationGUI Class Reference
+ Inheritance diagram for ilTestPassDeletionConfirmationGUI:
+ Collaboration diagram for ilTestPassDeletionConfirmationGUI:

Public Member Functions

 __construct (ilCtrl $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'
 
const CONTEXT_DYN_TEST_PLAYER = 'contDynTestPlayer'
 

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 ( ilCtrl  $ctrl,
ilLanguage  $lng,
object  $parentGUI 
)

Member Function Documentation

◆ build()

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

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

45 : void
46 {
47 $this->addHiddenItem('active_id', (string) $activeId);
48 $this->addHiddenItem('pass', (string) $pass);
49
50 switch ($context) {
54
55 $this->addHiddenItem('context', $context);
56 break;
57
58 default: throw new ilTestException('invalid context given!');
59 }
60
61 $this->setCancel($this->lng->txt('cancel'), 'cancelDeletePass');
62 $this->setConfirm($this->lng->txt('delete'), 'performDeletePass');
63
64 if ($context == self::CONTEXT_DYN_TEST_PLAYER) {
65 $this->setHeaderText($this->lng->txt('conf_delete_pass_ctm'));
66 } else {
67 $this->setHeaderText($this->lng->txt('conf_delete_pass'));
68 }
69 }
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$context
Definition: webdav.php:29

References $context, ilConfirmationGUI\addHiddenItem(), CONTEXT_DYN_TEST_PLAYER, 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 33 of file class.ilTestPassDeletionConfirmationGUI.php.

Referenced by __construct().

◆ CONTEXT_DYN_TEST_PLAYER

const ilTestPassDeletionConfirmationGUI::CONTEXT_DYN_TEST_PLAYER = 'contDynTestPlayer'

◆ 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: