mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-26 20:45:47 +02:00
22 lines
421 B
PHP
Executable File
22 lines
421 B
PHP
Executable File
<?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 ">";
|
|
}
|
|
|
|
}
|