-
Notifications
You must be signed in to change notification settings - Fork 5
/
Plugin.php
58 lines (45 loc) · 1.44 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
<?php
namespace Kanboard\Plugin\AutoSubtasks;
use Kanboard\Core\Plugin\Base;
use Kanboard\Plugin\AutoSubtasks\Action\AutoCreateSubtask;
use Kanboard\Plugin\AutoSubtasks\Action\AutoCreateSubtaskVanilla;
use Kanboard\Plugin\AutoSubtasks\Action\CategoryAutoSubtask;
use Kanboard\Plugin\AutoSubtasks\Action\CategoryAutoSubtaskVanilla;
class Plugin extends Base
{
public function initialize()
{
$this->template->setTemplateOverride('action_creation/params', 'autoSubtasks:action_creation/params');
if (file_exists('plugins/Subtaskdate')) {
$this->actionManager->register(new AutoCreateSubtask($this->container));
$this->actionManager->register(new CategoryAutoSubtask($this->container));
} else {
$this->actionManager->register(new AutoCreateSubtaskVanilla($this->container));
$this->actionManager->register(new CategoryAutoSubtaskVanilla($this->container));
}
}
public function getPluginName()
{
return 'Auto Subtask Creation';
}
public function getPluginAuthor()
{
return 'Craig Crosby';
}
public function getPluginVersion()
{
return '2.1.0';
}
public function getPluginDescription()
{
return 'Adding automatic actions for subtasks';
}
public function getPluginHomepage()
{
return 'https://github.com/creecros/AutoSubtasks';
}
public function getCompatibleVersion()
{
return '>=1.0.48';
}
}