50 switch ($DIC->ctrl()->getNextClass()) {
52 $command = $DIC->ctrl()->getCmd(self::DEFAULT_CMD) .
'Cmd';
72 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
81 if (!$form->checkInput()) {
82 $form->setValuesByPost();
89 ilUtil::sendSuccess($DIC->language()->txt(
'registration_saved_successfully'),
true);
102 $form->setFormAction($DIC->ctrl()->getFormAction($this, self::CMD_SHOW_FORM));
105 $form->setTitle($DIC->language()->txt(
'form_create_registration'));
106 $form->addCommandButton(self::CMD_SAVE_FORM, $DIC->language()->txt(
'btn_create_registration'));
108 $form->setTitle($DIC->language()->txt(
'form_change_registration'));
109 $form->addCommandButton(self::CMD_SAVE_FORM, $DIC->language()->txt(
'btn_change_registration'));
112 $form->addCommandButton(self::CMD_CANCEL, $DIC->language()->txt(
'cancel'));
114 $userIdent =
new ilEMailInputGUI($DIC->language()->txt(
'field_user_ident'),
'user_ident');
115 $userIdent->
setInfo($DIC->language()->txt(
'field_user_ident_info'));
116 $userIdent->setRequired(
true);
117 $userIdent->setValue($this->cmixUser->getUsrIdent());
118 $form->addItem($userIdent);
125 return strlen($this->cmixUser->getUsrIdent());
130 $this->cmixUser->setUsrIdent($form->
getInput(
'user_ident'));
131 $this->cmixUser->save();
showFormCmd(ilPropertyFormGUI $form=null)
__construct(ilObjCmiXapi $object)
ilCmiXapiRegistrationGUI constructor.
getId()
get object id public
saveRegistration(ilPropertyFormGUI $form)