本文整理汇总了PHP中ilInfoScreenGUI::enableFeedback方法的典型用法代码示例。如果您正苦于以下问题:PHP ilInfoScreenGUI::enableFeedback方法的具体用法?PHP ilInfoScreenGUI::enableFeedback怎么用?PHP ilInfoScreenGUI::enableFeedback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilInfoScreenGUI
的用法示例。
在下文中一共展示了ilInfoScreenGUI::enableFeedback方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: infoScreen
/**
* show information screen
*/
function infoScreen()
{
global $ilErr, $ilAccess, $ilUser, $ilSetting;
$this->checkPermission('visible');
// Fill meta header tags
include_once 'Services/MetaData/classes/class.ilMDUtils.php';
ilMDUtils::_fillHTMLMetaTags($this->object->getId(), $this->object->getId(), 'crs');
$this->tabs_gui->setTabActive('info_short');
include_once "./Services/InfoScreen/classes/class.ilInfoScreenGUI.php";
include_once 'Modules/Course/classes/class.ilCourseFile.php';
$files =& ilCourseFile::_readFilesByCourse($this->object->getId());
$info = new ilInfoScreenGUI($this);
$info->enablePrivateNotes();
$info->enableFeedback();
$info->enableNews();
if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
$info->enableNewsEditing();
}
if (strlen($this->object->getImportantInformation()) or strlen($this->object->getSyllabus()) or count($files)) {
$info->addSection($this->lng->txt('crs_general_informations'));
}
if (strlen($this->object->getImportantInformation())) {
$info->addProperty($this->lng->txt('crs_important_info'), "<strong>" . nl2br(ilUtil::makeClickable($this->object->getImportantInformation(), true) . "</strong>"));
}
if (strlen($this->object->getSyllabus())) {
$info->addProperty($this->lng->txt('crs_syllabus'), nl2br(ilUtil::makeClickable($this->object->getSyllabus(), true)));
}
// files
if (count($files)) {
$tpl = new ilTemplate('tpl.event_info_file.html', true, true, 'Modules/Course');
foreach ($files as $file) {
$tpl->setCurrentBlock("files");
$this->ctrl->setParameter($this, 'file_id', $file->getFileId());
$tpl->setVariable("DOWN_LINK", $this->ctrl->getLinkTarget($this, 'sendfile'));
$tpl->setVariable("DOWN_NAME", $file->getFileName());
$tpl->setVariable("DOWN_INFO_TXT", $this->lng->txt('crs_file_size_info'));
$tpl->setVariable("DOWN_SIZE", $file->getFileSize());
$tpl->setVariable("TXT_BYTES", $this->lng->txt('bytes'));
$tpl->parseCurrentBlock();
}
$info->addProperty($this->lng->txt('crs_file_download'), $tpl->get());
}
include_once 'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php';
$record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'crs', $this->object->getId());
$record_gui->setInfoObject($info);
$record_gui->parse();
// meta data
$info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
// contact
if ($this->object->hasContactData()) {
$info->addSection($this->lng->txt("crs_contact"));
}
if (strlen($this->object->getContactName())) {
$info->addProperty($this->lng->txt("crs_contact_name"), $this->object->getContactName());
}
if (strlen($this->object->getContactResponsibility())) {
$info->addProperty($this->lng->txt("crs_contact_responsibility"), $this->object->getContactResponsibility());
}
if (strlen($this->object->getContactPhone())) {
$info->addProperty($this->lng->txt("crs_contact_phone"), $this->object->getContactPhone());
}
if ($this->object->getContactEmail()) {
require_once 'Services/Mail/classes/class.ilMailFormCall.php';
$emails = split(",", $this->object->getContactEmail());
foreach ($emails as $email) {
$email = trim($email);
$etpl = new ilTemplate("tpl.crs_contact_email.html", true, true, 'Modules/Course');
$etpl->setVariable("EMAIL_LINK", ilMailFormCall::getLinkTarget($info, 'showSummary', array(), array('type' => 'new', 'rcp_to' => $email, 'sig' => $this->createMailSignature())));
$etpl->setVariable("CONTACT_EMAIL", $email);
$mailString .= $etpl->get() . "<br />";
}
$info->addProperty($this->lng->txt("crs_contact_email"), $mailString);
}
if (strlen($this->object->getContactConsultation())) {
$info->addProperty($this->lng->txt("crs_contact_consultation"), nl2br($this->object->getContactConsultation()));
}
//
// access
//
// #10360
$this->lng->loadLanguageModule("rep");
$info->addSection($this->lng->txt("rep_activation_availability"));
$info->showLDAPRoleGroupMappingInfo();
// activation
if ($this->object->getActivationUnlimitedStatus()) {
$info->addProperty($this->lng->txt("rep_activation_access"), $this->lng->txt('crs_visibility_limitless'));
} else {
$info->addProperty($this->lng->txt('rep_activation_access'), ilDatePresentation::formatPeriod(new ilDateTime($this->object->getActivationStart(), IL_CAL_UNIX), new ilDateTime($this->object->getActivationEnd(), IL_CAL_UNIX)));
}
switch ($this->object->getSubscriptionLimitationType()) {
case IL_CRS_SUBSCRIPTION_DEACTIVATED:
$txt = $this->lng->txt("crs_info_reg_deactivated");
break;
default:
switch ($this->object->getSubscriptionType()) {
case IL_CRS_SUBSCRIPTION_CONFIRMATION:
$txt = $this->lng->txt("crs_info_reg_confirmation");
//.........这里部分代码省略.........