-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSimpleKanban.php
More file actions
54 lines (49 loc) · 1.22 KB
/
Copy pathSimpleKanban.php
File metadata and controls
54 lines (49 loc) · 1.22 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
<?php
/**
* Simple Kanban Board Plugin for MantisBT
* A safe, minimal implementation
*/
class SimpleKanbanPlugin extends MantisPlugin {
/**
* Plugin registration
*/
function register() {
$this->name = 'Simple Kanban';
$this->description = 'A simple Kanban board for bug tracking with drag-and-drop functionality';
$this->page = 'kanban';
$this->version = '1.0.4';
$this->requires = array(
'MantisCore' => '2.0.0',
);
$this->author = 'Anson';
$this->contact = 'anson@local';
$this->url = '';
}
/**
* Plugin hooks
*/
function hooks() {
return array(
'EVENT_MENU_MAIN' => 'menu_main',
);
}
/**
* Plugin pages
*/
function init() {
$this->page = 'kanban';
}
/**
* Menu items for main navigation (following Time Tracking pattern)
*/
function menu_main() {
return array(
array(
'title' => 'Kanban Board',
'access_level' => config_get( 'view_bug_threshold' ),
'url' => plugin_page( 'kanban' ),
'icon' => 'fa-columns'
)
);
}
}