/**
  * @return RegistryRequest
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new RegistryRequest();
     }
     return self::$_instance;
 }
 /**
  * 默认模式.
  */
 private static function _common()
 {
     $varM = config('VAR_MODULE');
     $varC = config('VAR_CONTROL');
     $varA = config('VAR_ACTION');
     $defaultM = config('DEFAULT_MODULE');
     $defaultC = config('DEFAULT_CONTROL');
     $defaultA = config('DEFAULT_ACTION');
     $module = $_GET[$varM] ? strtolower($_GET[$varM]) : $defaultM;
     $control = $_GET[$varC] ? ucwords($_GET[$varC]) : $defaultC;
     $action = $_GET[$varA] ? ucwords($_GET[$varA]) : $defaultA;
     define('__MODULE__', $module);
     define('__CONTROL__', $control);
     define('__ACTION__', $action);
     self::$_registryRequest->set($varM, __MODULE__);
     self::$_registryRequest->set($varC, __CONTROL__);
     self::$_registryRequest->set($varA, __ACTION__);
 }
 /**
  * 编辑用户
  */
 public function cEdit()
 {
     $this->_modelUser = $this->getGlobal('model/User', 'Model_User');
     if ($this->isPost()) {
         $postArr = array('id' => intval($this->getR('id')), 'vuser' => $this->getR('vuser'), 'pwd' => $this->getR('pwd'), 'pwd1' => $this->getR('pwd1'), 'role' => $this->getR('role'), 'login_count' => RegistryRequest::getInstance()->absInt('login_count'));
         $info = $this->_modelUser->edit($postArr);
         if ($info['status'] == 1) {
             $this->success($info['info'], $info['url']);
         } else {
             $this->error($info['info'], $info['url']);
         }
     } else {
         $this->_modelRole = $this->getGlobal('model/Role', 'Model_Role');
         $roles = $this->_modelRole->getAll();
         $this->assign('roleList', $roles);
         $dataList = $this->_modelUser->findById($this->getR('id'));
         $dataList['role'] = $dataList['role'] ? explode(',', $dataList['role']) : array();
         $this->assign('dataList', $dataList);
         $this->display(VIEW_PAGE);
     }
 }
 /**
  * 删除request值
  * @param $key
  */
 public static function delR($key)
 {
     RegistryRequest::getInstance()->del($key);
 }