[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /*+********************************************************************************** 4 * The contents of this file are subject to the vtiger CRM Public License Version 1.1 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 ************************************************************************************/ 11 12 class Settings_Currency_EditAjax_View extends Settings_Vtiger_IndexAjax_View{ 13 14 public function process(Vtiger_Request $request) { 15 $record = $request->get('record'); 16 if(!empty($record)) { 17 $recordModel = Settings_Currency_Record_Model::getInstance($record); 18 }else { 19 $recordModel = new Settings_Currency_Record_Model(); 20 } 21 22 $allCurrencies = Settings_Currency_Record_Model::getAllNonMapped($record); 23 $otherExistingCurrencies = Settings_Currency_Record_Model::getAll($record); 24 25 foreach ($otherExistingCurrencies as $currencyModel) { 26 if($currencyModel->isBaseCurrency()) { 27 $baseCurrencyModel = $currencyModel; 28 break; 29 } 30 } 31 $viewer = $this->getViewer($request); 32 33 $qualifiedName = $request->getModule(false); 34 $viewer->assign('QUALIFIED_MODULE',$qualifiedName); 35 $viewer->assign('RECORD_MODEL',$recordModel); 36 $viewer->assign('ALL_CURRENCIES',$allCurrencies); 37 $viewer->assign('OTHER_EXISTING_CURRENCIES',$otherExistingCurrencies); 38 $viewer->assign('BASE_CURRENCY_MODEL', $baseCurrencyModel); 39 40 $viewer->view('EditAjax.tpl',$qualifiedName); 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 |