[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Settings/Roles/views/ -> Index.php (source)

   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_Roles_Index_View extends Settings_Vtiger_Index_View {
  12  
  13  	public function process(Vtiger_Request $request) {
  14          $viewer = $this->getViewer($request);
  15          $qualifiedModuleName = $request->getModule(false);
  16          $rootRole = Settings_Roles_Record_Model::getBaseRole();
  17          $allRoles = Settings_Roles_Record_Model::getAll();
  18  
  19          $viewer->assign('ROOT_ROLE', $rootRole);
  20          $viewer->assign('ROLES', $allRoles);
  21          $viewer->view('Index.tpl', $qualifiedModuleName);
  22      }
  23  
  24      /**
  25       * Function to get the list of Script models to be included
  26       * @param Vtiger_Request $request
  27       * @return <Array> - List of Vtiger_JsScript_Model instances
  28       */
  29  	function getHeaderScripts(Vtiger_Request $request) {
  30          $headerScriptInstances = parent::getHeaderScripts($request);
  31          $moduleName = $request->getModule();
  32  
  33          $jsFileNames = array(
  34              'modules.Settings.Vtiger.resources.Index',
  35              "modules.Settings.$moduleName.resources.Index",
  36              'modules.Settings.Vtiger.resources.Popup',
  37              "modules.Settings.$moduleName.resources.Popup",
  38              'libraries.jquery.jquery_windowmsg',
  39          );
  40  
  41          $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
  42          $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
  43          return $headerScriptInstances;
  44      }
  45  
  46      /**
  47       * Function to get the list of Css models to be included
  48       * @param Vtiger_Request $request
  49       * @return <Array> - List of Vtiger_CssScript_Model instances
  50       */
  51  	function getHeaderCss(Vtiger_Request $request) {
  52          $headerCssInstances = parent::getHeaderCss($request);
  53          $moduleName = $request->getModule();
  54  
  55          $cssFileNames = array(
  56              'libraries.jquery.jqTree.jqtree'
  57          );
  58  
  59          $cssStyleInstances = $this->checkAndConvertCssStyles($cssFileNames);
  60          $headerCssInstances = array_merge($headerCssInstances, $cssStyleInstances);
  61          return $headerCssInstances;
  62      }
  63  }


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1