-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #813 - Add new event to modify the date time frame constraint
- Loading branch information
1 parent
7ac7c01
commit 836862c
Showing
5 changed files
with
63 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace HDNET\Calendarize\Event; | ||
|
||
use TYPO3\CMS\Extbase\Mvc\Controller\Arguments; | ||
use TYPO3\CMS\Extbase\Mvc\Request; | ||
use TYPO3\CMS\Extbase\Persistence\QueryInterface; | ||
|
||
final class ModifyDateTimeFrameConstraintEvent | ||
{ | ||
public function __construct( | ||
protected QueryInterface $query, | ||
protected ?\DateTimeInterface $start, | ||
protected ?\DateTimeInterface $end, | ||
protected bool $respectTime, | ||
protected array $dateConstraints, | ||
) | ||
{ | ||
} | ||
|
||
public function getQuery(): QueryInterface | ||
{ | ||
return $this->query; | ||
} | ||
|
||
public function getStart(): ?\DateTimeInterface | ||
{ | ||
return $this->start; | ||
} | ||
|
||
public function getEnd(): ?\DateTimeInterface | ||
{ | ||
return $this->end; | ||
} | ||
|
||
public function isRespectTime(): bool | ||
{ | ||
return $this->respectTime; | ||
} | ||
|
||
public function getDateConstraints(): array | ||
{ | ||
return $this->dateConstraints; | ||
} | ||
|
||
public function setDateConstraints(array $dateConstraints): void | ||
{ | ||
$this->dateConstraints = $dateConstraints; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters