507B; PHP | 2019-03-26 18:04:07+01 | SLOC 19
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 2
    public function __construct() {
CamelCaseVariableName The variable $ID is not named in camelCase. (kritika/PHPMD) Filter like this
CamelCaseVariableName The variable $ID is not named in camelCase. (kritika/PHPMD) Filter like this
14 1
        global $ID;
15
        parent::__construct();
16
17
        $this->svg = DOKU_INC_COMPAT . '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
}