blob: 5b450c0d3b2281aa0c96b5d15117013b5b06c1ce (
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
52
53
54
55
|
<?php
/**
* FilesNavigation.php - A navigation class for the files main navigation item
* and its second layer navigation items.
*
* 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.
*
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
*
* @category Stud.IP
*/
class FilesNavigation extends Navigation
{
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
parent::__construct(_('Dateien'), 'dispatch.php/files/overview');
$this->setImage(
Icon::create(
'files',
'navigation',
['title' => _('Alle Dateien')]
)
);
}
/**
* Initialise the subnavigation of this item. This method
* is called once before the first item is added or removed.
*/
public function initSubNavigation()
{
parent::initSubNavigation();
$this->addSubNavigation(
'overview',
new Navigation(_('Übersicht'), 'dispatch.php/files/overview')
);
$this->addSubNavigation(
'my_files',
new Navigation(_('Persönliche Dateien'), 'dispatch.php/files/index')
);
$this->addSubNavigation(
'search',
new Navigation(_('Suche'), 'dispatch.php/files_dashboard/search')
);
}
}
|