-
Notifications
You must be signed in to change notification settings - Fork 17
/
Plugin.php
60 lines (48 loc) · 1.84 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
56
57
58
59
60
<?php
namespace Kanboard\Plugin\SendEmailCreator;
use Kanboard\Core\Plugin\Base;
use Kanboard\Model\CommentModel;
use Kanboard\Plugin\SendEmailCreator\Action\SendTaskAssignee;
use Kanboard\Plugin\SendEmailCreator\Action\SendTaskCreator;
use Kanboard\Plugin\SendEmailCreator\Action\SendTaskComment;
use Kanboard\Plugin\SendEmailCreator\Action\TaskEmailDue;
use Kanboard\Plugin\SendEmailCreator\Action\SubTaskEmailDue;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->actionManager->register(new SendTaskCreator($this->container));
$this->actionManager->register(new SendTaskAssignee($this->container));
$this->actionManager->register(new TaskEmailDue($this->container));
$this->actionManager->register(new SendTaskComment($this->container));
if (file_exists('plugins/Subtaskdate')) {
$this->actionManager->register(new SubTaskEmailDue($this->container));
}
$this->eventManager->register(CommentModel::EVENT_CREATE, 'On comment creation');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Auto Email Extended Actions';
}
public function getPluginAuthor()
{
return 'Craig Crosby';
}
public function getPluginVersion()
{
return '1.2.6';
}
public function getPluginDescription()
{
return 'Add the automatic actions to Send a task by email to the creator or assignee of the task. Also, included is an action to send a notification via email to user, creator, and assignee when a due date is impending within a duration.';
}
public function getPluginHomepage()
{
return 'https://github.com/creecros/SendTaskCreator';
}
}