This repository was archived by the owner on Apr 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPlugin.php
More file actions
57 lines (46 loc) · 1.41 KB
/
Plugin.php
File metadata and controls
57 lines (46 loc) · 1.41 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
<?php
namespace Kanboard\Plugin\Jabber;
require_once __DIR__.'/vendor/autoload.php';
use Kanboard\Core\Translator;
use Kanboard\Core\Plugin\Base;
/**
* Jabber Plugin
*
* @package jabber
* @author Frederic Guillot
*/
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:config:integrations', 'jabber:config/integration');
$this->template->hook->attach('template:project:integrations', 'jabber:project/integration');
$this->template->hook->attach('template:user:integrations', 'jabber:user/integration');
$this->userNotificationTypeModel->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber');
$this->projectNotificationTypeModel->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginDescription()
{
return 'Receive notifications on Jabber';
}
public function getPluginAuthor()
{
return 'Frédéric Guillot';
}
public function getPluginVersion()
{
return '1.0.8';
}
public function getPluginHomepage()
{
return 'https://github.com/kanboard/plugin-jabber';
}
public function getCompatibleVersion()
{
return '>=1.0.37';
}
}