/** * 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']); } }
/** * undocumented function * * @param string $json * @return void * @author Adam Venturella */ private function setJSON($json) { $this->result = couchdb_json_decode($json); }