save default search options (#2445)

* set default times for daterange objects
* allow to show order and order by fields
* move search to modal
* more options for page size
* save export visibility in cookie
This commit is contained in:
Kevin Papst
2021-03-20 01:10:45 +01:00
committed by GitHub
parent 954ba7c937
commit 87d07ffaaf
83 changed files with 903 additions and 410 deletions

View File

@@ -13,13 +13,7 @@ use DateTime;
final class DateRange
{
/**
* @var DateTime
*/
private $begin;
/**
* @var DateTime
*/
private $end;
public function getBegin(): ?DateTime
@@ -30,6 +24,7 @@ final class DateRange
public function setBegin(DateTime $begin): DateRange
{
$this->begin = $begin;
$this->begin->setTime(0, 0, 0);
return $this;
}
@@ -42,6 +37,7 @@ final class DateRange
public function setEnd(DateTime $end): DateRange
{
$this->end = $end;
$this->end->setTime(23, 59, 59);
return $this;
}