Created
December 19, 2019 23:45
-
-
Save muskie9/8a919ed53c8dab629628c965466c554f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** DataList $myList */ | |
$myList = Something::get(); | |
$withinRangeFilter = new WithinRangeFilter('ColumnName');//in this case I had a Date column | |
$withinRangeFilter->setMin('YYYY-MM-DD');//low end date | |
$withinRangeFilter->setMax('YYYY-MM-DD');//high end date | |
$myList = $myList->alterDataQuery([$withinRangeFitler, 'apply']); | |
return $myList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment