-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
51 lines (41 loc) · 1.38 KB
/
Plugin.php
File metadata and controls
51 lines (41 loc) · 1.38 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
<?php
namespace Kanboard\Plugin\Sendmessage;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Security\Role;
use Kanboard\Core\Translator;
use Kanboard\Plugin\Sendmessage\Helper\SendmessageHelper;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:project:header:after', 'Sendmessage:message');
$this->template->hook->attach('template:config:sidebar', 'Sendmessage:admin/sidebar');
$this->hook->on('template:layout:css', array('template' => 'plugins/Sendmessage/styles.css'));
$this->helper->register('sendmessage', new SendmessageHelper($this->container));
$this->applicationAccessMap->add('SendmessageController', array('show', 'save', 'deleteMessage'), Role::APP_ADMIN);
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Sendmessage';
}
public function getPluginAuthor()
{
return 'innokentiyt';
}
public function getPluginVersion()
{
return '0.0.1';
}
public function getPluginDescription()
{
return 'A Kanboard plugin to send one-way messages for individual users.';
}
public function getPluginHomepage()
{
return 'https://github.com/innokentiyt/plugin-sendmessage/';
}
}