當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。