ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
)

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

References $ctrl, ilConfirmationGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilConfirmationGUI\setFormAction().

36  {
37  $this->ctrl = $ctrl;
38  $this->lng = $lng;
39 
40  $this->setFormAction($this->ctrl->getFormAction($parentGUI));
41 
43  }
setFormAction(string $a_form_action)
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ build()

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

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

References ilConfirmationGUI\addHiddenItem(), ILIAS\Repository\lng(), ilConfirmationGUI\setCancel(), ilConfirmationGUI\setConfirm(), and ilConfirmationGUI\setHeaderText().

45  : void
46  {
47  $this->addHiddenItem('active_id', (string) $activeId);
48  $this->addHiddenItem('pass', (string) $pass);
49 
50  switch ($context) {
51  case self::CONTEXT_PASS_OVERVIEW:
52  case self::CONTEXT_INFO_SCREEN:
53  case self::CONTEXT_DYN_TEST_PLAYER:
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  }
$context
Definition: webdav.php:29
setHeaderText(string $a_headertext)
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...
setCancel(string $a_txt, string $a_cmd, string $a_id='')
setConfirm(string $a_txt, string $a_cmd, string $a_id='')
+ 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: