本文整理汇总了PHP中ilCustomInputGUI::setValue方法的典型用法代码示例。如果您正苦于以下问题:PHP ilCustomInputGUI::setValue方法的具体用法?PHP ilCustomInputGUI::setValue怎么用?PHP ilCustomInputGUI::setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilCustomInputGUI
的用法示例。
在下文中一共展示了ilCustomInputGUI::setValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showAccessLink
/**
* Shows access link
*/
public function showAccessLink()
{
$this->pluginObj->includeClass('class.ilAdobeConnectUserUtil.php');
$this->pluginObj->includeClass('class.ilAdobeConnectQuota.php');
$this->pluginObj->includeClass('class.ilAdobeConnectServer.php');
$presentation_url = ilAdobeConnectServer::getPresentationUrl();
$this->tabs->activateTab("access");
$form = new ilPropertyFormGUI();
$form->setTitle($this->pluginObj->txt('access_meeting_title'));
$this->object->doRead();
if ($this->object->getStartDate() != NULL) {
$ilAdobeConnectUser = new ilAdobeConnectUserUtil($this->user->getId());
$ilAdobeConnectUser->ensureAccountExistance();
$xavc_login = $ilAdobeConnectUser->getXAVCLogin();
$quota = new ilAdobeConnectQuota();
// show link
$link = new ilNonEditableValueGUI($this->pluginObj->txt("access_link"));
if ($this->doProvideAccessLink() && $this->object->isParticipant($xavc_login)) {
if (!$quota->mayStartScheduledMeeting($this->object->getScoId())) {
$link->setValue($this->txt("meeting_not_available_no_slots"));
} else {
$link = new ilCustomInputGUI($this->pluginObj->txt("access_link"));
$href = '<a href="' . $this->ctrl->getLinkTarget($this, 'performSso') . '" target="_blank" >' . $presentation_url . $this->object->getURL() . '</a>';
$link->setHtml($href);
}
} else {
$link->setValue($this->txt("meeting_not_available"));
}
$form->addItem($link);
$start_date = new ilNonEditableValueGUI($this->txt('start_date'));
$start_date->setValue(ilDatePresentation::formatDate(new ilDateTime($this->object->getStartDate()->getUnixTime(), IL_CAL_UNIX)));
$form->addItem($start_date);
$duration = new ilNonEditableValueGUI($this->txt('duration'));
$duration->setValue(ilDatePresentation::formatPeriod(new ilDateTime($this->object->getStartDate()->getUnixTime(), IL_CAL_UNIX), new ilDateTime($this->object->getEndDate()->getUnixTime(), IL_CAL_UNIX)));
$form->addItem($duration);
$this->tpl->setContent($form->getHTML());
} else {
ilUtil::sendFailure($this->txt('error_connect_ac_server'));
}
}