feat(management) Support default dates for DateFilterElement

Used by audit plugin

issue #5992
parent e950736a
......@@ -30,7 +30,7 @@ class DateFilterElement extends FilterElement
protected $max;
protected $types;
public function __construct (managementFilter $parent, string $attribute, string $label, array $types = [])
public function __construct (managementFilter $parent, string $attribute, string $label, string $defaultMin = NULL, string $defaultMax = NULL, array $types = [])
{
global $config;
......@@ -39,6 +39,8 @@ class DateFilterElement extends FilterElement
$this->attribute = $attribute;
$this->label = $label;
$this->types = $types;
$this->min = $defaultMin;
$this->max = $defaultMax;
}
public function update ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment