本文整理汇总了PHP中ilDateTimeInputGUI::setInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP ilDateTimeInputGUI::setInfo方法的具体用法?PHP ilDateTimeInputGUI::setInfo怎么用?PHP ilDateTimeInputGUI::setInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilDateTimeInputGUI
的用法示例。
在下文中一共展示了ilDateTimeInputGUI::setInfo方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initAssignmentForm
/**
* Init assignment form.
*
* @param int $a_mode "create"/"edit"
*/
public function initAssignmentForm($a_mode = "create")
{
global $lng, $ilCtrl, $ilSetting;
// init form
$lng->loadLanguageModule("form");
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->form = new ilPropertyFormGUI();
$this->form->setTableWidth("600px");
if ($a_mode == "edit") {
$this->form->setTitle($lng->txt("exc_edit_assignment"));
} else {
$this->form->setTitle($lng->txt("exc_new_assignment"));
}
$this->form->setFormAction($ilCtrl->getFormAction($this));
// type
include_once "./Modules/Exercise/classes/class.ilExAssignment.php";
$types = array(ilExAssignment::TYPE_UPLOAD => $this->lng->txt("exc_type_upload"), ilExAssignment::TYPE_UPLOAD_TEAM => $this->lng->txt("exc_type_upload_team"), ilExAssignment::TYPE_TEXT => $this->lng->txt("exc_type_text"));
if (!$ilSetting->get('disable_wsp_blogs')) {
$types[ilExAssignment::TYPE_BLOG] = $this->lng->txt("exc_type_blog");
}
if ($ilSetting->get('user_portfolios')) {
$types[ilExAssignment::TYPE_PORTFOLIO] = $this->lng->txt("exc_type_portfolio");
}
if (sizeof($types) > 1) {
$ty = new ilSelectInputGUI($this->lng->txt("exc_assignment_type"), "type");
$ty->setOptions($types);
$ty->setRequired(true);
} else {
$ty = new ilHiddenInputGUI("type");
$ty->setValue(ilExAssignment::TYPE_UPLOAD);
}
$this->form->addItem($ty);
// title
$ti = new ilTextInputGUI($this->lng->txt("title"), "title");
$ti->setMaxLength(200);
$ti->setRequired(true);
$this->form->addItem($ti);
// start time y/n
$cb = new ilCheckboxInputGUI($this->lng->txt("exc_start_time"), "start_time_cb");
$this->form->addItem($cb);
// start time
$edit_date = new ilDateTimeInputGUI("", "start_time");
$edit_date->setShowTime(true);
$cb->addSubItem($edit_date);
// deadline y/n
$dcb = new ilCheckboxInputGUI($this->lng->txt("exc_deadline"), "deadline_cb");
$dcb->setChecked(true);
$this->form->addItem($dcb);
// Deadline
$edit_date = new ilDateTimeInputGUI($lng->txt(""), "deadline");
$edit_date->setShowTime(true);
$dcb->addSubItem($edit_date);
// mandatory
$cb = new ilCheckboxInputGUI($this->lng->txt("exc_mandatory"), "mandatory");
$cb->setInfo($this->lng->txt("exc_mandatory_info"));
$cb->setChecked(true);
$this->form->addItem($cb);
// Work Instructions
$desc_input = new ilTextAreaInputGUI($lng->txt("exc_instruction"), "instruction");
$desc_input->setRows(20);
$desc_input->setUseRte(true);
$desc_input->setRteTagSet("mini");
$this->form->addItem($desc_input);
// files
if ($a_mode == "create") {
$files = new ilFileWizardInputGUI($this->lng->txt('objs_file'), 'files');
$files->setFilenames(array(0 => ''));
$this->form->addItem($files);
}
// peer review
$peer = new ilCheckboxInputGUI($lng->txt("exc_peer_review"), "peer");
$peer->setInfo($this->lng->txt("exc_peer_review_ass_setting_info"));
$this->form->addItem($peer);
if ($a_mode == "create") {
$peer->setInfo($lng->txt("exc_peer_review_info"));
}
$peer_min = new ilNumberInputGUI($lng->txt("exc_peer_review_min_number"), "peer_min");
$peer_min->setInfo($lng->txt("exc_peer_review_min_number_info"));
$peer_min->setRequired(true);
$peer_min->setValue(5);
$peer_min->setSize(3);
$peer_min->setValue(2);
$peer->addSubItem($peer_min);
$peer_dl = new ilDateTimeInputGUI($lng->txt("exc_peer_review_deadline"), "peer_dl");
$peer_dl->setInfo($lng->txt("exc_peer_review_deadline_info"));
$peer_dl->enableDateActivation("", "peer_dl_tgl");
$peer_dl->setShowTime(true);
$peer->addSubItem($peer_dl);
$peer_file = new ilCheckboxInputGUI($lng->txt("exc_peer_review_file"), "peer_file");
$peer_file->setInfo($lng->txt("exc_peer_review_file_info"));
$peer->addSubItem($peer_file);
$peer_prsl = new ilCheckboxInputGUI($lng->txt("exc_peer_review_personal"), "peer_prsl");
$peer_prsl->setInfo($lng->txt("exc_peer_review_personal_info"));
$peer->addSubItem($peer_prsl);
if ($a_mode != "create" && $this->ass && $this->ass->getDeadline() && $this->ass->getDeadline() < time()) {
//.........这里部分代码省略.........
示例2: initFormLuceneSettings
/**
* Show lucene settings form
* @param
* @return
*/
protected function initFormLuceneSettings()
{
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
include_once './Services/Search/classes/class.ilSearchSettings.php';
$this->settings = ilSearchSettings::getInstance();
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this, 'cancel'));
$this->form->setTitle($this->lng->txt('lucene_settings_title'));
$this->form->addCommandButton('saveLuceneSettings', $this->lng->txt('save'));
$this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
// Offline filter
/*
$offline = new ilCheckboxInputGUI($this->lng->txt('lucene_offline_filter_setting'),'offline_filter');
$offline->setInfo($this->lng->txt('lucene_offline_filter_setting_info'));
$offline->setValue(1);
$offline->setChecked($this->settings->isLuceneOfflineFilterEnabled());
$this->form->addItem($offline);
*/
// user search
$us = new ilCheckboxInputGUI($this->lng->txt('search_user_search_form'), 'user_search_enabled');
$us->setInfo($this->lng->txt('search_user_search_info_form'));
$us->setValue(1);
$us->setChecked($this->settings->isLuceneUserSearchEnabled());
$this->form->addItem($us);
// Item filter
$if = new ilCheckboxInputGUI($this->lng->txt('search_mime_filter_form'), 'mime_enabled');
$if->setValue(1);
$if->setChecked($this->settings->isLuceneMimeFilterEnabled());
$if->setInfo($this->lng->txt('search_item_filter_form_info'));
$this->form->addItem($if);
$mimes = $this->settings->getLuceneMimeFilter();
foreach (ilSearchSettings::getLuceneMimeFilterDefinitions() as $mime => $def) {
$ch = new ilCheckboxInputGUI($this->lng->txt($def['trans']), 'mime[' . $mime . ']');
if (isset($mimes[$mime]) and $mimes[$mime]) {
$ch->setChecked(true);
}
$ch->setValue(1);
$if->addSubItem($ch);
}
$prefix = new ilCheckboxInputGUI($this->lng->txt('lucene_prefix_wildcard'), 'prefix');
$prefix->setValue(1);
$prefix->setInfo($this->lng->txt('lucene_prefix_wildcard_info'));
$prefix->setChecked($this->settings->isPrefixWildcardQueryEnabled());
$this->form->addItem($prefix);
$numFrag = new ilNumberInputGUI($this->lng->txt('lucene_num_fragments'), 'fragmentCount');
$numFrag->setRequired(true);
$numFrag->setSize(2);
$numFrag->setMaxLength(2);
$numFrag->setMinValue(1);
$numFrag->setMaxValue(10);
$numFrag->setInfo($this->lng->txt('lucene_num_frag_info'));
$numFrag->setValue($this->settings->getFragmentCount());
$this->form->addItem($numFrag);
$sizeFrag = new ilNumberInputGUI($this->lng->txt('lucene_size_fragments'), 'fragmentSize');
$sizeFrag->setRequired(true);
$sizeFrag->setSize(2);
$sizeFrag->setMaxLength(4);
$sizeFrag->setMinValue(10);
$sizeFrag->setMaxValue(1000);
$sizeFrag->setInfo($this->lng->txt('lucene_size_frag_info'));
$sizeFrag->setValue($this->settings->getFragmentSize());
$this->form->addItem($sizeFrag);
$maxSub = new ilNumberInputGUI($this->lng->txt('lucene_max_sub'), 'maxSubitems');
$maxSub->setRequired(true);
$maxSub->setSize(2);
$maxSub->setMaxLength(2);
$maxSub->setMinValue(1);
$maxSub->setMaxValue(10);
$maxSub->setInfo($this->lng->txt('lucene_max_sub_info'));
$maxSub->setValue($this->settings->getMaxSubitems());
$this->form->addItem($maxSub);
$relevance = new ilCheckboxInputGUI($this->lng->txt('lucene_relevance'), 'relevance');
$relevance->setOptionTitle($this->lng->txt('lucene_show_relevance'));
$relevance->setInfo($this->lng->txt('lucene_show_relevance_info'));
$relevance->setValue(1);
$relevance->setChecked($this->settings->isRelevanceVisible());
$this->form->addItem($relevance);
// begin-patch mime_filter
$subrel = new ilCheckboxInputGUI('', 'subrelevance');
$subrel->setOptionTitle($this->lng->txt('lucene_show_sub_relevance'));
$subrel->setValue(1);
$subrel->setChecked($this->settings->isSubRelevanceVisible());
$relevance->addSubItem($subrel);
// end-patch mime_filter
$last_index = new ilDateTimeInputGUI($this->lng->txt('lucene_last_index_time'), 'last_index');
$last_index->setShowTime(true);
$last_index->setDate($this->settings->getLastIndexTime());
$last_index->setInfo($this->lng->txt('lucene_last_index_time_info'));
$this->form->addItem($last_index);
return true;
}
示例3: initDateForm
function initDateForm()
{
global $lng, $ilCtrl;
include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($lng->txt('blog_edit_date'));
$date = new ilDateTimeInputGUI($lng->txt("date"), "date");
$date->setRequired(true);
$date->setShowTime(true);
$date->setInfo($lng->txt('blog_edit_date_info'));
$form->addItem($date);
$date->setDate($this->getPageObject()->getCreated());
$form->addCommandButton('updateDate', $lng->txt('save'));
$form->addCommandButton('preview', $lng->txt('cancel'));
return $form;
}
示例4: initPropertiesForm
/**
* Inits form
*/
public function initPropertiesForm()
{
$this->form = new ilPropertyFormGUI();
// title
$ti = new ilTextInputGUI($this->txt("title"), "title");
$ti->setRequired(true);
$this->form->addItem($ti);
// description
$ta = new ilTextAreaInputGUI($this->txt("description"), "desc");
$this->form->addItem($ta);
$instructions = new ilTextAreaInputGUI($this->lng->txt('exc_instruction'), 'instructions');
$instructions->setRows(self::CREATION_FORM_TA_ROWS);
$this->form->addItem($instructions);
// contact_info
$contact_info = new ilTextAreaInputGUI($this->pluginObj->txt("contact_information"), "contact_info");
$contact_info->setRows(self::CREATION_FORM_TA_ROWS);
$this->form->addItem($contact_info);
$radio_access_level = new ilRadioGroupInputGUI($this->pluginObj->txt('access'), 'access_level');
$opt_private = new ilRadioOption($this->pluginObj->txt('private_room'), ilObjAdobeConnect::ACCESS_LEVEL_PRIVATE);
$opt_protected = new ilRadioOption($this->pluginObj->txt('protected_room'), ilObjAdobeConnect::ACCESS_LEVEL_PROTECTED);
$opt_public = new ilRadioOption($this->pluginObj->txt('public_room'), ilObjAdobeConnect::ACCESS_LEVEL_PUBLIC);
$radio_access_level->addOption($opt_private);
$radio_access_level->addOption($opt_protected);
$radio_access_level->addOption($opt_public);
$this->form->addItem($radio_access_level);
$radio_time_type = new ilRadioGroupInputGUI($this->pluginObj->txt('time_type_selection'), 'time_type_selection');
// option: permanent room
if (ilAdobeConnectServer::getSetting('enable_perm_room', '1')) {
$permanent_room = new ilRadioOption($this->pluginObj->txt('permanent_room'), 'permanent_room');
$permanent_room->setInfo($this->pluginObj->txt('permanent_room_info'));
$radio_time_type->addOption($permanent_room);
}
// option: date selection
$opt_date = new ilRadioOption($this->pluginObj->txt('start_date'), 'date_selection');
// start date
$sd = new ilDateTimeInputGUI($this->txt("start_date"), "start_date");
$sd->setDate(new ilDateTime($this->object->getStartDate()->getUnixTime(), IL_CAL_UNIX));
$sd->setShowTime(true);
$sd->setInfo($this->txt("info_start_date"));
$sd->setRequired(true);
$opt_date->addSubItem($sd);
$duration = new ilDurationInputGUI($this->pluginObj->txt("duration"), "duration");
$duration->setRequired(true);
$opt_date->addSubItem($duration);
$radio_time_type->addOption($opt_date);
$this->form->addItem($radio_time_type);
$cb_uploads = new ilCheckboxInputGUI($this->pluginObj->txt('read_contents'), 'read_contents');
$cb_records = new ilCheckboxInputGUI($this->pluginObj->txt('read_records'), 'read_records');
$this->form->addItem($cb_uploads);
$this->form->addItem($cb_records);
$this->form->addCommandButton("updateProperties", $this->txt("save"));
$this->form->addCommandButton("editProperties", $this->txt("cancel"));
$this->form->setTitle($this->txt("edit_properties"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}
示例5: parseEditor
/**
* Parse property form in editor mode
*
* @access private
*
*/
private function parseEditor()
{
global $ilUser;
include_once 'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php';
foreach (ilAdvancedMDRecord::_getActivatedRecordsByObjectType($this->obj_type) as $record_obj) {
$section = new ilFormSectionHeaderGUI();
$section->setTitle($record_obj->getTitle());
$section->setInfo($record_obj->getDescription());
$this->form->addItem($section);
include_once 'Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php';
foreach (ilAdvancedMDFieldDefinition::_getDefinitionsByRecordId($record_obj->getRecordId()) as $def) {
if ($this->handleECSDefinitions($def)) {
continue;
}
include_once 'Services/AdvancedMetaData/classes/class.ilAdvancedMDValue.php';
$value = ilAdvancedMDValue::_getInstance($this->obj_id, $def->getFieldId());
switch ($def->getFieldType()) {
case ilAdvancedMDFieldDefinition::TYPE_TEXT:
$text = new ilTextInputGUI($def->getTitle(), 'md[' . $def->getFieldId() . ']');
$text->setValue($value->getValue());
$text->setSize(40);
$text->setMaxLength(512);
$text->setDisabled($value->isDisabled());
$text->setInfo($def->getDescription());
$this->form->addItem($text);
break;
case ilAdvancedMDFieldDefinition::TYPE_SELECT:
$select = new ilSelectInputGUI($def->getTitle(), 'md[' . $def->getFieldId() . ']');
$select->setOptions($def->getFieldValuesForSelect());
$select->setValue($value->getValue());
$select->setDisabled($value->isDisabled());
$select->setInfo($def->getDescription());
$this->form->addItem($select);
break;
case ilAdvancedMDFieldDefinition::TYPE_DATE:
$unixtime = $value->getValue() ? $value->getValue() : mktime(8, 0, 0, date('m'), date('d'), date('Y'));
$time = new ilDateTimeInputGUI($def->getTitle(), 'md[' . $def->getFieldId() . ']');
$time->setShowTime(false);
$time->setDate(new ilDate($unixtime, IL_CAL_UNIX));
$time->enableDateActivation($this->lng->txt('enabled'), 'md_activated[' . $def->getFieldId() . ']', $value->getValue() ? true : false);
$time->setDisabled($value->isDisabled());
$time->setInfo($def->getDescription());
$this->form->addItem($time);
break;
case ilAdvancedMDFieldDefinition::TYPE_DATETIME:
$unixtime = $value->getValue() ? $value->getValue() : mktime(8, 0, 0, date('m'), date('d'), date('Y'));
$time = new ilDateTimeInputGUI($def->getTitle(), 'md[' . $def->getFieldId() . ']');
$time->setShowTime(true);
$time->setDate(new ilDateTime($unixtime, IL_CAL_UNIX, $ilUser->getTimeZone()));
$time->enableDateActivation($this->lng->txt('enabled'), 'md_activated[' . $def->getFieldId() . ']', $value->getValue() ? true : false);
$time->setDisabled($value->isDisabled());
$this->form->addItem($time);
break;
}
}
}
}
示例6: initEditForm
/**
* Init object edit form
*
* @return ilPropertyFormGUI
*/
protected function initEditForm()
{
global $lng, $ilCtrl;
$lng->loadLanguageModule($this->object->getType());
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this, "update"));
$form->setTitle($this->lng->txt($this->object->getType() . "_edit"));
// title
$ti = new ilTextInputGUI($this->lng->txt("title"), "title");
$ti->setMaxLength(128);
$ti->setSize(40);
$ti->setRequired(true);
$form->addItem($ti);
$ti = new ilDateTimeInputGUI($this->lng->txt("title"), "datum");
$ti->setInfo("bitte ausfüllen");
$ti->setRequired(false);
$form->addItem($ti);
// description
$ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
$ta->setCols(40);
$ta->setRows(2);
$form->addItem($ta);
$this->initEditCustomForm($form);
$form->addCommandButton("update", $this->lng->txt("save"));
//$this->form->addCommandButton("cancelUpdate", $lng->txt("cancel"));
return $form;
}
示例7: initFormLuceneSettings
/**
* Show lucene settings form
* @param
* @return
*/
protected function initFormLuceneSettings()
{
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
include_once './Services/Search/classes/class.ilSearchSettings.php';
$this->settings = ilSearchSettings::getInstance();
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this, 'cancel'));
$this->form->setTitle($this->lng->txt('lucene_settings_title'));
$this->form->addCommandButton('saveLuceneSettings', $this->lng->txt('save'));
$this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
// Offline filter
/*
$offline = new ilCheckboxInputGUI($this->lng->txt('lucene_offline_filter_setting'),'offline_filter');
$offline->setInfo($this->lng->txt('lucene_offline_filter_setting_info'));
$offline->setValue(1);
$offline->setChecked($this->settings->isLuceneOfflineFilterEnabled());
$this->form->addItem($offline);
*/
$numFrag = new ilNumberInputGUI($this->lng->txt('lucene_num_fragments'), 'fragmentCount');
$numFrag->setRequired(true);
$numFrag->setSize(2);
$numFrag->setMaxLength(2);
$numFrag->setMinValue(1);
$numFrag->setMaxValue(10);
$numFrag->setInfo($this->lng->txt('lucene_num_frag_info'));
$numFrag->setValue($this->settings->getFragmentCount());
$this->form->addItem($numFrag);
$sizeFrag = new ilNumberInputGUI($this->lng->txt('lucene_size_fragments'), 'fragmentSize');
$sizeFrag->setRequired(true);
$sizeFrag->setSize(2);
$sizeFrag->setMaxLength(4);
$sizeFrag->setMinValue(10);
$sizeFrag->setMaxValue(1000);
$sizeFrag->setInfo($this->lng->txt('lucene_size_frag_info'));
$sizeFrag->setValue($this->settings->getFragmentSize());
$this->form->addItem($sizeFrag);
$maxSub = new ilNumberInputGUI($this->lng->txt('lucene_max_sub'), 'maxSubitems');
$maxSub->setRequired(true);
$maxSub->setSize(2);
$maxSub->setMaxLength(2);
$maxSub->setMinValue(1);
$maxSub->setMaxValue(10);
$maxSub->setInfo($this->lng->txt('lucene_max_sub_info'));
$maxSub->setValue($this->settings->getMaxSubitems());
$this->form->addItem($maxSub);
$relevance = new ilCheckboxInputGUI($this->lng->txt('lucene_relevance'), 'relevance');
$relevance->setOptionTitle($this->lng->txt('lucene_show_relevance'));
$relevance->setInfo($this->lng->txt('lucene_show_relevance_info'));
$relevance->setValue(1);
$relevance->setChecked($this->settings->isRelevanceVisible());
$this->form->addItem($relevance);
$last_index = new ilDateTimeInputGUI($this->lng->txt('lucene_last_index_time'), 'last_index');
$last_index->setShowTime(true);
$last_index->setDate($this->settings->getLastIndexTime());
$last_index->setInfo($this->lng->txt('lucene_last_index_time_info'));
$this->form->addItem($last_index);
return true;
}
示例8: initPropertiesForm
/**
* Inits form
*/
public function initPropertiesForm()
{
global $ilCtrl;
$this->form = new ilPropertyFormGUI();
// title
$ti = new ilTextInputGUI($this->txt("title"), "title");
$ti->setRequired(true);
$this->form->addItem($ti);
// description
$ta = new ilTextAreaInputGUI($this->txt("description"), "desc");
$this->form->addItem($ta);
$instructions = new ilTextAreaInputGUI($this->lng->txt('exc_instruction'), 'instructions');
$instructions->setRows(self::CREATION_FORM_TA_ROWS);
$instructions->setCols(self::CREATION_FORM_TA_COLS);
$this->form->addItem($instructions);
// contact_info
$contact_info = new ilTextAreaInputGUI($this->pluginObj->txt("contact_information"), "contact_info");
$contact_info->setRows(self::CREATION_FORM_TA_ROWS);
$contact_info->setCols(self::CREATION_FORM_TA_COLS);
$this->form->addItem($contact_info);
$radio_access_level = new ilRadioGroupInputGUI($this->pluginObj->txt('access'), 'access_level');
$opt_private = new ilRadioOption($this->pluginObj->txt('private_room'), ilObjAdobeConnect::ACCESS_LEVEL_PRIVATE);
$opt_protected = new ilRadioOption($this->pluginObj->txt('protected_room'), ilObjAdobeConnect::ACCESS_LEVEL_PROTECTED);
$opt_public = new ilRadioOption($this->pluginObj->txt('public_room'), ilObjAdobeConnect::ACCESS_LEVEL_PUBLIC);
$radio_access_level->addOption($opt_private);
$radio_access_level->addOption($opt_protected);
$radio_access_level->addOption($opt_public);
$this->form->addItem($radio_access_level);
$radio_time_type = new ilRadioGroupInputGUI($this->pluginObj->txt('time_type_selection'), 'time_type_selection');
// option: permanent room
$permanent_room = new ilRadioOption($this->pluginObj->txt('permanent_room'), 'permanent_room');
$permanent_room->setInfo($this->pluginObj->txt('permanent_room_info'));
$radio_time_type->addOption($permanent_room);
// option: date selection
$opt_date = new ilRadioOption($this->pluginObj->txt('start_date'), 'date_selection');
// start date
$sd = new ilDateTimeInputGUI($this->txt("start_date"), "start_date");
$sd->setDate(new ilDateTime($this->object->getStartDate()->getUnixTime(), IL_CAL_UNIX));
$sd->setShowTime(true);
$sd->setInfo($this->txt("info_start_date"));
$sd->setRequired(true);
$opt_date->addSubItem($sd);
$duration = new ilDurationInputGUI($this->pluginObj->txt("duration"), "duration");
$duration->setRequired(true);
$opt_date->addSubItem($duration);
$radio_time_type->addOption($opt_date);
$this->form->addItem($radio_time_type);
$cb_uploads = new ilCheckboxInputGUI($this->pluginObj->txt('read_contents'), 'read_contents');
$cb_records = new ilCheckboxInputGUI($this->pluginObj->txt('read_records'), 'read_records');
$this->form->addItem($cb_uploads);
$this->form->addItem($cb_records);
$settings = ilAdobeConnectServer::_getInstance();
$available_langs = $settings->getSetting('langs');
if ($available_langs == '' || $available_langs == NULL) {
$available_langs = 'en';
}
$available_langs = explode(",", $available_langs);
$available_langs_prepared = array();
foreach ($available_langs as $lang) {
$lang = trim($lang);
$available_langs_prepared[$lang] = $lang;
}
$meeting_lang = new ilSelectInputGUI($this->pluginObj->txt('meeting_lang'), 'meeting_lang');
$meeting_lang->setOptions($available_langs_prepared);
$meeting_lang->setRequired(true);
$this->form->addItem($meeting_lang);
$max_allowed_pax = $settings->getSetting('max_pax');
if (empty($max_allowed_pax)) {
$max_allowed_pax = 200;
}
$max_pax = new ilNumberInputGUI($this->pluginObj->txt('max_pax'), 'max_pax');
$max_pax->setInfo($this->pluginObj->txt('max_pax_desc'));
$max_pax->allowDecimals(false);
$max_pax->setMaxValue($max_allowed_pax);
$this->form->addItem($max_pax);
$this->form->addCommandButton("updateProperties", $this->txt("save"));
$this->form->addCommandButton("editProperties", $this->txt("cancel"));
$this->form->setTitle($this->txt("edit_properties"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}