aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/sidebar/NavigationWidget.php
blob: 32442f5bbefa1e3fab1a6777f8d8a5ab0f59a4b9 (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
<?php
class NavigationWidget extends LinksWidget
{
    public function __construct()
    {
        parent::__construct();

        $this->title = _('Navigation');
        $this->addCSSClass('sidebar-navigation');
    }

    /**
     * Adds a link to the widget
     *
     * @param String $label  Label/content of the link
     * @param String $url    URL/Location of the link
     * @param Icon   $icon   (not used)
     * @param array  $attributes Optional attributes fot the generated link
     * @param mixed  $index  Index to use for the element
     * @return LinkElement
     */
    public function &addLink($label, $url, $icon = null, $attributes = [], $index = null)
    {
        return parent::addLink($label, $url, null, $attributes, $index);
    }
}