Example #1
0
 private function process()
 {
     $request = new Request($this->requestData);
     echo "uri: " . $request->uri . "\r\n";
     $response = new Response($request);
     return $response->getResponse();
 }
Example #2
0
 public function getDataForApi($dataType)
 {
     if (strpos($dataType, 'static') > -1) {
         $data = $this->getStaticData($dataType);
     } else {
         $data = DB_Interaction::getApiDataFromDB($this->playerId, $this->region, $dataType);
     }
     $response = new Response($data);
     exit($response->getResponse());
 }
Example #3
0
 /**
  * Create the application response header for AMF and sends the serialized AMF string
  *
  * @return string
  */
 public function getResponse()
 {
     if (!headers_sent()) {
         if ($this->isIeOverSsl()) {
             header('Cache-Control: cache, must-revalidate');
             header('Pragma: public');
         } else {
             header('Cache-Control: no-cache, must-revalidate');
             header('Pragma: no-cache');
         }
         header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
         header('Content-Type: application/x-amf');
     }
     return parent::getResponse();
 }
Example #4
0
 /**
  * Return ApiResponse
  * @return array|bool
  */
 public function getResponse()
 {
     return $this->response->getResponse();
 }