Skip to content
Snippets Groups Projects
Select Git revision
  • 70e4db2138bd8ab187ae8578ead3acb108d0934a
  • main default protected
  • studip-rector
  • ci-opt
  • course-members-export-as-word
  • data-vue-app
  • pipeline-improvements
  • webpack-optimizations
  • rector
  • icon-renewal
  • http-client-and-factories
  • jsonapi-atomic-operations
  • vueify-messages
  • tic-2341
  • 135-translatable-study-areas
  • extensible-sorm-action-parameters
  • sorm-configuration-trait
  • jsonapi-mvv-routes
  • docblocks-for-magic-methods
19 results

ContentsNavigation.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    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(