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


PHP Vtiger_DetailView_Model::getDetailViewRelatedLinks方法代碼示例

本文整理匯總了PHP中Vtiger_DetailView_Model::getDetailViewRelatedLinks方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vtiger_DetailView_Model::getDetailViewRelatedLinks方法的具體用法?PHP Vtiger_DetailView_Model::getDetailViewRelatedLinks怎麽用?PHP Vtiger_DetailView_Model::getDetailViewRelatedLinks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Vtiger_DetailView_Model的用法示例。


在下文中一共展示了Vtiger_DetailView_Model::getDetailViewRelatedLinks方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getDetailViewRelatedLinks

 /**
  * Function to get the detail view related links
  * @return <array> - list of links parameters
  */
 public function getDetailViewRelatedLinks()
 {
     $recordModel = $this->getRecord();
     $moduleName = $recordModel->getModuleName();
     $relatedLinks = parent::getDetailViewRelatedLinks();
     $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_CHARTS', $moduleName), 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showCharts&requestMode=charts', 'linkicon' => '', 'linkKey' => 'LBL_RECORD_SUMMARY', 'related' => 'Charts');
     $relatedLinks[] = array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_GANTT', $moduleName), 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showGantt', 'linkicon' => '', 'linkKey' => 'LBL_GANTT', 'related' => 'Gantt');
     return $relatedLinks;
 }
開發者ID:Bergdahls,項目名稱:YetiForceCRM,代碼行數:13,代碼來源:DetailView.php

示例2: getDetailViewRelatedLinks

 /**
  * Function to get the detail view related links
  * @return <array> - list of links parameters
  */
 public function getDetailViewRelatedLinks()
 {
     $recordModel = $this->getRecord();
     $moduleName = $recordModel->getModuleName();
     $relatedLinks = array(array('linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('SINGLE_' . $moduleName, $moduleName) . ' ' . vtranslate('LBL_SUMMARY', $moduleName), 'linkKey' => 'LBL_RECORD_SUMMARY', 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showDetailViewByMode&requestMode=summary', 'linkicon' => ''));
     $relatedLinksFromParent = parent::getDetailViewRelatedLinks();
     foreach ($relatedLinksFromParent as $link) {
         array_push($relatedLinks, $link);
     }
     return $relatedLinks;
 }
開發者ID:nouphet,項目名稱:vtigercrm-6.0.0-ja,代碼行數:15,代碼來源:DetailView.php

示例3: getDetailViewRelatedLinks

 function getDetailViewRelatedLinks()
 {
     $recordModel = $this->getRecord();
     $moduleName = $recordModel->getModuleName();
     $parentModuleModel = $this->getModule();
     $relatedLinks = Vtiger_DetailView_Model::getDetailViewRelatedLinks();
     $showPSTab = vtlib_isModuleActive('OutsourcedProducts') || vtlib_isModuleActive('Products') || vtlib_isModuleActive('Services') || vtlib_isModuleActive('OSSOutsourcedServices') || vtlib_isModuleActive('Assets') || vtlib_isModuleActive('OSSSoldServices');
     if ($showPSTab) {
         $relatedLinks[] = ['linktype' => 'DETAILVIEWTAB', 'linklabel' => vtranslate('LBL_RECORD_SUMMARY_PRODUCTS_SERVICES', $moduleName), 'linkurl' => $recordModel->getDetailViewUrl() . '&mode=showRelatedProductsServices&requestMode=summary', 'linkicon' => '', 'linkKey' => 'LBL_RECORD_SUMMARY', 'related' => 'ProductsAndServices', 'countRelated' => true];
     }
     return $relatedLinks;
 }
開發者ID:nikdejan,項目名稱:YetiForceCRM,代碼行數:12,代碼來源:DetailView.php


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