21 public function __construct($a_parent_gui, $a_ref_id)
24 $this->ctrl = $DIC[
'ilCtrl'];
25 $this->parent_gui = $a_parent_gui;
27 $this->
object = $a_parent_gui->object;
28 $this->ref_id = $a_ref_id;
29 $this->tpl = $DIC[
'tpl'];
30 $this->lng = $DIC[
'lng'];
31 $this->tabs_gui = $a_parent_gui->tabsGUI();
33 $this->iass_access = $this->
object->accessHandler();
40 $this->lng->txt(
"edit"),
41 $this->ctrl->getLinkTarget($this,
'edit')
45 $this->lng->txt(
"iass_edit_info"),
46 $this->ctrl->getLinkTarget($this,
'editInfo')
52 $cmd = $this->ctrl->getCmd();
59 if (!$this->iass_access->mayEditObject()) {
60 $this->parent_gui->handleAccessViolation();
70 $this->ctrl->redirect($this->parent_gui);
75 $this->tabs_gui->setSubTabActive(self::TAB_EDIT);
82 $this->tabs_gui->setSubTabActive(self::TAB_EDIT_INFO);
89 $this->tabs_gui->setSubTabActive(self::TAB_EDIT_INFO);
92 if (
$form->checkInput()) {
93 $this->
object->getInfoSettings()
94 ->setContact(
$_POST[self::PROP_INFO_CONTACT])
95 ->setResponsibility(
$_POST[self::PROP_INFO_RESPONSIBILITY])
96 ->setPhone(
$_POST[self::PROP_INFO_PHONE])
97 ->setMails(
$_POST[self::PROP_INFO_MAILS])
98 ->setConsultationHours(
$_POST[self::PROP_INFO_CONSULTATION]);
99 $this->
object->updateInfo();
107 $this->tpl->setContent($a_form->
getHTML());
112 $this->tabs_gui->setSubTabActive(self::TAB_EDIT);
115 if (
$form->checkInput()) {
116 $this->
object->setTitle(
$_POST[self::PROP_TITLE]);
117 $this->
object->setDescription(
$_POST[self::PROP_DESCRIPTION]);
118 $this->
object->getSettings()->setContent(
$_POST[self::PROP_CONTENT])
119 ->setRecordTemplate(
$_POST[self::PROP_RECORD_TEMPLATE])
120 ->setEventTimePlaceRequired((
bool)
$_POST[self::PROP_EVENT_TIME_PLACE_REQUIRED])
121 ->setFileRequired((
bool)
$_POST[self::PROP_FILE_REQUIRED]);
122 $this->
object->update();
137 $form->setFormAction($this->ctrl->getFormAction($this));
138 $form->setTitle($this->lng->txt(
'iass_edit'));
141 $ti =
new ilTextInputGUI($this->lng->txt(
'title'), self::PROP_TITLE);
143 $ti->setRequired(
true);
154 $item->
setInfo($this->lng->txt(
'iass_content_explanation'));
155 $form->addItem($item);
157 $item =
new ilTextAreaInputGUI($this->lng->txt(
'iass_record_template'), self::PROP_RECORD_TEMPLATE);
158 $item->
setInfo($this->lng->txt(
'iass_record_template_explanation'));
159 $form->addItem($item);
161 $option =
new ilCheckboxInputGUI($this->lng->txt(
'iass_event_time_place_required'), self::PROP_EVENT_TIME_PLACE_REQUIRED);
162 $option->
setInfo($this->lng->txt(
'iass_event_time_place_required_info'));
163 $form->addItem($option);
165 $option =
new ilCheckboxInputGUI($this->lng->txt(
'iass_file_required'), self::PROP_FILE_REQUIRED);
166 $option->
setInfo($this->lng->txt(
'iass_file_required_info'));
167 $form->addItem($option);
169 $form->addCommandButton(
'update', $this->lng->txt(
'save'));
170 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
173 $sh->setTitle($this->lng->txt(
"obj_features"));
187 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
189 $form->setFormAction($this->ctrl->getFormAction($this));
190 $form->setTitle($this->lng->txt(
'iass_edit_info'));
192 $ti =
new ilTextInputGUI($this->lng->txt(
'iass_contact'), self::PROP_INFO_CONTACT);
196 $ti =
new ilTextInputGUI($this->lng->txt(
'iass_responsibility'), self::PROP_INFO_RESPONSIBILITY);
200 $ti =
new ilTextInputGUI($this->lng->txt(
'iass_phone'), self::PROP_INFO_PHONE);
204 $ti =
new ilTextInputGUI($this->lng->txt(
'iass_mails'), self::PROP_INFO_MAILS);
205 $ti->
setInfo($this->lng->txt(
'iass_info_emails_expl'));
209 $item =
new ilTextAreaInputGUI($this->lng->txt(
'iass_consultation_hours'), self::PROP_INFO_CONSULTATION);
210 $form->addItem($item);
212 $form->addCommandButton(
'updateInfo', $this->lng->txt(
'save'));
213 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
220 self::PROP_INFO_CONTACT => $settings->
contact()
222 , self::PROP_INFO_PHONE => $settings->
phone()
223 , self::PROP_INFO_MAILS => $settings->
mails()
232 self::PROP_TITLE => $iass->
getTitle()
234 , self::PROP_CONTENT => $settings->
content()
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
For the purpose of streamlining the grading and learning-process status definition outside of tests...
fillForm(ilPropertyFormGUI $a_form, ilObjIndividualAssessment $iass, ilIndividualAssessmentSettings $settings)
An object carrying settings of an Individual Assessment obj beyond the standart information.
eventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
A simple carrier for iass info-settings.
fillInfoForm(ilPropertyFormGUI $a_form, ilIndividualAssessmentInfoSettings $settings)
const PROP_EVENT_TIME_PLACE_REQUIRED
static getInstance()
Get instance.
recordTemplate()
Get the record template to be used as default record with corresponding object.
if(isset($_POST['submit'])) $form
getId()
get object id public
content()
Get the content of this assessment, e.g.
setSize($a_size)
Set Size.
This class represents a text property in a property form.
setCols($a_cols)
Set Cols.
getTitle()
get object title public
getDescription()
get object description
addSubTab($a_id, $a_text, $a_link, $a_frame="")
Add a Subtab.
fileRequired()
Get the value of the checkbox file_required.
static updateServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Update service settings.
Create styles array
The data for the language used.
getSubTabs(ilTabsGUI $tabs)
const PROP_INFO_CONSULTATION
if(!empty($this->data['faventry'])) $tabs
const PROP_INFO_RESPONSIBILITY
Create new PHPExcel object
obj_idprivate
This class represents a text area property in a property form.
static initServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Init service settings form.
const ORGU_POSITION_ACCESS
renderForm(ilPropertyFormGUI $a_form)
const PROP_RECORD_TEMPLATE