SilverCart\ORM\Filters\DateRangeSearchFilter
Search between two dates.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class DateRangeSearchFilter
extends SearchFilter
{
- // methods
- public void setMin()
- public void setMax()
- public void initValue()
- public void apply()
- public void applyOne()
- public void excludeOne()
Hierarchy
Extends
- SilverStripe\ORM\Filters\SearchFilter
Members
protected
- $max
—
string
Maximum date - $min
—
string
Minimum date
Methods
public
- apply() — Apply filter query SQL to a search query Date range filtering between min and max values
- applyOne() — mandatory method, because it is an abstract method on the parent class
- excludeOne() — mandatory method, because it is an abstract method on the parent class
- initValue() — Initializes the min and max value.
- setMax() — Setter for max date value
- setMin() — Setter for min date value