예제 #1
0
파일: Response.php 프로젝트: jtietema/Fizzy
 public function __construct(Zend_Http_Response $response)
 {
     $body = $response->getRawBody();
     $json = Zend_Json::decode($body);
     $this->_id = $json['id'];
     if (null !== $json['error']) {
         $this->_error = $json['error'];
     } else {
         $this->_result = $json['result'];
     }
 }
예제 #2
0
 public function processResponse(Zend_Http_Response $response)
 {
     $this->_lastMessageSize = strlen($response->getRawBody());
     $this->_status = $response->getStatus();
 }