/** * Make an update request. * * @param array $data The data to update. * * @return mixed the result from the database (defined by $returnFields) */ public function update(array $data) { $path = "/" . $this->table; $path .= "/" . implode(",", $this->fields); $path .= "?"; if ($this->where) { $path .= "where=" . urlencode($this->where) . "&"; } $data['key'] = $this->wsConfig->getApiKey(); if ($this->returnFields) { $data['return'] = implode(",", $this->returnFields); } return $this->http->put($this->wsConfig->getUrl() . $path, $data); }
public function testDbWebServiceUrl() { $config = new DbWebserviceConfig(); $this->assertEqual($config->getUrl(), "http://kort.sourcepole.ch/db"); }