-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
56 lines (40 loc) · 1.43 KB
/
Plugin.php
File metadata and controls
56 lines (40 loc) · 1.43 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
<?php
namespace Kanboard\Plugin\SkillMatrix;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->route->addRoute('/skillmatrix', 'SkillMatrixController', 'load', 'SkillMatrix');
$this->template->hook->attach('template:dashboard:sidebar', 'SkillMatrix:dashboard/sidebar');
$this->hook->on('template:layout:css', array('template' => 'plugins/SkillMatrix/Assets/css/custom.css'));
$this->hook->on('template:layout:js', array('template' => 'plugins/SkillMatrix/Assets/js/functions.js'));
$this->helper->register('skillDatabaseHelper', '\Kanboard\Plugin\SkillMatrix\Helper\SkillDatabaseHelper');
$this->helper->register('skillFunctionsHelper', '\Kanboard\Plugin\SkillMatrix\Helper\SkillFunctionsHelper');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Skill Matrix';
}
public function getPluginDescription()
{
return t('Plugin for monitoring knowledge of existing users');
}
public function getPluginAuthor()
{
return 'Jan Válka';
}
public function getPluginVersion()
{
return '1.0.0';
}
public function getPluginHomepage()
{
return 'https://github.com/kanboard/plugin-myplugin';
}
}