本文整理汇总了PHP中ilTextAreaInputGUI::setRteTagSet方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTextAreaInputGUI::setRteTagSet方法的具体用法?PHP ilTextAreaInputGUI::setRteTagSet怎么用?PHP ilTextAreaInputGUI::setRteTagSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTextAreaInputGUI
的用法示例。
在下文中一共展示了ilTextAreaInputGUI::setRteTagSet方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initLoginForm
/**
* Init login form
*/
protected function initLoginForm()
{
global $rbacsystem, $lng, $ilSetting;
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this, 'saveLoginInfo'));
$this->form->setTableWidth('80%');
$this->form->setTitle($this->lng->txt('login_information'));
$this->form->addCommandButton('saveLoginInfo', $this->lng->txt('save'));
include_once 'Services/LDAP/classes/class.ilLDAPServer.php';
include_once 'Services/Radius/classes/class.ilRadiusSettings.php';
$rad_settings = ilRadiusSettings::_getInstance();
if ($ldap_id = ilLDAPServer::_getFirstActiveServer() or $rad_settings->isActive()) {
$select = new ilSelectInputGUI($this->lng->txt('default_auth_mode'), 'default_auth_mode');
$select->setValue($ilSetting->get('default_auth_mode', AUTH_LOCAL));
$select->setInfo($this->lng->txt('default_auth_mode_info'));
$options[AUTH_LOCAL] = $this->lng->txt('auth_local');
if ($ldap_id) {
$options[AUTH_LDAP] = $this->lng->txt('auth_ldap');
}
if ($rad_settings->isActive()) {
$options[AUTH_RADIUS] = $this->lng->txt('auth_radius');
}
$select->setOptions($options);
$this->form->addItem($select);
}
if (!is_object($this->loginSettings)) {
$this->loginSettings = new ilSetting("login_settings");
}
$login_settings = $this->loginSettings->getAll();
$languages = $lng->getInstalledLanguages();
$def_language = $lng->getDefaultLanguage();
foreach ($this->setDefLangFirst($def_language, $languages) as $lang_key) {
$add = "";
if ($lang_key == $def_language) {
$add = " (" . $lng->txt("default") . ")";
}
$textarea = new ilTextAreaInputGUI($lng->txt("meta_l_" . $lang_key) . $add, 'login_message_' . $lang_key);
$textarea->setRows(10);
$textarea->setValue($login_settings["login_message_" . $lang_key]);
$textarea->setUseRte(true);
$textarea->setRteTagSet("extended");
$this->form->addItem($textarea);
unset($login_settings["login_message_" . $lang_key]);
}
foreach ($login_settings as $key => $message) {
$lang_key = substr($key, strrpos($key, "_") + 1, strlen($key) - strrpos($key, "_"));
$textarea = new ilTextAreaInputGUI($lng->txt("meta_l_" . $lang_key) . $add, 'login_message_' . $lang_key);
$textarea->setRows(10);
$textarea->setValue($message);
$textarea->setUseRte(true);
$textarea->setRteTagSet("extended");
if (!in_array($lang_key, $languages)) {
$textarea->setAlert($lng->txt("not_installed"));
}
$this->form->addItem($textarea);
}
}
示例2: 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()) {
//.........这里部分代码省略.........
示例3: initForm
/**
* initEditCustomForm
*
* @param string $a_mode
*/
public function initForm($a_mode = "create")
{
global $ilCtrl, $ilErr, $lng;
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->form = new ilPropertyFormGUI();
$item = new ilTextInputGUI($lng->txt('title'), 'title');
$item->setRequired(true);
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_visible'), 'is_visible');
$this->form->addItem($item);
$item = new ilTextAreaInputGUI($lng->txt('additional_info'), 'description');
$item->setUseRte(true);
// $item->setRTESupport($this->table->getId(), 'dcl', 'table_settings');
$item->setRteTagSet('mini');
$this->form->addItem($item);
$section = new ilFormSectionHeaderGUI();
$section->setTitle($lng->txt('dcl_permissions_form'));
$this->form->addItem($section);
$item = new ilCustomInputGUI();
$item->setHtml($lng->txt('dcl_table_info'));
$item->setTitle($lng->txt('dcl_table_info_title'));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_add_perm'), 'add_perm');
// $item->setInfo($lng->txt("dcl_add_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_edit_perm'), 'edit_perm');
// $item->setInfo($lng->txt("dcl_edit_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_delete_perm'), 'delete_perm');
// $item->setInfo($lng->txt("dcl_delete_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_edit_by_owner'), 'edit_by_owner');
// $item->setInfo($lng->txt("dcl_edit_by_owner_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_export_enabled'), 'export_enabled');
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($lng->txt('dcl_limited'), 'limited');
$sitem1 = new ilDateTimeInputGUI($lng->txt('dcl_limit_start'), 'limit_start');
$sitem2 = new ilDateTimeInputGUI($lng->txt('dcl_limit_end'), 'limit_end');
// $item->setInfo($lng->txt("dcl_limited_info"));
$item->addSubItem($sitem1);
$item->addSubItem($sitem2);
$this->form->addItem($item);
if ($a_mode == "edit") {
$this->form->addCommandButton('update', $lng->txt('dcl_table_' . $a_mode));
} else {
$this->form->addCommandButton('save', $lng->txt('dcl_table_' . $a_mode));
}
$this->form->addCommandButton('cancel', $lng->txt('cancel'));
$this->form->setFormAction($ilCtrl->getFormAction($this, $a_mode));
if ($a_mode == "edit") {
$this->form->setTitle($lng->txt('dcl_edit_table'));
} else {
$this->form->setTitle($lng->txt('dcl_new_table'));
}
}
示例4: buildForm
//.........这里部分代码省略.........
$opt->setInfo($this->lng->txt('tst_availability_until_info'));
$this->tpl->addJavaScript('./Services/Form/js/date_duration.js');
include_once "Services/Form/classes/class.ilDateDurationInputGUI.php";
$dur = new ilDateDurationInputGUI("", "access_period");
$dur->setShowTime(true);
$date = $this->testOBJ->getActivationStartingTime();
$dur->setStart(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setStartText($this->lng->txt('rep_activation_limited_start'));
$date = $this->testOBJ->getActivationEndingTime();
$dur->setEnd(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setEndText($this->lng->txt('rep_activation_limited_end'));
$opt->addSubItem($dur);
$visible = new ilCheckboxInputGUI($this->lng->txt('rep_activation_limited_visibility'), 'activation_visibility');
$visible->setInfo($this->lng->txt('tst_activation_limited_visibility_info'));
$visible->setChecked($this->testOBJ->getActivationVisibility());
$opt->addSubItem($visible);
$act_type->addOption($opt);
$form->addItem($act_type);
if (!$this->settingsTemplate || $this->formShowBeginningEndingInformation($this->settingsTemplate->getSettings())) {
// general properties
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("tst_beginning_ending_information"));
$form->addItem($header);
}
// introduction
$intro = new ilTextAreaInputGUI($this->lng->txt("tst_introduction"), "introduction");
$intro->setValue($this->testOBJ->prepareTextareaOutput($this->testOBJ->getIntroduction()));
$intro->setRows(10);
$intro->setCols(80);
$intro->setUseRte(TRUE);
$intro->addPlugin("latex");
$intro->addButton("latex");
$intro->setRTESupport($this->testOBJ->getId(), "tst", "assessment");
$intro->setRteTagSet('full');
$intro->setInfo($this->lng->txt('intro_desc'));
// showinfo
$showinfo = new ilCheckboxInputGUI('', "showinfo");
$showinfo->setValue(1);
$showinfo->setChecked($this->testOBJ->getShowInfo());
$showinfo->setOptionTitle($this->lng->txt("showinfo"));
$showinfo->setInfo($this->lng->txt("showinfo_desc"));
$intro->addSubItem($showinfo);
$form->addItem($intro);
// final statement
$finalstatement = new ilTextAreaInputGUI($this->lng->txt("final_statement"), "finalstatement");
$finalstatement->setValue($this->testOBJ->prepareTextareaOutput($this->testOBJ->getFinalStatement()));
$finalstatement->setRows(10);
$finalstatement->setCols(80);
$finalstatement->setUseRte(TRUE);
$finalstatement->addPlugin("latex");
$finalstatement->addButton("latex");
$finalstatement->setRTESupport($this->testOBJ->getId(), "tst", "assessment");
$finalstatement->setRteTagSet('full');
// show final statement
$showfinal = new ilCheckboxInputGUI('', "showfinalstatement");
$showfinal->setValue(1);
$showfinal->setChecked($this->testOBJ->getShowFinalStatement());
$showfinal->setOptionTitle($this->lng->txt("final_statement_show"));
$showfinal->setInfo($this->lng->txt("final_statement_show_desc"));
$finalstatement->addSubItem($showfinal);
$form->addItem($finalstatement);
// examview
$enable_examview = new ilCheckboxInputGUI($this->lng->txt("enable_examview"), 'enable_examview');
$enable_examview->setValue(1);
$enable_examview->setChecked($this->testOBJ->getEnableExamview());
$enable_examview->setInfo($this->lng->txt("enable_examview_desc"));
示例5: initForm
/**
* initEditCustomForm
*
* @param string $a_mode
*/
public function initForm($a_mode = "create")
{
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->form = new ilPropertyFormGUI();
$item = new ilTextInputGUI($this->lng->txt('title'), 'title');
$item->setRequired(true);
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_visible'), 'is_visible');
$this->form->addItem($item);
// Show default order field and direction only in edit mode, because table id is not yet given and there are no fields to select
if ($a_mode != 'create') {
$item = new ilSelectInputGUI($this->lng->txt('dcl_default_sort_field'), 'default_sort_field');
$fields = $this->table->getVisibleFields();
$options = array(0 => $this->lng->txt('dcl_please_select'));
foreach ($fields as $field) {
$options[$field->getId()] = $field->getTitle();
}
$item->setOptions($options);
$this->form->addItem($item);
$item = new ilSelectInputGUI($this->lng->txt('dcl_default_sort_field_order'), 'default_sort_field_order');
$options = array('asc' => $this->lng->txt('dcl_asc'), 'desc' => $this->lng->txt('dcl_desc'));
$item->setOptions($options);
$this->form->addItem($item);
}
$item = new ilTextAreaInputGUI($this->lng->txt('additional_info'), 'description');
$item->setUseRte(true);
// $item->setRTESupport($this->table->getId(), 'dcl', 'table_settings');
$item->setRteTagSet('mini');
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_public_comments'), 'public_comments');
$this->form->addItem($item);
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('dcl_permissions_form'));
$this->form->addItem($section);
$item = new ilCustomInputGUI();
$item->setHtml($this->lng->txt('dcl_table_info'));
$item->setTitle($this->lng->txt('dcl_table_info_title'));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_add_perm'), 'add_perm');
// $item->setInfo($this->lng->txt("dcl_add_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_edit_perm'), 'edit_perm');
// $item->setInfo($this->lng->txt("dcl_edit_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_delete_perm'), 'delete_perm');
// $item->setInfo($this->lng->txt("dcl_delete_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_edit_by_owner'), 'edit_by_owner');
// $item->setInfo($this->lng->txt("dcl_edit_by_owner_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_view_own_records_perm'), 'view_own_records_perm');
// $item->setInfo($this->lng->txt("dcl_edit_by_owner_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_export_enabled'), 'export_enabled');
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_limited'), 'limited');
$sitem1 = new ilDateTimeInputGUI($this->lng->txt('dcl_limit_start'), 'limit_start');
$sitem1->setShowTime(true);
$sitem2 = new ilDateTimeInputGUI($this->lng->txt('dcl_limit_end'), 'limit_end');
$sitem2->setShowTime(true);
// $item->setInfo($this->lng->txt("dcl_limited_info"));
$item->addSubItem($sitem1);
$item->addSubItem($sitem2);
$this->form->addItem($item);
if ($a_mode == "edit") {
$this->form->addCommandButton('update', $this->lng->txt('dcl_table_' . $a_mode));
} else {
$this->form->addCommandButton('save', $this->lng->txt('dcl_table_' . $a_mode));
}
$this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
$this->form->setFormAction($this->ctrl->getFormAction($this, $a_mode));
if ($a_mode == "edit") {
$this->form->setTitle($this->lng->txt('dcl_edit_table'));
} else {
$this->form->setTitle($this->lng->txt('dcl_new_table'));
}
}
示例6: addTestFinishProperties
/**
* @param ilPropertyFormGUI $form
*/
private function addTestFinishProperties(ilPropertyFormGUI $form)
{
$testFinishHeader = new ilFormSectionHeaderGUI();
$testFinishHeader->setTitle($this->lng->txt("tst_final_information"));
$form->addItem($testFinishHeader);
// examview
$enable_examview = new ilCheckboxInputGUI($this->lng->txt("enable_examview"), 'enable_examview');
$enable_examview->setValue(1);
$enable_examview->setChecked($this->testOBJ->getEnableExamview());
$enable_examview->setInfo($this->lng->txt("enable_examview_desc"));
$show_examview_html = new ilCheckboxInputGUI('', 'show_examview_html');
$show_examview_html->setValue(1);
$show_examview_html->setChecked($this->testOBJ->getShowExamviewHtml());
$show_examview_html->setOptionTitle($this->lng->txt("show_examview_html"));
$enable_examview->addSubItem($show_examview_html);
$show_examview_pdf = new ilCheckboxInputGUI('', 'show_examview_pdf');
$show_examview_pdf->setValue(1);
$show_examview_pdf->setChecked($this->testOBJ->getShowExamviewPdf());
$show_examview_pdf->setOptionTitle($this->lng->txt("show_examview_pdf"));
$enable_examview->addSubItem($show_examview_pdf);
$form->addItem($enable_examview);
// show final statement
$showfinal = new ilCheckboxInputGUI($this->lng->txt("final_statement"), "showfinalstatement");
$showfinal->setChecked($this->testOBJ->getShowFinalStatement());
$showfinal->setInfo($this->lng->txt("final_statement_show_desc"));
$form->addItem($showfinal);
// final statement
$finalstatement = new ilTextAreaInputGUI($this->lng->txt("final_statement"), "finalstatement");
$finalstatement->setRequired(true);
$finalstatement->setValue($this->testOBJ->prepareTextareaOutput($this->testOBJ->getFinalStatement(), false, true));
$finalstatement->setRows(10);
$finalstatement->setCols(80);
$finalstatement->setUseRte(TRUE);
$finalstatement->addPlugin("latex");
$finalstatement->addButton("latex");
$finalstatement->setRTESupport($this->testOBJ->getId(), "tst", "assessment");
$finalstatement->setRteTagSet('full');
$showfinal->addSubItem($finalstatement);
$redirection_mode = $this->testOBJ->getRedirectionMode();
$rm_enabled = new ilCheckboxInputGUI($this->lng->txt('redirect_after_finishing_tst'), 'redirection_enabled');
$rm_enabled->setInfo($this->lng->txt('redirect_after_finishing_tst_desc'));
$rm_enabled->setChecked($redirection_mode == '0' ? false : true);
$radio_rm = new ilRadioGroupInputGUI($this->lng->txt('redirect_after_finishing_rule'), 'redirection_mode');
$always = new ilRadioOption($this->lng->txt('redirect_always'), REDIRECT_ALWAYS);
$radio_rm->addOption($always);
$kiosk = new ilRadioOption($this->lng->txt('redirect_in_kiosk_mode'), REDIRECT_KIOSK);
$radio_rm->addOption($kiosk);
$radio_rm->setValue(in_array($redirection_mode, array(REDIRECT_ALWAYS, REDIRECT_KIOSK)) ? $redirection_mode : REDIRECT_ALWAYS);
$rm_enabled->addSubItem($radio_rm);
$redirection_url = new ilTextInputGUI($this->lng->txt('redirection_url'), 'redirection_url');
$redirection_url->setValue((string) $this->testOBJ->getRedirectionUrl());
$redirection_url->setRequired(true);
$rm_enabled->addSubItem($redirection_url);
$form->addItem($rm_enabled);
// Sign submission
$sign_submission = $this->testOBJ->getSignSubmission();
$sign_submission_enabled = new ilCheckboxInputGUI($this->lng->txt('sign_submission'), 'sign_submission');
$sign_submission_enabled->setChecked($sign_submission);
$sign_submission_enabled->setInfo($this->lng->txt('sign_submission_info'));
$form->addItem($sign_submission_enabled);
// mail notification
$mailnotification = new ilCheckboxInputGUI($this->lng->txt("tst_finish_notification"), "mailnotification");
$mailnotification->setInfo($this->lng->txt("tst_finish_notification_desc"));
$mailnotification->setChecked($this->testOBJ->getMailNotification() > 0);
$form->addItem($mailnotification);
$mailnotificationContent = new ilRadioGroupInputGUI($this->lng->txt("tst_finish_notification_content"), "mailnotification_content");
$mailnotificationContent->addOption(new ilRadioOption($this->lng->txt("tst_finish_notification_simple"), 1, ''));
$mailnotificationContent->addOption(new ilRadioOption($this->lng->txt("tst_finish_notification_advanced"), 2, ''));
$mailnotificationContent->setValue($this->testOBJ->getMailNotification() ? $this->testOBJ->getMailNotification() : 1);
$mailnotificationContent->setRequired(true);
$mailnotification->addSubItem($mailnotificationContent);
$mailnottype = new ilCheckboxInputGUI('', "mailnottype");
$mailnottype->setValue(1);
$mailnottype->setOptionTitle($this->lng->txt("mailnottype"));
$mailnottype->setChecked($this->testOBJ->getMailNotificationType());
$mailnotification->addSubItem($mailnottype);
}
示例7: propertiesObject
//.........这里部分代码省略.........
$date = $this->object->getActivationStartingTime();
$start = new ilDateTimeInputGUI($this->lng->txt('rep_activation_limited_start'), 'act_starting_time');
#$start->setMode(ilDateTimeInputGUI::MODE_INPUT);
$start->setShowTime(true);
$start->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($start);
$date = $this->object->getActivationEndingTime();
$end = new ilDateTimeInputGUI($this->lng->txt('rep_activation_limited_end'), 'act_ending_time');
#$end->setMode(ilDateTimeInputGUI::MODE_INPUT);
$end->setShowTime(true);
$end->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($end);
$visible = new ilCheckboxInputGUI($this->lng->txt('rep_activation_limited_visibility'), 'activation_visibility');
$visible->setInfo($this->lng->txt('tst_activation_limited_visibility_info'));
$visible->setChecked($this->object->getActivationVisibility());
$opt->addSubItem($visible);
$act_type->addOption($opt);
$form->addItem($act_type);
if (!$template || $template && $this->formShowBeginningEndingInformation($template_settings)) {
// general properties
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("tst_beginning_ending_information"));
$form->addItem($header);
}
// introduction
$intro = new ilTextAreaInputGUI($this->lng->txt("tst_introduction"), "introduction");
$intro->setValue($this->object->prepareTextareaOutput($this->object->getIntroduction()));
$intro->setRows(10);
$intro->setCols(80);
$intro->setUseRte(TRUE);
$intro->addPlugin("latex");
$intro->addButton("latex");
$intro->setRTESupport($this->object->getId(), "tst", 'assessment', null, false, '3.4.7');
$intro->setRteTagSet('full');
$intro->setInfo($this->lng->txt('intro_desc'));
// showinfo
$showinfo = new ilCheckboxInputGUI('', "showinfo");
$showinfo->setValue(1);
$showinfo->setChecked($this->object->getShowInfo());
$showinfo->setOptionTitle($this->lng->txt("showinfo"));
$showinfo->setInfo($this->lng->txt("showinfo_desc"));
$intro->addSubItem($showinfo);
$form->addItem($intro);
// final statement
$finalstatement = new ilTextAreaInputGUI($this->lng->txt("final_statement"), "finalstatement");
$finalstatement->setValue($this->object->prepareTextareaOutput($this->object->getFinalStatement()));
$finalstatement->setRows(10);
$finalstatement->setCols(80);
$finalstatement->setUseRte(TRUE);
$finalstatement->addPlugin("latex");
$finalstatement->addButton("latex");
$finalstatement->setRTESupport($this->object->getId(), "tst", "assessment", null, false, '3.4.7');
$finalstatement->setRteTagSet('full');
// show final statement
$showfinal = new ilCheckboxInputGUI('', "showfinalstatement");
$showfinal->setValue(1);
$showfinal->setChecked($this->object->getShowFinalStatement());
$showfinal->setOptionTitle($this->lng->txt("final_statement_show"));
$showfinal->setInfo($this->lng->txt("final_statement_show_desc"));
$finalstatement->addSubItem($showfinal);
$form->addItem($finalstatement);
if (!$template || $template && $this->formShowSessionSection($template_settings)) {
// session properties
$sessionheader = new ilFormSectionHeaderGUI();
$sessionheader->setTitle($this->lng->txt("tst_session_settings"));
$form->addItem($sessionheader);