mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-18 02:31:36 +02:00
7a10c194bd
This updates framework to be more in keeping with PHP conventions.
22 lines
412 B
PHP
Executable File
22 lines
412 B
PHP
Executable File
<?php
|
|
|
|
namespace SilverStripe\ORM\Filters;
|
|
|
|
/**
|
|
* 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);
|
|
*/
|
|
class LessThanOrEqualFilter extends ComparisonFilter {
|
|
|
|
protected function getOperator() {
|
|
return "<=";
|
|
}
|
|
|
|
protected function getInverseOperator() {
|
|
return ">";
|
|
}
|
|
|
|
}
|