lithium\data\source\Http::update()

public method

Update used by model to PUT.

Parameters

  • object $query
  • array $options

Returns

string

Filter

This method can be filtered.

Source

	public function update($query, array $options = array()) {
		$query = !is_object($query) ? new Query() : $query;
		$query->method() ?: $query->method("put");
		$query->path() ?: $query->path("/{:source}/{:id}");
		return $this->_filter(__METHOD__, array($query, $options), function($self, $params) {
			list($query, $options) = $params;
			return $self->send($query, $options);
		});
	}