forked from humhub/mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModule.php
40 lines (33 loc) · 900 Bytes
/
Module.php
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
<?php
namespace humhub\modules\mail;
use humhub\modules\mail\notifications\ConversationNotificationCategory;
use humhub\modules\mail\notifications\MailNotificationDummy;
use humhub\modules\mail\notifications\MailNotificationDummy2;
/**
* MailModule provides messaging functions inside the application.
*
* @package humhub.modules.mail
* @since 0.5
*/
class Module extends \humhub\components\Module
{
/**
* @inheritdoc
*/
public function getPermissions($contentContainer = null)
{
if ($contentContainer !== null && $contentContainer instanceof \humhub\modules\user\models\User) {
return [
new permissions\SendMail()
];
}
return [];
}
public function getNotifications()
{
return [
MailNotificationDummy::class,
MailNotificationDummy2::class
];
}
}