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