silverstripe-framework/search/filters/NegationFilter.php

21 lines
338 B
PHP

<?php
/**
* @package search
* @subpackage filters
*/
/**
* Matches on rows where the field is not equal to the given value.
*
* @package search
* @subpackage filters
*/
class NegationFilter extends SearchFilter {
public function apply(SQLQuery $query) {
return $query->where("{$this->name} != '{$this->value}'");
}
}
?>