◆ __construct()
ilCmiXapiRegistrationGUI::__construct |
( |
ilObjCmiXapi |
$object | ) |
|
◆ buildForm()
ilCmiXapiRegistrationGUI::buildForm |
( |
| ) |
|
|
protected |
- Returns
- ilPropertyFormGUI
Definition at line 96 of file class.ilCmiXapiRegistrationGUI.php.
97 {
99
101
102 $form->setFormAction(
$DIC->ctrl()->getFormAction($this, self::CMD_SHOW_FORM));
103
105 $form->setTitle(
$DIC->language()->txt(
'form_create_registration'));
106 $form->addCommandButton(self::CMD_SAVE_FORM,
$DIC->language()->txt(
'btn_create_registration'));
107 } else {
108 $form->setTitle(
$DIC->language()->txt(
'form_change_registration'));
109 $form->addCommandButton(self::CMD_SAVE_FORM,
$DIC->language()->txt(
'btn_change_registration'));
110 }
111
112 $form->addCommandButton(self::CMD_CANCEL,
$DIC->language()->txt(
'cancel'));
113
115 $userIdent->setInfo(
$DIC->language()->txt(
'field_user_ident_info'));
116 $userIdent->setRequired(true);
117 $userIdent->setValue($this->cmixUser->getUsrIdent());
118 $form->addItem($userIdent);
119
120 return $form;
121 }
References $DIC, and hasRegistration().
Referenced by saveFormCmd(), and showFormCmd().
◆ cancelCmd()
ilCmiXapiRegistrationGUI::cancelCmd |
( |
| ) |
|
|
protected |
◆ executeCommand()
ilCmiXapiRegistrationGUI::executeCommand |
( |
| ) |
|
Definition at line 46 of file class.ilCmiXapiRegistrationGUI.php.
47 {
49
50 switch (
$DIC->ctrl()->getNextClass()) {
51 default:
52 $command =
$DIC->ctrl()->getCmd(self::DEFAULT_CMD) .
'Cmd';
53 $this->{$command}();
54 }
55 }
References $DIC.
◆ hasRegistration()
ilCmiXapiRegistrationGUI::hasRegistration |
( |
| ) |
|
|
protected |
◆ saveFormCmd()
ilCmiXapiRegistrationGUI::saveFormCmd |
( |
| ) |
|
|
protected |
◆ saveRegistration()
◆ showFormCmd()
◆ $cmixUser
ilCmiXapiRegistrationGUI::$cmixUser |
|
protected |
◆ $object
ilCmiXapiRegistrationGUI::$object |
|
protected |
◆ CMD_CANCEL
const ilCmiXapiRegistrationGUI::CMD_CANCEL = 'cancel' |
◆ CMD_SAVE_FORM
const ilCmiXapiRegistrationGUI::CMD_SAVE_FORM = 'saveForm' |
◆ CMD_SHOW_FORM
const ilCmiXapiRegistrationGUI::CMD_SHOW_FORM = 'showForm' |
◆ DEFAULT_CMD
const ilCmiXapiRegistrationGUI::DEFAULT_CMD = self::CMD_SHOW_FORM |
The documentation for this class was generated from the following file: