-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathToolAssistant.php
45 lines (39 loc) · 1.25 KB
/
ToolAssistant.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
<?PHP
/*
* ToolAssistant.class.php - ToolAssistant plugin for Stud.IP
* Copyright (c) 2007 Elmar Ludwig
*
* 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 2 of
* the License, or (at your option) any later version.
*/
class ToolAssistant extends StudIPPlugin implements StandardPlugin
{
public function __construct()
{
parent::__construct();
$preferredLang = mb_substr($GLOBALS['user']->preferred_language, 0, 2);
if ($preferredLang=='en') {
$name='🧍🏠 Teach Online';
} else {
$name='🧍🏠 Online-Lehre';
}
if ($this->isActivated() && Navigation::hasItem('/course/admin')) {
$navigation = new Navigation($name, PluginEngine::getURL($this, null, 'assistant'));
Navigation::insertItem('/course/assistant', $navigation, 'admin');
}
}
public function getIconNavigation($course_id, $last_visit, $user_id)
{
return null;
}
public function getInfoTemplate($course_id)
{
return null;
}
public function getTabNavigation($course_id)
{
return null;
}
}