[ 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_Webforms_List_View extends Settings_Vtiger_List_View { 12 13 function preProcess(Vtiger_Request $request, $display=true) { 14 $viewer = $this->getViewer($request); 15 $viewer->assign('DESCRIPTION', 'LBL_ALLOWS_YOU_TO_MANAGE_WEBFORMS'); 16 parent::preProcess($request, false); 17 } 18 19 public function checkPermission(Vtiger_Request $request) { 20 parent::checkPermission($request); 21 22 $moduleModel = Vtiger_Module_Model::getInstance($request->getModule()); 23 $currentUserPrivilegesModel = Users_Privileges_Model::getCurrentUserPrivilegesModel(); 24 25 if(!$currentUserPrivilegesModel->hasModulePermission($moduleModel->getId())) { 26 throw new AppException('LBL_PERMISSION_DENIED'); 27 } 28 } 29 30 /** 31 * Function to get the list of Script models to be included 32 * @param Vtiger_Request $request 33 * @return <Array> - List of Vtiger_JsScript_Model instances 34 */ 35 function getHeaderScripts(Vtiger_Request $request) { 36 $headerScriptInstances = parent::getHeaderScripts($request); 37 $moduleName = $request->getModule(); 38 39 $jsFileNames = array( 40 'modules.Vtiger.resources.List', 41 'modules.Settings.Vtiger.resources.List', 42 "modules.Settings.$moduleName.resources.List", 43 "modules.Settings.$moduleName.resources.Edit", 44 ); 45 46 $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames); 47 $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances); 48 return $headerScriptInstances; 49 } 50 }
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 |