[ 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_DeleteAjax_Action extends Settings_Vtiger_Basic_Action { 13 14 public function process(Vtiger_Request $request) { 15 $response = new Vtiger_Response(); 16 try{ 17 $record = $request->get('record'); 18 $transforCurrencyToId = $request->get('transform_to_id'); 19 if(empty($transforCurrencyToId)) { 20 throw new Exception('Transfer currency id cannot be empty'); 21 } 22 Settings_Currency_Module_Model::tranformCurrency($record, $transforCurrencyToId); 23 Settings_Currency_Module_Model::delete($record); 24 $response->setResult(array('success'=>'true')); 25 }catch(Exception $e){ 26 $response->setError($e->getCode(), $e->getMessage()); 27 } 28 $response->emit(); 29 } 30 31 public function validateRequest(Vtiger_Request $request) { 32 $request->validateWriteAccess(); 33 } 34 }
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 |