本文整理汇总了PHP中ilTextInputGUI::setMultiValues方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTextInputGUI::setMultiValues方法的具体用法?PHP ilTextInputGUI::setMultiValues怎么用?PHP ilTextInputGUI::setMultiValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTextInputGUI
的用法示例。
在下文中一共展示了ilTextInputGUI::setMultiValues方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initPropertiesForm
//.........这里部分代码省略.........
$participantdatainfo = new ilNonEditableValueGUI($this->lng->txt("mailparticipantdata_placeholder"), "", true);
$participantdatainfo->setValue($txt);
$mailnotification->addSubItem($mailaddresses);
$mailnotification->addSubItem($participantdata);
$mailnotification->addSubItem($participantdatainfo);
$form->addItem($mailnotification);
// tutor notification - currently not available for 360°
if (!$this->object->get360Mode()) {
// parent course?
global $tree;
$has_parent = $tree->checkForParentType($this->object->getRefId(), "grp");
if (!$has_parent) {
$has_parent = $tree->checkForParentType($this->object->getRefId(), "crs");
}
$num_inv = sizeof($this->object->getInvitedUsers());
// notification
$tut = new ilCheckboxInputGUI($this->lng->txt("survey_notification_tutor_setting"), "tut");
$tut->setChecked($this->object->getTutorNotificationStatus());
$form->addItem($tut);
$tut_logins = array();
$tuts = $this->object->getTutorNotificationRecipients();
if ($tuts) {
foreach ($tuts as $tut_id) {
$tmp = ilObjUser::_lookupName($tut_id);
if ($tmp["login"]) {
$tut_logins[] = $tmp["login"];
}
}
}
$tut_ids = new ilTextInputGUI($this->lng->txt("survey_notification_tutor_recipients"), "tut_ids");
$tut_ids->setDataSource($this->ctrl->getLinkTarget($this, "doAutoComplete", "", true));
$tut_ids->setRequired(true);
$tut_ids->setMulti(true);
$tut_ids->setMultiValues($tut_logins);
$tut_ids->setValue(array_shift($tut_logins));
$tut->addSubItem($tut_ids);
$tut_grp = new ilRadioGroupInputGUI($this->lng->txt("survey_notification_target_group"), "tut_grp");
$tut_grp->setRequired(true);
$tut_grp->setValue($this->object->getTutorNotificationTarget());
$tut->addSubItem($tut_grp);
$tut_grp_crs = new ilRadioOption($this->lng->txt("survey_notification_target_group_parent_course"), ilObjSurvey::NOTIFICATION_PARENT_COURSE);
if (!$has_parent) {
$tut_grp_crs->setInfo($this->lng->txt("survey_notification_target_group_parent_course_inactive"));
}
$tut_grp->addOption($tut_grp_crs);
$tut_grp_inv = new ilRadioOption($this->lng->txt("survey_notification_target_group_invited"), ilObjSurvey::NOTIFICATION_INVITED_USERS);
$tut_grp_inv->setInfo(sprintf($this->lng->txt("survey_notification_target_group_invited_info"), $num_inv));
$tut_grp->addOption($tut_grp_inv);
}
// reminders
// reminder - currently not available for 360°
if (!$this->object->get360Mode()) {
$info = new ilFormSectionHeaderGUI();
$info->setTitle($this->lng->txt("svy_settings_section_reminders"));
$form->addItem($info);
$rmd = new ilCheckboxInputGUI($this->lng->txt("survey_reminder_setting"), "rmd");
$rmd->setChecked($this->object->getReminderStatus());
$form->addItem($rmd);
$rmd_start = new ilDateTimeInputGUI($this->lng->txt("survey_reminder_start"), "rmd_start");
$rmd_start->setRequired(true);
$start = $this->object->getReminderStart();
if ($start) {
$rmd_start->setDate($start);
}
$rmd->addSubItem($rmd_start);
$end = $this->object->getReminderEnd();
示例2: createAndSetParticipantsMultiTextInput
private function createAndSetParticipantsMultiTextInput($a_bookingData)
{
global $rssPermission;
$participants_input = new ilTextInputGUI($this->lng->txt("rep_robj_xrs_participants_list"), "participants");
$participants_input->setMulti(true);
$ajax_datasource = $this->ctrl->getLinkTarget($this, 'doUserAutoComplete', '', true);
$participants_input->setDataSource($ajax_datasource);
$participants_input->setInfo($this->getMaxRoomAllocationInfo());
if (!empty($a_bookingData[0])) {
$participants_input->setValue($a_bookingData[0]);
}
$participants_input->setMultiValues($a_bookingData);
if ($this->mode == 'show' || !$rssPermission->checkPrivilege(ilRoomSharingPrivilegesConstants::ADD_PARTICIPANTS)) {
$participants_input->setDisabled(true);
}
return $participants_input;
}