[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Vtiger/views/ -> FindDuplicatesAjax.php (source)

   1  <?php
   2  /*+**********************************************************************************
   3   * The contents of this file are subject to the vtiger CRM Public License Version 1.1
   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 Vtiger_FindDuplicatesAjax_View extends Vtiger_FindDuplicates_View {
  12  
  13  	function process (Vtiger_Request $request) {
  14          $mode = $request->getMode();
  15          if(!empty($mode) && method_exists($this, $mode)) {
  16              $this->$mode($request);
  17          }
  18      }
  19      /**
  20       * Function to get listView count
  21       * @param Vtiger_Request $request
  22       */
  23      /*function getListViewCount(Vtiger_Request $request){
  24          $moduleName = $request->getModule();
  25          $cvId = $request->get('viewname');
  26          if(empty($cvId)) {
  27              $cvId = '0';
  28          }
  29  
  30          $searchKey = $request->get('search_key');
  31          $searchValue = $request->get('search_value');
  32  
  33          $listViewModel = Vtiger_ListView_Model::getInstance($moduleName, $cvId);
  34          $listViewModel->set('search_key', $searchKey);
  35          $listViewModel->set('search_value', $searchValue);
  36          $listViewModel->set('operator', $request->get('operator'));
  37  
  38          $count = $listViewModel->getListViewCount();
  39  
  40          return $count;
  41      }
  42  
  43  
  44  
  45      /**
  46       * Function to get the page count for list
  47       * @return total number of pages
  48       */
  49      /*function getPageCount(Vtiger_Request $request){
  50          $listViewCount = $this->getListViewCount($request);
  51          $pagingModel = new Vtiger_Paging_Model();
  52          $pageLimit = $pagingModel->getPageLimit();
  53          $pageCount = ceil((int) $listViewCount / (int) $pageLimit);
  54  
  55          $result = array();
  56          $result['page'] = $pageCount;
  57          $response = new Vtiger_Response();
  58          $response->setResult($result);
  59          $response->emit();
  60      }*/
  61  }


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