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


PHP ilAdvancedSelectionListGUI::getItems方法代码示例

本文整理汇总了PHP中ilAdvancedSelectionListGUI::getItems方法的典型用法代码示例。如果您正苦于以下问题:PHP ilAdvancedSelectionListGUI::getItems方法的具体用法?PHP ilAdvancedSelectionListGUI::getItems怎么用?PHP ilAdvancedSelectionListGUI::getItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilAdvancedSelectionListGUI的用法示例。


在下文中一共展示了ilAdvancedSelectionListGUI::getItems方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: asyncGetContent

 /**
  * @param bool            $delete_item
  * @param bool            $delete_folder
  * @param ilCloudFileNode $node
  */
 public function asyncGetContent($delete_item = false, $delete_folder = false, ilCloudFileNode $node)
 {
     global $lng;
     $this->node = $node;
     include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
     $this->selection_list = new ilAdvancedSelectionListGUI();
     $this->selection_list->setId($this->node->getId());
     $this->selection_list->setListTitle($lng->txt("actions"));
     $this->selection_list->setItemLinkClass("xsmall");
     $this->addSelectionListItems($delete_item, $delete_folder);
     if ($this->selection_list->getItems() != NULL) {
         echo $this->selection_list->getHTML(true);
         exit;
     } else {
         echo $lng->txt("empty");
         exit;
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilCloudPluginActionListGUI.php

示例2: show

 /**
  * show desktop
  */
 function show()
 {
     // preload block settings
     include_once "Services/Block/classes/class.ilBlockSetting.php";
     ilBlockSetting::preloadPDBlockSettings();
     // add template for content
     $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
     $this->tpl->getStandardTemplate();
     // display infopanel if something happened
     ilUtil::infoPanel();
     //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
     //	$this->lng->txt("personal_desktop"));
     //		$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
     //			"");
     $this->tpl->setTitle($this->lng->txt("overview"));
     $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
     $this->tpl->setContent($this->getCenterColumnHTML());
     $this->tpl->setRightContent($this->getRightColumnHTML());
     $this->tpl->setLeftContent($this->getLeftColumnHTML());
     if (count($this->action_menu->getItems())) {
         /**
          * @var $tpl ilTemplate
          * @var $lng ilLanguage
          */
         global $tpl, $lng;
         $this->action_menu->setAsynch(false);
         $this->action_menu->setAsynchUrl('');
         $this->action_menu->setListTitle($lng->txt('actions'));
         $this->action_menu->setId('act_pd');
         $this->action_menu->setSelectionHeaderClass('small');
         $this->action_menu->setItemLinkClass('xsmall');
         $this->action_menu->setLinksMode('il_ContainerItemCommand2');
         $this->action_menu->setHeaderIcon(ilAdvancedSelectionListGUI::DOWN_ARROW_DARK);
         $this->action_menu->setUseImages(false);
         $htpl = new ilTemplate('tpl.header_action.html', true, true, 'Services/Repository');
         $htpl->setVariable('ACTION_DROP_DOWN', $this->action_menu->getHTML());
         $tpl->setHeaderActionMenu($htpl->get());
     }
     $this->tpl->show();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:43,代码来源:class.ilPersonalDesktopGUI.php

示例3: fillRow

 /**
  * Fill table row
  * @param	array	$a_set
  */
 protected function fillRow($a_set)
 {
     global $lng, $ilAccess, $ilCtrl, $ilUser;
     $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
     $this->tpl->setVariable("RESERVATION_ID", $a_set["booking_reservation_id"]);
     if (in_array($a_set['status'], array(ilBookingReservation::STATUS_CANCELLED, ilBookingReservation::STATUS_IN_USE))) {
         $this->tpl->setVariable("TXT_STATUS", $lng->txt('book_reservation_status_' . $a_set['status']));
     }
     // #11995
     $uname = ilObjUser::_lookupFullName($a_set['user_id']);
     if (!trim($uname)) {
         $uname = "[" . $lng->txt("user_deleted") . "]";
     } else {
         $ilCtrl->setParameter($this->parent_obj, 'user_id', $a_set['user_id']);
         $this->tpl->setVariable("HREF_PROFILE", $ilCtrl->getLinkTarget($this->parent_obj, 'showprofile'));
         $ilCtrl->setParameter($this->parent_obj, 'user_id', '');
     }
     $this->tpl->setVariable("TXT_CURRENT_USER", $uname);
     if ($this->has_schedule) {
         $date_from = new ilDateTime($a_set['date_from'], IL_CAL_UNIX);
         $date_to = new ilDateTime($a_set['date_to'], IL_CAL_UNIX);
         $this->tpl->setVariable("VALUE_DATE", ilDatePresentation::formatPeriod($date_from, $date_to));
     }
     if (!$this->has_schedule || $date_from->get(IL_CAL_UNIX) > time()) {
         include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
         $alist = new ilAdvancedSelectionListGUI();
         $alist->setId($a_set['booking_reservation_id']);
         $alist->setListTitle($lng->txt("actions"));
         $ilCtrl->setParameter($this->parent_obj, 'reservation_id', $a_set['booking_reservation_id']);
         if (!$a_set['group_id']) {
             if ($ilAccess->checkAccess('write', '', $this->ref_id)) {
                 if ($a_set['status'] == ilBookingReservation::STATUS_CANCELLED) {
                     /*
                     // can be uncancelled?
                     if(ilBookingReservation::getAvailableObject(array($a_set['object_id']), $date_from->get(IL_CAL_UNIX), $date_to->get(IL_CAL_UNIX)))
                     {
                     	$alist->addItem($lng->txt('book_set_not_cancel'), 'not_cancel', $ilCtrl->getLinkTarget($this->parent_obj, 'rsvUncancel'));
                     }
                     */
                 } else {
                     if ($a_set['status'] != ilBookingReservation::STATUS_IN_USE) {
                         if ($this->has_schedule) {
                             $alist->addItem($lng->txt('book_set_in_use'), 'in_use', $ilCtrl->getLinkTarget($this->parent_obj, 'rsvInUse'));
                         }
                         $alist->addItem($lng->txt('book_set_cancel'), 'cancel', $ilCtrl->getLinkTarget($this->parent_obj, 'rsvCancel'));
                     } else {
                         if ($this->has_schedule) {
                             $alist->addItem($lng->txt('book_set_not_in_use'), 'not_in_use', $ilCtrl->getLinkTarget($this->parent_obj, 'rsvNotInUse'));
                         }
                     }
                 }
             } else {
                 if ($a_set['user_id'] == $ilUser->getId() && $a_set['status'] != ilBookingReservation::STATUS_CANCELLED) {
                     $alist->addItem($lng->txt('book_set_cancel'), 'cancel', $ilCtrl->getLinkTarget($this->parent_obj, 'rsvCancel'));
                 }
             }
         } else {
             if ($ilAccess->checkAccess('write', '', $this->ref_id) || $a_set['user_id'] == $ilUser->getId()) {
                 $alist->addItem($lng->txt('details'), 'details', $ilCtrl->getLinkTarget($this->parent_obj, 'logDetails'));
             }
         }
         if (sizeof($alist->getItems())) {
             if (!$a_set['group_id']) {
                 $this->tpl->setVariable('MULTI_ID', $a_set['booking_reservation_id']);
             }
             $this->tpl->setVariable('LAYER', $alist->getHTML());
         }
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:73,代码来源:class.ilBookingReservationsTableGUI.php


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