|
@@ 1179-1182 (lines=4) @@
|
| 1176 |
|
} |
| 1177 |
|
|
| 1178 |
|
// Date filtering |
| 1179 |
|
if (!empty($params['CreatedFrom'])) { |
| 1180 |
|
$fromDate = new DateField(null, null, $params['CreatedFrom']); |
| 1181 |
|
$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
| 1182 |
|
} |
| 1183 |
|
if (!empty($params['CreatedTo'])) { |
| 1184 |
|
$toDate = new DateField(null, null, $params['CreatedTo']); |
| 1185 |
|
$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
@@ 1183-1186 (lines=4) @@
|
| 1180 |
|
$fromDate = new DateField(null, null, $params['CreatedFrom']); |
| 1181 |
|
$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
| 1182 |
|
} |
| 1183 |
|
if (!empty($params['CreatedTo'])) { |
| 1184 |
|
$toDate = new DateField(null, null, $params['CreatedTo']); |
| 1185 |
|
$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
| 1186 |
|
} |
| 1187 |
|
|
| 1188 |
|
// Categories |
| 1189 |
|
$categories = File::config()->app_categories; |