예제 #1
0
 private function __construct()
 {
     $this->phpInput = file_get_contents('php://input');
     $this->serverQueryString = $_SERVER['QUERY_STRING'];
     $this->serverRequestMethod = $_SERVER['REQUEST_METHOD'];
     $this->httpResponse = HttpResponse::getInstance();
     $this->json = JSON::getInstance();
 }
예제 #2
0
파일: mod_json.php 프로젝트: poef/ariadne
 public static function decode($str, $use = 0)
 {
     $json = JSON::getInstance($use);
     return $json->decode($str);
 }