本文整理汇总了PHP中Vtiger_Module_Model::getSideBarLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Module_Model::getSideBarLinks方法的具体用法?PHP Vtiger_Module_Model::getSideBarLinks怎么用?PHP Vtiger_Module_Model::getSideBarLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Module_Model
的用法示例。
在下文中一共展示了Vtiger_Module_Model::getSideBarLinks方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSideBarLinks
public function getSideBarLinks($linkParams)
{
${"GLOBALS"}["xqrnpjsl"] = "links";
${${"GLOBALS"}["cefcvlou"]} = parent::getSideBarLinks(${${"GLOBALS"}["vlhtzqwckdt"]});
${"GLOBALS"}["tgephxofylu"] = "links";
unset(${${"GLOBALS"}["xqrnpjsl"]}["SIDEBARLINK"]);
return ${${"GLOBALS"}["tgephxofylu"]};
}
示例2: getSideBarLinks
public function getSideBarLinks($linkParams)
{
$linkTypes = array('SIDEBARLINK', 'SIDEBARWIDGET');
$links = parent::getSideBarLinks($linkParams);
$quickLinks = array(array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_TASKS_LIST', 'linkurl' => $this->getTasksListUrl(), 'linkicon' => ''), array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_MILESTONES_LIST', 'linkurl' => $this->getMilestonesListUrl(), 'linkicon' => ''), array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_DASHBOARD', 'linkurl' => $this->getDashBoardUrl(), 'linkicon' => ''));
foreach ($quickLinks as $quickLink) {
$links['SIDEBARLINK'][] = Vtiger_Link_Model::getInstanceFromValues($quickLink);
}
return $links;
}
示例3: getSideBarLinks
public function getSideBarLinks($linkParams)
{
$linkTypes = array('SIDEBARLINK', 'SIDEBARWIDGET');
$links = parent::getSideBarLinks($linkParams);
unset($links['SIDEBARLINK']);
$quickLinks = array(array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_PROJECTS_LIST', 'linkurl' => $this->getProjectsListUrl(), 'linkicon' => ''), array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_TASKS_LIST', 'linkurl' => $this->getListViewUrl(), 'linkicon' => ''));
foreach ($quickLinks as $quickLink) {
$links['SIDEBARLINK'][] = Vtiger_Link_Model::getInstanceFromValues($quickLink);
}
return $links;
}
示例4: getSideBarLinks
/**
* Function to get the Quick Links for the module
* @param <Array> $linkParams
* @return <Array> List of Vtiger_Link_Model instances
*/
public function getSideBarLinks($linkParams)
{
$parentQuickLinks = parent::getSideBarLinks($linkParams);
$quickLink = array('linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_DASHBOARD', 'linkurl' => $this->getDashBoardUrl(), 'linkicon' => '');
//Check profile permissions for Dashboards
$moduleModel = Vtiger_Module_Model::getInstance('Dashboard');
$userPrivilegesModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
$permission = $userPrivilegesModel->hasModulePermission($moduleModel->getId());
if ($permission) {
$parentQuickLinks['SIDEBARLINK'][] = Vtiger_Link_Model::getInstanceFromValues($quickLink);
}
return $parentQuickLinks;
}
示例5: getSideBarLinks
/**
* Function to get the Quick Links for the module
* @param <Array> $linkParams
* @return <Array> List of Vtiger_Link_Model instances
*/
public function getSideBarLinks($linkParams)
{
$links = parent::getSideBarLinks($linkParams);
unset($links['SIDEBARLINK']);
return $links;
}
示例6: getSideBarLinks
/**
* Function to get the Quick Links for the module
* @param <Array> $linkParams
* @return <Array> List of Vtiger_Link_Model instances
*/
public function getSideBarLinks($linkParams)
{
$links = parent::getSideBarLinks($linkParams);
$moduleModel = Vtiger_Module_Model::getInstance('Products');
$userPrivilegesModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
if ($userPrivilegesModel->hasModulePermission($moduleModel->getId())) {
$quickLinks[] = ['linktype' => 'SIDEBARLINK', 'linklabel' => 'LBL_VIEW_ACCOUNTSLISTTREE', 'linkurl' => 'index.php?module=' . $this->getName() . '&view=AccountsListTree&mode=showTree&selectedModule=Products', 'linkicon' => ''];
}
foreach ($quickLinks as $quickLink) {
$links['SIDEBARLINK'][] = Vtiger_Link_Model::getInstanceFromValues($quickLink);
}
return $links;
}