当前位置: 首页>>代码示例>>PHP>>正文


PHP ilCustomInputGUI::setValue方法代码示例

本文整理汇总了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'));
     }
 }
开发者ID:KamuiXenom,项目名称:ILIAS_AdobeConnectPlugin,代码行数:43,代码来源:class.ilObjAdobeConnectGUI.php


注:本文中的ilCustomInputGUI::setValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。