[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
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 Potentials_TopPotentials_Dashboard extends Vtiger_IndexAjax_View { 12 13 public function process(Vtiger_Request $request) { 14 $currentUser = Users_Record_Model::getCurrentUserModel(); 15 $viewer = $this->getViewer($request); 16 $moduleName = $request->getModule(); 17 18 $linkId = $request->get('linkid'); 19 $page = $request->get('page'); 20 if(empty($page)) { 21 $page = 1; 22 } 23 $pagingModel = new Vtiger_Paging_Model(); 24 $pagingModel->set('page', $page); 25 26 $moduleModel = Vtiger_Module_Model::getInstance($moduleName); 27 $models = $moduleModel->getTopPotentials($pagingModel); 28 29 $widget = Vtiger_Widget_Model::getInstance($linkId, $currentUser->getId()); 30 31 $viewer->assign('WIDGET', $widget); 32 $viewer->assign('MODULE_NAME', $moduleName); 33 $viewer->assign('MODELS', $models); 34 35 $content = $request->get('content'); 36 if(!empty($content)) { 37 $viewer->view('dashboards/TopPotentialsContents.tpl', $moduleName); 38 } else { 39 $viewer->view('dashboards/TopPotentials.tpl', $moduleName); 40 } 41 } 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |