lithium\data\source\Http::delete()
Implements
lithium\data\Source::delete()
Used by model to DELETE.
Parameters
-
object
$query
-
array
$options
Returns
stringFilter
This method can be filtered.
Source
public function delete($query, array $options = array()) {
$query = !is_object($query) ? new Query() : $query;
$query->method() ?: $query->method("delete");
$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);
});
}