@@ 126-129 (lines=4) @@ | ||
123 | } |
|
124 | ||
125 | // Date filter |
|
126 | if(!empty($params['CreatedFrom'])) { |
|
127 | $fromDate = new DateField(null, null, $params['CreatedFrom']); |
|
128 | $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
|
129 | } |
|
130 | if(!empty($params['CreatedTo'])) { |
|
131 | $toDate = new DateField(null, null, $params['CreatedTo']); |
|
132 | $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
@@ 130-133 (lines=4) @@ | ||
127 | $fromDate = new DateField(null, null, $params['CreatedFrom']); |
|
128 | $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); |
|
129 | } |
|
130 | if(!empty($params['CreatedTo'])) { |
|
131 | $toDate = new DateField(null, null, $params['CreatedTo']); |
|
132 | $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); |
|
133 | } |
|
134 | ||
135 | return $list; |
|
136 | } |