-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Added ModifyDownloadRegistrationCsvEvent PSR-14 event
Refs #1164
- Loading branch information
Showing
4 changed files
with
87 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Extension "sf_event_mgt" for TYPO3 CMS. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace DERHANSEN\SfEventMgt\Event; | ||
|
||
/** | ||
* This event is triggered before the registration CSV download is initiated. Listerners can use this event | ||
* to set the CSV content and the CSV filename | ||
*/ | ||
final class ModifyDownloadRegistrationCsvEvent | ||
{ | ||
public function __construct( | ||
protected string $csvContent, | ||
protected string $downloadFilename, | ||
protected readonly int $eventUid, | ||
protected readonly array $settings | ||
) { | ||
} | ||
|
||
public function getCsvContent(): string | ||
{ | ||
return $this->csvContent; | ||
} | ||
|
||
public function setCsvContent(string $csvContent): void | ||
{ | ||
$this->csvContent = $csvContent; | ||
} | ||
|
||
public function getDownloadFilename(): string | ||
{ | ||
return $this->downloadFilename; | ||
} | ||
|
||
public function setDownloadFilename(string $downloadFilename): void | ||
{ | ||
$this->downloadFilename = $downloadFilename; | ||
} | ||
|
||
public function getEventUid(): int | ||
{ | ||
return $this->eventUid; | ||
} | ||
|
||
public function getSettings(): array | ||
{ | ||
return $this->settings; | ||
} | ||
} |
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
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