[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Users/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 Users_Index_View extends Vtiger_Basic_View {
  12  
  13  	public function preProcess (Vtiger_Request $request) {
  14          parent::preProcess($request);
  15          $currentUserModel = Users_Record_Model::getCurrentUserModel();
  16          if($currentUserModel->isAdminUser()) {
  17              $settingsIndexView = new Settings_Vtiger_Index_View();
  18              $settingsIndexView->preProcessSettings($request);
  19          }
  20      }
  21  
  22  	public function postProcess(Vtiger_Request $request) {
  23          $currentUserModel = Users_Record_Model::getCurrentUserModel();
  24          if($currentUserModel->isAdminUser()) {
  25              $settingsIndexView = new Settings_Vtiger_Index_View();
  26              $settingsIndexView->postProcessSettings($request);
  27          }
  28          parent::postProcess($request);
  29      }
  30  
  31  	public function process(Vtiger_Request $request) {
  32      }
  33  
  34      /**
  35       * Function to get the list of Script models to be included
  36       * @param Vtiger_Request $request
  37       * @return <Array> - List of Vtiger_JsScript_Model instances
  38       */
  39  	function getHeaderScripts(Vtiger_Request $request) {
  40          $headerScriptInstances = parent::getHeaderScripts($request);
  41          $moduleName = $request->getModule();
  42  
  43          $jsFileNames = array(
  44              'modules.Vtiger.resources.Vtiger',
  45              "modules.$moduleName.resources.$moduleName",
  46          );
  47  
  48          $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
  49          $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
  50          return $headerScriptInstances;
  51      }
  52  }


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