|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace AOE\Crawler\Domain\Model; |
|
6
|
|
|
|
|
7
|
|
|
/* |
|
8
|
|
|
* (c) 2020 AOE GmbH <[email protected]> |
|
9
|
|
|
* |
|
10
|
|
|
* This file is part of the TYPO3 Crawler Extension. |
|
11
|
|
|
* |
|
12
|
|
|
* It is free software; you can redistribute it and/or modify it under |
|
13
|
|
|
* the terms of the GNU General Public License, either version 2 |
|
14
|
|
|
* of the License, or any later version. |
|
15
|
|
|
* |
|
16
|
|
|
* For the full copyright and license information, please read the |
|
17
|
|
|
* LICENSE.txt file that was distributed with this source code. |
|
18
|
|
|
* |
|
19
|
|
|
* The TYPO3 project - inspiring people to share! |
|
20
|
|
|
*/ |
|
21
|
|
|
|
|
22
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* Class Configuration |
|
26
|
|
|
*/ |
|
27
|
|
|
class Configuration extends AbstractEntity |
|
28
|
|
|
{ |
|
29
|
|
|
/** |
|
30
|
|
|
* @var string |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $name = ''; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var int |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $forceSsl = 1; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var string |
|
41
|
|
|
*/ |
|
42
|
|
|
protected $processingInstructionFilter = ''; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @var string |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $processingInstructionParameters = ''; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @var string |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $configuration = ''; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var string |
|
56
|
|
|
*/ |
|
57
|
|
|
protected $baseUrl = ''; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @var string |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $pidsonly = ''; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var string |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $begroups = ''; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var string |
|
71
|
|
|
*/ |
|
72
|
|
|
protected $fegroups = ''; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @var string |
|
76
|
|
|
*/ |
|
77
|
|
|
protected $exclude = ''; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @return string |
|
81
|
|
|
*/ |
|
82
|
|
|
public function getName() |
|
83
|
|
|
{ |
|
84
|
|
|
return $this->name; |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* @param string $name |
|
89
|
|
|
*/ |
|
90
|
|
|
public function setName($name): void |
|
91
|
|
|
{ |
|
92
|
|
|
$this->name = $name; |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* @return int |
|
97
|
|
|
*/ |
|
98
|
|
|
public function isForceSsl() |
|
99
|
|
|
{ |
|
100
|
|
|
return $this->forceSsl; |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* @param int $forceSsl |
|
105
|
|
|
*/ |
|
106
|
|
|
public function setForceSsl($forceSsl): void |
|
107
|
|
|
{ |
|
108
|
|
|
$this->forceSsl = $forceSsl; |
|
109
|
|
|
} |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @return string |
|
113
|
|
|
*/ |
|
114
|
|
|
public function getProcessingInstructionFilter() |
|
115
|
|
|
{ |
|
116
|
|
|
return $this->processingInstructionFilter; |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* @param string $processingInstructionFilter |
|
121
|
|
|
*/ |
|
122
|
|
|
public function setProcessingInstructionFilter($processingInstructionFilter): void |
|
123
|
|
|
{ |
|
124
|
|
|
$this->processingInstructionFilter = $processingInstructionFilter; |
|
125
|
|
|
} |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* @return string |
|
129
|
|
|
*/ |
|
130
|
|
|
public function getProcessingInstructionParameters() |
|
131
|
|
|
{ |
|
132
|
|
|
return $this->processingInstructionParameters; |
|
133
|
|
|
} |
|
134
|
|
|
|
|
135
|
|
|
/** |
|
136
|
|
|
* @param string $processingInstructionParameters |
|
137
|
|
|
*/ |
|
138
|
|
|
public function setProcessingInstructionParameters($processingInstructionParameters): void |
|
139
|
|
|
{ |
|
140
|
|
|
$this->processingInstructionParameters = $processingInstructionParameters; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
|
|
* @return string |
|
145
|
|
|
*/ |
|
146
|
|
|
public function getConfiguration() |
|
147
|
|
|
{ |
|
148
|
|
|
return $this->configuration; |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* @param string $configuration |
|
153
|
|
|
*/ |
|
154
|
|
|
public function setConfiguration($configuration): void |
|
155
|
|
|
{ |
|
156
|
|
|
$this->configuration = $configuration; |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* @return string |
|
161
|
|
|
*/ |
|
162
|
|
|
public function getBaseUrl() |
|
163
|
|
|
{ |
|
164
|
|
|
return $this->baseUrl; |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* @param string $baseUrl |
|
169
|
|
|
*/ |
|
170
|
|
|
public function setBaseUrl($baseUrl): void |
|
171
|
|
|
{ |
|
172
|
|
|
$this->baseUrl = $baseUrl; |
|
173
|
|
|
} |
|
174
|
|
|
|
|
175
|
|
|
public function getPidsOnly() |
|
176
|
|
|
{ |
|
177
|
|
|
return $this->pidsonly; |
|
178
|
|
|
} |
|
179
|
|
|
|
|
180
|
|
|
public function setPidsOnly($pidsOnly): void |
|
181
|
|
|
{ |
|
182
|
|
|
$this->pidsonly = $pidsOnly; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
/** |
|
186
|
|
|
* @return string |
|
187
|
|
|
*/ |
|
188
|
|
|
public function getBeGroups() |
|
189
|
|
|
{ |
|
190
|
|
|
return $this->begroups; |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* @param string $beGroups |
|
195
|
|
|
*/ |
|
196
|
|
|
public function setBeGroups($beGroups): void |
|
197
|
|
|
{ |
|
198
|
|
|
$this->begroups = $beGroups; |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
/** |
|
202
|
|
|
* @return string |
|
203
|
|
|
*/ |
|
204
|
|
|
public function getFeGroups() |
|
205
|
|
|
{ |
|
206
|
|
|
return $this->fegroups; |
|
207
|
|
|
} |
|
208
|
|
|
|
|
209
|
|
|
/** |
|
210
|
|
|
* @param string $feGroups |
|
211
|
|
|
*/ |
|
212
|
|
|
public function setFeGroups($feGroups): void |
|
213
|
|
|
{ |
|
214
|
|
|
$this->fegroups = $feGroups; |
|
215
|
|
|
} |
|
216
|
|
|
|
|
217
|
|
|
/** |
|
218
|
|
|
* @return string |
|
219
|
|
|
*/ |
|
220
|
|
|
public function getExclude() |
|
221
|
|
|
{ |
|
222
|
|
|
return $this->exclude; |
|
223
|
|
|
} |
|
224
|
|
|
|
|
225
|
|
|
/** |
|
226
|
|
|
* @param string $exclude |
|
227
|
|
|
*/ |
|
228
|
|
|
public function setExclude($exclude): void |
|
229
|
|
|
{ |
|
230
|
|
|
$this->exclude = $exclude; |
|
231
|
|
|
} |
|
232
|
|
|
} |
|
233
|
|
|
|