-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
55 lines (45 loc) · 1.39 KB
/
Plugin.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace Kanboard\Plugin\Gotify;
use Kanboard\Core\Translator;
use Kanboard\Core\Plugin\Base;
/*
* Gotify Plugin
*
* @package Kanboard\Plugin\Gotify
* @author Benedikt Hopmann
*/
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:config:integrations', 'gotify:config/integration');
$this->template->hook->attach('template:project:integrations', 'gotify:project/integration');
$this->template->hook->attach('template:user:integrations', 'gotify:user/integration');
$this->userNotificationTypeModel->setType('gotify', t('Gotify'), '\Kanboard\Plugin\Gotify\Notification\Gotify');
$this->projectNotificationTypeModel->setType('gotify', t('Gotify'), '\Kanboard\Plugin\Gotify\Notification\Gotify');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginDescription()
{
return t('Receive notifications on Gotify');
}
public function getPluginAuthor()
{
return 'Benedikt Hopmann';
}
public function getPluginVersion()
{
return '1.1.0';
}
public function getPluginHomepage()
{
return 'https://github.com/bhopmann/kanboard-plugin-gotify';
}
public function getCompatibleVersion()
{
return '>=1.0.37';
}
}