public static function Param2VO(HttpServletRequest $request)
 {
     $formVO = new VirtualFormVO();
     $paramNames = $request->getParameterNames();
     foreach ($paramNames as $paramName) {
         $formVO->{'set' . ucfirst($paramName)}($request->getMixedParameter($paramName, false));
     }
     return $formVO;
 }
Esempio n. 2
0
 public static function setUserInfo(HttpServletRequest $request, SessionVO $sessionVO)
 {
     $request->getSession()->setAttribute('LOGGED_IN', $sessionVO->getUserId() !== null);
     $request->getSession()->setAttribute('USER_INFO', $sessionVO);
 }