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