-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMumieTaskPlugin.class.php
More file actions
59 lines (53 loc) · 1.98 KB
/
Copy pathMumieTaskPlugin.class.php
File metadata and controls
59 lines (53 loc) · 1.98 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
56
57
58
59
<?php
/**
* This file is part of the MumieTaskPlugin for StudIP.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* @author Tobias Goltz <tobias.goltz@integral-learning.de>
* @copyright 2020 integral-learning GmbH (https://www.integral-learning.de/)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @category Stud.IP
*/
require_once(__DIR__ . '/models/MumieServer.php');
require_once(__DIR__ . '/models/MumieTask.php');
require_once(__DIR__ . '/models/MumieHash.php');
require_once(__DIR__ . '/models/MumieGrade.php');
/**
* MumieTaskPlugin is easy way to add content from MUMIE LMS to StudIP. It provides functionality for SSO and synchronizes grades from MUMIE with StudIP
*/
class MumieTaskPlugin extends StudIPPlugin implements SystemPlugin, StandardPlugin
{
public function __construct()
{
global $perm;
parent::__construct();
if ($perm->have_perm('root')) {
$config = new Navigation(dgettext("MumieTaskPlugin", 'MUMIE-Task'), PluginEngine::getLink($this, array(), 'admin'));
$config->setURL(PluginEngine::getLink($this, array(), 'admin'));
Navigation::addItem('/admin/config/mumie', $config);
}
}
public function getInfoTemplate($course_id)
{
}
public function getIconNavigation($course_id, $last_visit, $user_id)
{
}
public function getTabNavigation($course_id)
{
$navigation = new Navigation(dgettext("MumieTaskPlugin", 'MUMIE-Task'), PluginEngine::getLink($this, array(), 'taskWrapper'));
$navigation->setImage(Icon::create('assessment'));
return [
'mumietask' => $navigation
];
}
public function getMetadata()
{
$metadata = parent::getMetadata();
return $metadata;
}
}