mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 02:31:35 +02:00
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 ">=";
|
|
}
|
|
|
|
}
|