Completed
Push — master ( 9b78f7...5dcb4f )
by Andreas
08:15 queued 03:39
created

Top::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
1
<?php
2
3
namespace dokuwiki\Menu\Item;
4
5
/**
6
 * Class Top
7
 *
8
 * Scroll back to the top. Uses a hash as $id which is handled special in getLink().
9
 * Not shown in mobile context
10
 */
11
class Top extends AbstractItem {
12
13
    /** @inheritdoc */
14
    public function __construct() {
15
        parent::__construct();
16
17
        $this->svg = DOKU_INC . 'lib/images/menu/10-top_arrow-up.svg';
18
        $this->accesskey = 't';
19
        $this->params = array('do' => '');
20
        $this->id = '#dokuwiki__top';
21
        $this->context = self::CTX_DESKTOP;
22
    }
23
24
}
25