コード例 #1
0
 /**
  * undocumented function
  *
  * @param string $data 
  * @return void
  * @author Adam Venturella
  */
 private function setData($data)
 {
     $this->initializeResponse($data);
     $this->_result = couchdb_json_decode($this->_data);
     if (is_array($this->_result) && isset($this->_result['error'])) {
         $this->_error = array('error' => $this->_result['error'], 'reason' => $this->_result['reason']);
     }
 }
コード例 #2
0
 /**
  * undocumented function
  *
  * @param string $json 
  * @return void
  * @author Adam Venturella
  */
 private function setJSON($json)
 {
     $this->result = couchdb_json_decode($json);
 }