Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Json / Server / Request / Http.php
blobd90fcd664f1cb3e7d13212a643dffec645c6266d
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Json\Server\Request;
12 use Zend\Json\Server\Request as JsonRequest;
14 class Http extends JsonRequest
16 /**
17 * Raw JSON pulled from POST body
18 * @var string
20 protected $rawJson;
22 /**
23 * Constructor
25 * Pull JSON request from raw POST body and use to populate request.
28 public function __construct()
30 $json = file_get_contents('php://input');
31 $this->rawJson = $json;
32 if (!empty($json)) {
33 $this->loadJson($json);
37 /**
38 * Get JSON from raw POST body
40 * @return string
42 public function getRawJson()
44 return $this->rawJson;