-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
92 additions
and
16 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
18 changes: 18 additions & 0 deletions
18
app/Services/PersonalDataSelection/Exporters/EventExporter.php
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Services\PersonalDataSelection\Exporters; | ||
|
||
use App\Models\Event; | ||
use App\Services\PersonalDataSelection\Exporters\Base\AbstractExporter; | ||
use App\Services\PersonalDataSelection\Exporters\Base\ModelExportable; | ||
|
||
class EventExporter extends AbstractExporter | ||
{ | ||
use ModelExportable; | ||
|
||
protected string $fileName = 'events.json'; | ||
protected string $model = Event::class; | ||
protected string $whereColumn = 'approved_by'; | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Services/PersonalDataSelection/Exporters/EventSuggestionsExporter.php
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Services\PersonalDataSelection\Exporters; | ||
|
||
use App\Models\EventSuggestion; | ||
use App\Services\PersonalDataSelection\Exporters\Base\AbstractExporter; | ||
use App\Services\PersonalDataSelection\Exporters\Base\ModelExportable; | ||
|
||
class EventSuggestionsExporter extends AbstractExporter | ||
{ | ||
use ModelExportable; | ||
|
||
protected string $fileName = 'event_suggestions.json'; | ||
protected string $model = EventSuggestion::class; | ||
protected string $whereColumn = 'user_id'; | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Services/PersonalDataSelection/Exporters/MentionExporter.php
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Services\PersonalDataSelection\Exporters; | ||
|
||
use App\Models\Mention; | ||
use App\Services\PersonalDataSelection\Exporters\Base\AbstractExporter; | ||
use App\Services\PersonalDataSelection\Exporters\Base\ModelExportable; | ||
|
||
class MentionExporter extends AbstractExporter | ||
{ | ||
use ModelExportable; | ||
|
||
protected string $fileName = 'mentions.json'; | ||
protected string $model = Mention::class; | ||
protected string $whereColumn = 'mentioned_id'; | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Services/PersonalDataSelection/Exporters/WebhookCreationRequestExporter.php
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Services\PersonalDataSelection\Exporters; | ||
|
||
use App\Models\WebhookCreationRequest; | ||
use App\Services\PersonalDataSelection\Exporters\Base\AbstractExporter; | ||
use App\Services\PersonalDataSelection\Exporters\Base\ModelExportable; | ||
|
||
class WebhookCreationRequestExporter extends AbstractExporter | ||
{ | ||
use ModelExportable; | ||
|
||
protected string $fileName = 'webhook_creation_requests.json'; | ||
protected string $model = WebhookCreationRequest::class; | ||
protected string $whereColumn = 'user_id'; | ||
} |
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