original_string: public function getSelectedUser()
      {
          static $user = null;
  
          if ($user !== null) {
              return $user;
          }
  
          $staffId = $this->_getIdParam();
          if ($staffId) {
              $user   = $this->loader->getUserLoader()->getUserByStaffId($staffId);
              $source = $this->menu->getParameterSource();
              $user->applyToMenuSource($source);
          } else {
              $user = false;
          }
  
          return $user;
      }
code: public function getSelectedUser()
      {
          static $user = null;
  
          if ($user !== null) {
              return $user;
          }
  
          $staffId = $this->_getIdParam();
          if ($staffId) {
              $user   = $this->loader->getUserLoader()->getUserByStaffId($staffId);
              $source = $this->menu->getParameterSource();
              $user->applyToMenuSource($source);
          } else {
              $user = false;
          }
  
          return $user;
      }
code_tokens: public function getSelectedUser ( ) { static $ user = null ; if ( $ user !== null ) { return $ user ; } $ staffId = $ this -> _getIdParam ( ) ; if ( $ staffId ) { $ user = $ this -> loader -> getUserLoader ( ) -> getUserByStaffId ( $ staffId ) ; $ source = $ this -> menu -> getParameterSource ( ) ; $ user -> applyToMenuSource ( $ source ) ; } else { $ user = false ; } return $ user ; }
docstring: Load the user selected by the request - if any
  
  @staticvar \Gems_User_User $user
  @return \Gems_User_User or false when not available
docstring_tokens: Load the user selected by the request - if any