Select Git revision
ContentsNavigation.php
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
-
Ron Lucke authored
Closes #3059 Merge request studip/studip!2048
Ron Lucke authoredCloses #3059 Merge request studip/studip!2048
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ContentsNavigation.php 6.01 KiB
<?php
/**
* ContensDashboardNavigation.php - navigation for contents dashboard
*
* 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.
*
* @author Ron Lucke <lucke@elan-ev.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
*
* @category Stud.IP
*/
class ContentsNavigation extends Navigation
{
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
parent::__construct(_('Arbeitsplatz'));
$this->setImage(Icon::create('content', 'navigation', ['title' => _('Mein Arbeitsplatz')]));
}
/**
* Initialize the subnavigation of this item. This method
* is called once before the first item is added or removed.
*/
public function initSubNavigation()
{
parent::initSubNavigation();
global $perm;
$overview = new Navigation(_('Übersicht'));
$overview->addSubNavigation(
'index',
new Navigation(_('Übersicht'), 'dispatch.php/contents/overview')
);
$this->addSubNavigation('overview', $overview);
if (PluginManager::getInstance()->getPlugin('CoursewareModule')) {
$courseware = new Navigation(_('Courseware'));
$courseware->setDescription(_('Erstellen und Sammeln von Lernmaterialien'));
$courseware->setImage(Icon::create('courseware'));
$courseware = new Navigation(_('Courseware'));
$courseware->setDescription(_('Erstellen und Sammeln von Lernmaterialien'));
$courseware->setImage(Icon::create('courseware'));
$courseware->addSubNavigation(
'shelf',
new Navigation(_('Lernmaterialien'), 'dispatch.php/contents/courseware/index')
);
$courseware->addSubNavigation(
'courseware',
new Navigation(_('Inhalt'), 'dispatch.php/contents/courseware/courseware')
);
$courseware->addSubNavigation(
'releases',
new Navigation(_('Freigaben'), 'dispatch.php/contents/courseware/releases')
);
$courseware->addSubNavigation(
'bookmarks',
new Navigation(_('Lesezeichen'), 'dispatch.php/contents/courseware/bookmarks')
);
$courseware->addSubNavigation(