ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestPassDeletionConfirmationGUI Class Reference
+ Inheritance diagram for ilTestPassDeletionConfirmationGUI:
+ Collaboration diagram for ilTestPassDeletionConfirmationGUI:

Public Member Functions

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

Data Fields

const CONTEXT_PASS_OVERVIEW = 'contPassOverview'
const CONTEXT_INFO_SCREEN = 'contInfoScreen'
const CONTEXT_DYN_TEST_PLAYER = 'contDynTestPlayer'

Protected Attributes

 $ctrl
 $lng

Detailed Description

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

Constructor & Destructor Documentation

ilTestPassDeletionConfirmationGUI::__construct ( ilCtrl  $ctrl,
ilLanguage  $lng,
  $parentGUI 
)

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

References $ctrl, $lng, and ilConfirmationGUI\setFormAction().

{
$this->ctrl = $ctrl;
$this->lng = $lng;
$this->setFormAction($this->ctrl->getFormAction($parentGUI));
}

+ Here is the call graph for this function:

Member Function Documentation

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

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

References $pass, ilConfirmationGUI\addHiddenItem(), ilConfirmationGUI\setCancel(), ilConfirmationGUI\setConfirm(), and ilConfirmationGUI\setHeaderText().

{
$this->addHiddenItem('active_id', $activeId);
$this->addHiddenItem('pass', $pass);
switch($context)
{
case self::CONTEXT_PASS_OVERVIEW:
case self::CONTEXT_INFO_SCREEN:
case self::CONTEXT_DYN_TEST_PLAYER:
$this->addHiddenItem('context', $context);
break;
default: throw new ilTestException('invalid context given!');
}
$this->setCancel($this->lng->txt('cancel'), 'cancelDeletePass');
$this->setConfirm($this->lng->txt('delete'), 'performDeletePass');
$this->setHeaderText($this->lng->txt('conf_delete_pass'));
}

+ Here is the call graph for this function:

Field Documentation

ilTestPassDeletionConfirmationGUI::$ctrl
protected

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

Referenced by __construct().

ilTestPassDeletionConfirmationGUI::$lng
protected

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

Referenced by __construct().

const ilTestPassDeletionConfirmationGUI::CONTEXT_DYN_TEST_PLAYER = 'contDynTestPlayer'
const ilTestPassDeletionConfirmationGUI::CONTEXT_INFO_SCREEN = 'contInfoScreen'
const ilTestPassDeletionConfirmationGUI::CONTEXT_PASS_OVERVIEW = 'contPassOverview'

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