本文整理匯總了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();
}