00001 <?php 00025 require_once 'Zend/Json/Server/Request.php'; 00026 00033 class Zend_Json_Server_Request_Http extends Zend_Json_Server_Request 00034 { 00039 protected $_rawJson; 00040 00048 public function __construct() 00049 { 00050 $json = file_get_contents('php://input'); 00051 $this->_rawJson = $json; 00052 if (!empty($json)) { 00053 $this->loadJson($json); 00054 } 00055 } 00056 00062 public function getRawJson() 00063 { 00064 return $this->_rawJson; 00065 } 00066 }