Completed
Push — master ( c789ef...055413 )
by
unknown
46:44 queued 32:00
created

getRecords()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the TYPO3 CMS project.
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17
18
namespace TYPO3\CMS\Backend\Controller\Event;
19
20
use TYPO3\CMS\Backend\View\BackendLayout\BackendLayout;
21
22
/**
23
 * This event triggers after the LocalizationController (AJAX) has
24
 * selected page columns to be translated. Allows third parties to
25
 * add to or change the columns and content elements withing those
26
 * columns which will be available for localization through the
27
 * "translate" modal in the page module.
28
 */
29
final class AfterPageColumnsSelectedForLocalizationEvent
30
{
31
    /**
32
     * List of columns, indexed by column position number, value is label (either LLL: or hardcoded).
33
     *
34
     * @var array
35
     */
36
    private $columns;
37
38
    /**
39
     * Array of records which were used when building the original column
40
     * manifest and column position numbers list.
41
     *
42
     * @var array
43
     */
44
    private $records;
45
46
    /**
47
     * Request parameters passed to LocalizationController.
48
     *
49
     * @var array
50
     */
51
    private $parameters;
52
53
    /**
54
     * @var BackendLayout
55
     */
56
    private $backendLayout;
57
58
    /**
59
     * List of integer column position numbers used in the BackendLayout.
60
     *
61
     * @var array
62
     */
63
    private $columnList;
64
65
    public function __construct(array $columns, array $columnList, BackendLayout $backendLayout, array $records, array $parameters)
66
    {
67
        $this->columns = $columns;
68
        $this->columnList = $columnList;
69
        $this->backendLayout = $backendLayout;
70
        $this->records = $records;
71
        $this->parameters = $parameters;
72
    }
73
74
    public function getColumns(): array
75
    {
76
        return $this->columns;
77
    }
78
79
    public function setColumns(array $columns): void
80
    {
81
        $this->columns = $columns;
82
    }
83
84
    public function getColumnList(): array
85
    {
86
        return $this->columnList;
87
    }
88
89
    public function setColumnList(array $columnList): void
90
    {
91
        $this->columnList = $columnList;
92
    }
93
94
    public function getBackendLayout(): BackendLayout
95
    {
96
        return $this->backendLayout;
97
    }
98
99
    public function getRecords(): array
100
    {
101
        return $this->records;
102
    }
103
104
    public function getParameters(): array
105
    {
106
        return $this->parameters;
107
    }
108
}
109