mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-15 22:16:32 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
22 lines
386 B
PHP
Executable File
22 lines
386 B
PHP
Executable File
<?php
|
|
|
|
namespace SilverStripe\ORM\Filters;
|
|
|
|
/**
|
|
* Selects numerical/date content less than the input
|
|
*
|
|
* Can be used by SearchContext and DataList->filter, eg;
|
|
* Model::get()->filter("Field1:LessThan", $value);
|
|
*/
|
|
class LessThanFilter extends ComparisonFilter {
|
|
|
|
protected function getOperator() {
|
|
return "<";
|
|
}
|
|
|
|
protected function getInverseOperator() {
|
|
return ">=";
|
|
}
|
|
|
|
}
|