コード例 #1
0
ファイル: Application.php プロジェクト: asanoturna/finance-2
 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);
 }