[ 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 Settings_Groups_Edit_View extends Settings_Vtiger_Index_View { 12 13 public function process(Vtiger_Request $request) { 14 $viewer = $this->getViewer ($request); 15 $moduleName = $request->getModule(); 16 $qualifiedModuleName = $request->getModule(false); 17 $record = $request->get('record'); 18 19 if(!empty($record)) { 20 $recordModel = Settings_Groups_Record_Model::getInstance($record); 21 $viewer->assign('MODE', 'edit'); 22 } else { 23 $recordModel = new Settings_Groups_Record_Model(); 24 $viewer->assign('MODE', ''); 25 } 26 27 $viewer->assign('MEMBER_GROUPS', Settings_Groups_Member_Model::getAll(false)); 28 $viewer->assign('RECORD_MODEL', $recordModel); 29 $viewer->assign('RECORD_ID', $record); 30 $viewer->assign('MODULE', $moduleName); 31 $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel()); 32 33 $viewer->view('EditView.tpl', $qualifiedModuleName); 34 } 35 36 /** 37 * Function to get the list of Script models to be included 38 * @param Vtiger_Request $request 39 * @return <Array> - List of Vtiger_JsScript_Model instances 40 */ 41 function getHeaderScripts(Vtiger_Request $request) { 42 $headerScriptInstances = parent::getHeaderScripts($request); 43 $moduleName = $request->getModule(); 44 45 $jsFileNames = array( 46 "modules.Settings.$moduleName.resources.Edit" 47 ); 48 49 $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames); 50 $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances); 51 return $headerScriptInstances; 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 |