當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Vtiger_Module_Model::getSideBarLinks方法代碼示例

本文整理匯總了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"]};
 }
開發者ID:cin-system,項目名稱:cinrepo,代碼行數:8,代碼來源:Module.php

示例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;
 }
開發者ID:rcrrich,項目名稱:UpdatePackages,代碼行數:10,代碼來源:Module.php

示例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;
 }
開發者ID:nouphet,項目名稱:vtigercrm-6.0.0-ja,代碼行數:11,代碼來源:Module.php

示例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;
 }
開發者ID:andreadanzi,項目名稱:sws,代碼行數:18,代碼來源:Module.php

示例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;
 }
開發者ID:nikdejan,項目名稱:YetiForceCRM,代碼行數:11,代碼來源:Module.php

示例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;
 }
開發者ID:Bergdahls,項目名稱:YetiForceCRM,代碼行數:18,代碼來源:Module.php


注:本文中的Vtiger_Module_Model::getSideBarLinks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。