Example #1
0
 protected function overrideSuperGlobals()
 {
     global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_REQUEST_VARS, $HTTP_SERVER_VARS;
     self::cleanGlobals();
     $httpRequest = $this->getHttpRequest();
     $_GET = $httpRequest->getQueryList()->toArray();
     $_POST = $httpRequest->getPostList()->toArray();
     $_COOKIE = $httpRequest->getCookieRawList()->toArray();
     $_SERVER = $this->context->getServer()->toArray();
     self::reconstructRequest();
     self::restoreGlobals();
     $HTTP_GET_VARS = $_GET;
     $HTTP_POST_VARS = $_POST;
     $HTTP_COOKIE_VARS = $_COOKIE;
     $HTTP_REQUEST_VARS = $_REQUEST;
     $HTTP_SERVER_VARS = $_SERVER;
 }