[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Calendar/models/ -> DetailView.php (source)

   1  <?php
   2  /*+***********************************************************************************
   3   * The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9   *************************************************************************************/
  10  
  11  class Calendar_DetailView_Model extends Vtiger_DetailView_Model {
  12  
  13      /**
  14       * Function to get the detail view related links
  15       * @return <array> - list of links parameters
  16       */
  17  	public function getDetailViewRelatedLinks() {
  18          $recordModel = $this->getRecord();
  19          $moduleName = $recordModel->getType();
  20          $relatedLinks = array();
  21          //link which shows the summary information(generally detail of record)
  22          $relatedLinks[] = array(
  23                  'linktype' => 'DETAILVIEWTAB',
  24                  'linklabel' => vtranslate('SINGLE_'.$moduleName, $moduleName).' '. vtranslate('LBL_DETAILS', $moduleName),
  25                  'linkurl' => $recordModel->getDetailViewUrl().'&mode=showDetailViewByMode&requestMode=full',
  26                  'linkicon' => ''
  27          );
  28  
  29          $parentModuleModel = $this->getModule();
  30          if($parentModuleModel->isTrackingEnabled()) {
  31              $relatedLinks[] = array(
  32                      'linktype' => 'DETAILVIEWTAB',
  33                      'linklabel' => vtranslate('LBL_UPDATES'),
  34                      'linkurl' => $recordModel->getDetailViewUrl().'&mode=showRecentActivities&page=1',
  35                      'linkicon' => ''
  36              );
  37          }
  38          return $relatedLinks;
  39      }
  40  }


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1