[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Users/views/ -> EditAjax.php (source)

   1  <?php
   2  
   3  /* +***********************************************************************************

   4   * The contents of this file are subject to the vtiger CRM Public License Version 1.0

   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 Users_EditAjax_View extends Vtiger_IndexAjax_View {
  13  
  14  	function __construct() {
  15          parent::__construct();
  16          $this->exposeMethod('changePassword');
  17      }
  18  
  19  	public function process(Vtiger_Request $request) {
  20          $mode = $request->get('mode');
  21          if (!empty($mode)) {
  22              $this->invokeExposedMethod($mode, $request);
  23              return;
  24          }
  25      }
  26  
  27  	public function changePassword(Vtiger_Request $request) {
  28          $viewer = $this->getViewer($request);
  29          $moduleName = $request->get('module');
  30          $userId = $request->get('recordId');
  31  
  32          $viewer->assign('MODULE', $moduleName);
  33          $viewer->assign('USERID', $userId);
  34          $viewer->assign('CURRENT_USER_MODEL', Users_Record_Model::getCurrentUserModel());
  35          $viewer->view('ChangePassword.tpl', $moduleName);
  36      }
  37  
  38  }


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