当前位置: 首页>>代码示例>>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;未经允许,请勿转载。