|
@@ 1095-1098 (lines=4) @@
|
| 1092 |
|
} |
| 1093 |
|
|
| 1094 |
|
// Date filtering |
| 1095 |
|
if (!empty($params['CreatedFrom'])) { |
| 1096 |
|
$fromDate = new DateField(null, null, $params['CreatedFrom']); |
| 1097 |
|
$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
| 1098 |
|
} |
| 1099 |
|
if (!empty($params['CreatedTo'])) { |
| 1100 |
|
$toDate = new DateField(null, null, $params['CreatedTo']); |
| 1101 |
|
$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
@@ 1099-1102 (lines=4) @@
|
| 1096 |
|
$fromDate = new DateField(null, null, $params['CreatedFrom']); |
| 1097 |
|
$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
| 1098 |
|
} |
| 1099 |
|
if (!empty($params['CreatedTo'])) { |
| 1100 |
|
$toDate = new DateField(null, null, $params['CreatedTo']); |
| 1101 |
|
$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
| 1102 |
|
} |
| 1103 |
|
|
| 1104 |
|
// Categories |
| 1105 |
|
$categories = File::config()->app_categories; |