1 <?php
2 3 4 5 6 7 8 9
10 class LessThanFilter extends SearchFilter {
11
12 13 14
15 public function apply(SQLQuery $query) {
16 $query = $this->applyRelation($query);
17 return $query->where(sprintf(
18 "%s < '%s'",
19 $this->getDbName(),
20 Convert::raw2sql($this->getDbFormattedValue())
21 ));
22 }
23
24 public function isEmpty() {
25 return $this->getValue() == null || $this->getValue() == '';
26 }
27 }
28 ?>
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-