forked from fabarea/messenger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSentMessageModuleController.php
More file actions
58 lines (50 loc) · 1.77 KB
/
Copy pathSentMessageModuleController.php
File metadata and controls
58 lines (50 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace Fab\Messenger\Controller;
use Fab\Messenger\Domain\Repository\MessengerRepositoryInterface;
use Fab\Messenger\Domain\Repository\SentMessageRepository;
use Fab\Messenger\Service\DataExportService;
use TYPO3\CMS\Backend\Template\ModuleTemplateFactory;
use TYPO3\CMS\Core\Imaging\IconFactory;
class SentMessageModuleController extends AbstractMessengerController
{
protected array $allowedColumns = [
'uid',
'crdate',
'tstamp',
'sender',
'subject',
'mailing_name',
'recipient',
'sent_time',
'context',
'body',
'recipient_cc',
'recipient_bcc',
'redirect_email_from',
'attachment',
'message_template',
'message_layout',
'ip',
'was_opened',
'scheduled_distribution_time',
'uuid',
];
protected array $defaultSelectedColumns = ['sender', 'subject', 'context', 'recipient', 'sent_time'];
protected array $demandFields = ['sender', 'recipient', 'subject', 'mailing_name', 'sent_time'];
protected string $domainModel = 'sentmessage';
protected string $controller = 'SendMessageModule';
protected string $action = 'index';
protected string $moduleName = 'MessengerTxMessengerM1';
protected string $table = 'tx_messenger_domain_model_sentmessage';
protected string $dataType = 'sent-message';
protected ?MessengerRepositoryInterface $repository;
public function __construct(
ModuleTemplateFactory $moduleTemplateFactory,
IconFactory $iconFactory,
DataExportService $dataExportService,
SentMessageRepository $repository
) {
parent::__construct($moduleTemplateFactory, $iconFactory, $dataExportService);
$this->repository = $repository;
}
}