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
|
1 |
|
public function getName() |
83
|
|
|
{ |
84
|
1 |
|
return $this->name; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $name |
89
|
|
|
*/ |
90
|
1 |
|
public function setName($name): void |
91
|
|
|
{ |
92
|
1 |
|
$this->name = $name; |
93
|
1 |
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return int |
97
|
|
|
*/ |
98
|
1 |
|
public function isForceSsl() |
99
|
|
|
{ |
100
|
1 |
|
return $this->forceSsl; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param int $forceSsl |
105
|
|
|
*/ |
106
|
1 |
|
public function setForceSsl($forceSsl): void |
107
|
|
|
{ |
108
|
1 |
|
$this->forceSsl = $forceSsl; |
109
|
1 |
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return string |
113
|
|
|
*/ |
114
|
1 |
|
public function getProcessingInstructionFilter() |
115
|
|
|
{ |
116
|
1 |
|
return $this->processingInstructionFilter; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param string $processingInstructionFilter |
121
|
|
|
*/ |
122
|
1 |
|
public function setProcessingInstructionFilter($processingInstructionFilter): void |
123
|
|
|
{ |
124
|
1 |
|
$this->processingInstructionFilter = $processingInstructionFilter; |
125
|
1 |
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @return string |
129
|
|
|
*/ |
130
|
1 |
|
public function getProcessingInstructionParameters() |
131
|
|
|
{ |
132
|
1 |
|
return $this->processingInstructionParameters; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @param string $processingInstructionParameters |
137
|
|
|
*/ |
138
|
1 |
|
public function setProcessingInstructionParameters($processingInstructionParameters): void |
139
|
|
|
{ |
140
|
1 |
|
$this->processingInstructionParameters = $processingInstructionParameters; |
141
|
1 |
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @return string |
145
|
|
|
*/ |
146
|
1 |
|
public function getConfiguration() |
147
|
|
|
{ |
148
|
1 |
|
return $this->configuration; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @param string $configuration |
153
|
|
|
*/ |
154
|
1 |
|
public function setConfiguration($configuration): void |
155
|
|
|
{ |
156
|
1 |
|
$this->configuration = $configuration; |
157
|
1 |
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return string |
161
|
|
|
*/ |
162
|
1 |
|
public function getBaseUrl() |
163
|
|
|
{ |
164
|
1 |
|
return $this->baseUrl; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param string $baseUrl |
169
|
|
|
*/ |
170
|
1 |
|
public function setBaseUrl($baseUrl): void |
171
|
|
|
{ |
172
|
1 |
|
$this->baseUrl = $baseUrl; |
173
|
1 |
|
} |
174
|
|
|
|
175
|
1 |
|
public function getPidsOnly() |
176
|
|
|
{ |
177
|
1 |
|
return $this->pidsonly; |
178
|
|
|
} |
179
|
|
|
|
180
|
1 |
|
public function setPidsOnly($pidsOnly): void |
181
|
|
|
{ |
182
|
1 |
|
$this->pidsonly = $pidsOnly; |
183
|
1 |
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
1 |
|
public function getBeGroups() |
189
|
|
|
{ |
190
|
1 |
|
return $this->begroups; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param string $beGroups |
195
|
|
|
*/ |
196
|
1 |
|
public function setBeGroups($beGroups): void |
197
|
|
|
{ |
198
|
1 |
|
$this->begroups = $beGroups; |
199
|
1 |
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return string |
203
|
|
|
*/ |
204
|
1 |
|
public function getFeGroups() |
205
|
|
|
{ |
206
|
1 |
|
return $this->fegroups; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param string $feGroups |
211
|
|
|
*/ |
212
|
1 |
|
public function setFeGroups($feGroups): void |
213
|
|
|
{ |
214
|
1 |
|
$this->fegroups = $feGroups; |
215
|
1 |
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @return string |
219
|
|
|
*/ |
220
|
1 |
|
public function getExclude() |
221
|
|
|
{ |
222
|
1 |
|
return $this->exclude; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @param string $exclude |
227
|
|
|
*/ |
228
|
1 |
|
public function setExclude($exclude): void |
229
|
|
|
{ |
230
|
1 |
|
$this->exclude = $exclude; |
231
|
1 |
|
} |
232
|
|
|
} |
233
|
|
|
|