本文整理汇总了PHP中ilAdvancedSelectionListGUI::setLinksMode方法的典型用法代码示例。如果您正苦于以下问题:PHP ilAdvancedSelectionListGUI::setLinksMode方法的具体用法?PHP ilAdvancedSelectionListGUI::setLinksMode怎么用?PHP ilAdvancedSelectionListGUI::setLinksMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilAdvancedSelectionListGUI
的用法示例。
在下文中一共展示了ilAdvancedSelectionListGUI::setLinksMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}