[ 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.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 Settings_Vtiger_IndexAjax_View extends Settings_Vtiger_Index_View { 12 function __construct() { 13 parent::__construct(); 14 $this->exposeMethod('getSettingsShortCutBlock'); 15 $this->exposeMethod('realignSettingsShortCutBlock'); 16 } 17 18 public function preProcess (Vtiger_Request $request) { 19 return; 20 } 21 22 public function postProcess (Vtiger_Request $request) { 23 return; 24 } 25 26 public function process (Vtiger_Request $request) { 27 $mode = $request->getMode(); 28 29 if($mode){ 30 echo $this->invokeExposedMethod($mode, $request); 31 return; 32 } 33 } 34 35 public function getSettingsShortCutBlock(Vtiger_Request $request) { 36 $fieldid = $request->get('fieldid'); 37 $viewer = $this->getViewer($request); 38 $qualifiedModuleName = $request->getModule(false); 39 $pinnedSettingsShortcuts = Settings_Vtiger_MenuItem_Model::getPinnedItems(); 40 $viewer->assign('SETTINGS_SHORTCUT',$pinnedSettingsShortcuts[$fieldid]); 41 $viewer->assign('MODULE',$qualifiedModuleName); 42 $viewer->view('SettingsShortCut.tpl', $qualifiedModuleName); 43 } 44 45 public function realignSettingsShortCutBlock(Vtiger_Request $request){ 46 $viewer = $this->getViewer($request); 47 $qualifiedModuleName = $request->getModule(false); 48 $pinnedSettingsShortcuts = Settings_Vtiger_MenuItem_Model::getPinnedItems(); 49 $viewer->assign('SETTINGS_SHORTCUT',$pinnedSettingsShortcuts); 50 $viewer->assign('MODULE',$qualifiedModuleName); 51 $viewer->view('ReAlignSettingsShortCut.tpl', $qualifiedModuleName); 52 } 53 }
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 |