lithium\data\source\Http::update()
Implements
lithium\data\Source::update()
Update used by model to PUT.
Parameters
-
object
$query
-
array
$options
Returns
stringFilter
This method can be filtered.
Source
public function update($query, array $options = []) {
$query = !is_object($query) ? new Query() : $query;
$query->method() ?: $query->method("put");
$query->path() ?: $query->path("/{:source}/{:id}");
$params = [$query, $options];
return Filters::run($this, __FUNCTION__, $params, function($params) {
list($query, $options) = $params;
return $this->send($query, $options);
});
}