[ 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_Vtiger_AnnouncementSaveAjax_Action extends Settings_Vtiger_Basic_Action { 13 14 public function process(Vtiger_Request $request) { 15 $currentUser = Users_Record_Model::getCurrentUserModel(); 16 $annoucementModel = Settings_Vtiger_Announcement_Model::getInstanceByCreator($currentUser); 17 $annoucementModel->set('announcement',$request->get('announcement')); 18 $annoucementModel->save(); 19 $responce = new Vtiger_Response(); 20 $responce->setResult(array('success'=>true)); 21 $responce->emit(); 22 } 23 24 public function validateRequest(Vtiger_Request $request) { 25 $request->validateWriteAccess(); 26 } 27 }
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 |