Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (18 sloc) 0.402 kB
<?php
/**
* Matches on rows where the field is not equal to the given value.
*
* @package sapphire
* @subpackage search
*/
class NegationFilter extends SearchFilter {
public function apply(DataQuery $query) {
$this->model = $query->applyRelation($this->relation);
return $query->where(sprintf(
"%s != '%s'",
$this->getDbName(),
Convert::raw2sql($this->getValue())
));
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.