Completed
Push — master ( 421aa4...1b48b8 )
by Alberto
23s queued 17s
created

MultiuploadController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
eloc 7
c 2
b 1
f 0
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 7 1
A index() 0 2 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * BEdita, API-first content management framework
5
 * Copyright 2024 Atlas Srl, Chialab Srl
6
 *
7
 * This file is part of BEdita: you can redistribute it and/or modify
8
 * it under the terms of the GNU Lesser General Public License as published
9
 * by the Free Software Foundation, either version 3 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
13
 */
14
15
namespace App\Controller;
16
17
/**
18
 * Multiupload Controller
19
 */
20
class MultiuploadController extends AppController
21
{
22
    /**
23
     * Object type currently used
24
     *
25
     * @var string
26
     */
27
    protected $objectType = null;
28
29
    /**
30
     * @inheritDoc
31
     */
32
    public function initialize(): void
33
    {
34
        parent::initialize();
35
        $this->objectType = $this->getRequest()->getParam('object_type');
36
        $this->Modules->setConfig('currentModuleName', ucfirst($this->objectType));
37
        $this->set('currentModule', ['name' => $this->objectType]);
38
        $this->set('objectType', $this->objectType);
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     *
44
     * @codeCoverageIgnore
45
     */
46
    public function index(): void
47
    {
48
    }
49
}
50