| @@ 493-496 (lines=4) @@ | ||
| 490 | )); |
|
| 491 | } |
|
| 492 | ||
| 493 | if (!empty($filters['createdFrom'])) { |
|
| 494 | $fromDate = new DateField(null, null, $filters['createdFrom']); |
|
| 495 | $files = $files->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
|
| 496 | } |
|
| 497 | ||
| 498 | if (!empty($filters['createdTo'])) { |
|
| 499 | $toDate = new DateField(null, null, $filters['createdTo']); |
|
| @@ 498-501 (lines=4) @@ | ||
| 495 | $files = $files->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
|
| 496 | } |
|
| 497 | ||
| 498 | if (!empty($filters['createdTo'])) { |
|
| 499 | $toDate = new DateField(null, null, $filters['createdTo']); |
|
| 500 | $files = $files->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
| 501 | } |
|
| 502 | ||
| 503 | if (!empty($filters['type']) && !empty(File::config()->app_categories[$filters['type']])) { |
|
| 504 | $extensions = File::config()->app_categories[$filters['type']]; |
|
| @@ 229-232 (lines=4) @@ | ||
| 226 | $fromDate = new DateField(null, null, $params['CreatedFrom']); |
|
| 227 | $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
|
| 228 | } |
|
| 229 | if (!empty($params['CreatedTo'])) { |
|
| 230 | $toDate = new DateField(null, null, $params['CreatedTo']); |
|
| 231 | $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
| 232 | } |
|
| 233 | ||
| 234 | return $list; |
|
| 235 | } |
|