Exemplo n.º 1
0
 /**
  * Sets variables after the decoding.
  *
  * @param UrlCacheEntry $cacheEntry
  */
 protected function setRequestVariables(UrlCacheEntry $cacheEntry)
 {
     if ($cacheEntry) {
         $requestVariables = $cacheEntry->getRequestVariables();
         $requestVariables['id'] = $cacheEntry->getPageId();
         $_SERVER['QUERY_STRING'] = $this->createQueryStringFromParameters($requestVariables);
         // Setting info in TSFE
         $this->caller->mergingWithGetVars($this->makeRealPhpArrayFromRequestVars($requestVariables));
         $this->caller->id = $cacheEntry->getPageId();
         if ($this->mimeType) {
             header('Content-type: ' . $this->mimeType);
             $this->mimeType = null;
         }
     }
 }