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

ImgBackto   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace dokuwiki\Menu\Item;
4
5
/**
6
 * Class ImgBackto
7
 *
8
 * Links back to the originating page from a detail image view
9
 */
10
class ImgBackto extends AbstractItem {
11
12
    /** @inheritdoc */
13
    public function __construct() {
14
        global $ID;
15
        parent::__construct();
16
17
        $this->svg = DOKU_INC . 'lib/images/menu/12-back_arrow-left.svg';
18
        $this->type = 'img_backto';
19
        $this->params = array();
20
        $this->accesskey = 'b';
21
        $this->replacement = $ID;
22
    }
23
24
}
25