mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-26 20:45:47 +02:00
22 lines
404 B
PHP
Executable File
22 lines
404 B
PHP
Executable File
<?php
|
|
/**
|
|
* Selects numerical/date content greater than the input
|
|
*
|
|
* Can be used by SearchContext and DataList->filter, eg;
|
|
* Model::get()->filter("Field1:GreaterThan", $value);
|
|
*
|
|
* @package framework
|
|
* @subpackage search
|
|
*/
|
|
class GreaterThanFilter extends ComparisonFilter {
|
|
|
|
protected function getOperator() {
|
|
return ">";
|
|
}
|
|
|
|
protected function getInverseOperator() {
|
|
return "<=";
|
|
}
|
|
|
|
}
|