blob: 48a966d31212c4cc944ad9869ed9cf590e7a857d (
plain)
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\DefaultSelfAssign;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$container = $this;
$this->hook->on('controller:task-creation:form:default', function($values) use($container) {
$user = $container->userSession->getId();
return array('owner_id' => $user);
});
}
public function onStartup()
{
}
public function getPluginName()
{
return 'DefaultSelfAssign';
}
public function getPluginDescription()
{
return 'Self-assign tasks by default';
}
public function getPluginAuthor()
{
return 'mkl';
}
public function getPluginVersion()
{
return '1.0.0';
}
public function getPluginHomepage()
{
return 'https://kanban.intranet/';
}
public function getClasses() {
return array();
}
}
|