1
|
|
|
<?php |
2
|
|
|
namespace AOE\Crawler\Domain\Model; |
3
|
|
|
|
4
|
|
|
/*************************************************************** |
5
|
|
|
* Copyright notice |
6
|
|
|
* |
7
|
|
|
* (c) 2019 AOE GmbH <[email protected]> |
8
|
|
|
* |
9
|
|
|
* All rights reserved |
10
|
|
|
* |
11
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
12
|
|
|
* free software; you can redistribute it and/or modify |
13
|
|
|
* it under the terms of the GNU General Public License as published by |
14
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
15
|
|
|
* (at your option) any later version. |
16
|
|
|
* |
17
|
|
|
* The GNU General Public License can be found at |
18
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
19
|
|
|
* |
20
|
|
|
* This script is distributed in the hope that it will be useful, |
21
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
22
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23
|
|
|
* GNU General Public License for more details. |
24
|
|
|
* |
25
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
26
|
|
|
***************************************************************/ |
27
|
|
|
|
28
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* Class Configuration |
32
|
|
|
*/ |
33
|
|
|
class Configuration extends AbstractEntity |
34
|
|
|
{ |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
*/ |
39
|
|
|
protected $name = ''; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var bool |
43
|
|
|
*/ |
44
|
|
|
protected $forceSsl = true; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
*/ |
49
|
|
|
protected $processingInstructionFilter = ''; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var string |
53
|
|
|
*/ |
54
|
|
|
protected $processingInstructionParameters = ''; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var string |
58
|
|
|
*/ |
59
|
|
|
protected $configuration = ''; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var string |
63
|
|
|
*/ |
64
|
|
|
protected $baseUrl = ''; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var string |
68
|
|
|
*/ |
69
|
|
|
protected $pidsonly = ''; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var string |
73
|
|
|
*/ |
74
|
|
|
protected $begroups = ''; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @var string |
78
|
|
|
*/ |
79
|
|
|
protected $fegroups = ''; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @var string |
83
|
|
|
*/ |
84
|
|
|
protected $exclude = ''; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return string |
88
|
|
|
*/ |
89
|
|
|
public function getName() |
90
|
|
|
{ |
91
|
|
|
return $this->name; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @param string $name |
96
|
|
|
*/ |
97
|
|
|
public function setName($name) |
98
|
|
|
{ |
99
|
|
|
$this->name = $name; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return bool |
104
|
|
|
*/ |
105
|
|
|
public function isForceSsl() |
106
|
|
|
{ |
107
|
|
|
return $this->forceSsl; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @param bool $forceSsl |
112
|
|
|
*/ |
113
|
|
|
public function setForceSsl($forceSsl) |
114
|
|
|
{ |
115
|
|
|
$this->forceSsl = $forceSsl; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return string |
120
|
|
|
*/ |
121
|
|
|
public function getProcessingInstructionFilter() |
122
|
|
|
{ |
123
|
|
|
return $this->processingInstructionFilter; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param string $processingInstructionFilter |
128
|
|
|
*/ |
129
|
|
|
public function setProcessingInstructionFilter($processingInstructionFilter) |
130
|
|
|
{ |
131
|
|
|
$this->processingInstructionFilter = $processingInstructionFilter; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return string |
136
|
|
|
*/ |
137
|
|
|
public function getProcessingInstructionParameters() |
138
|
|
|
{ |
139
|
|
|
return $this->processingInstructionParameters; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @param string $processingInstructionParameters |
144
|
|
|
*/ |
145
|
|
|
public function setProcessingInstructionParameters($processingInstructionParameters) |
146
|
|
|
{ |
147
|
|
|
$this->processingInstructionParameters = $processingInstructionParameters; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return string |
152
|
|
|
*/ |
153
|
|
|
public function getConfiguration() |
154
|
|
|
{ |
155
|
|
|
return $this->configuration; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @param string $configuration |
160
|
|
|
*/ |
161
|
|
|
public function setConfiguration($configuration) |
162
|
|
|
{ |
163
|
|
|
$this->configuration = $configuration; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return string |
168
|
|
|
*/ |
169
|
|
|
public function getBaseUrl() |
170
|
|
|
{ |
171
|
|
|
return $this->baseUrl; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @param string $baseUrl |
176
|
|
|
*/ |
177
|
|
|
public function setBaseUrl($baseUrl) |
178
|
|
|
{ |
179
|
|
|
$this->baseUrl = $baseUrl; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @return mixed |
184
|
|
|
*/ |
185
|
|
|
public function getPidsOnly() |
186
|
|
|
{ |
187
|
|
|
return $this->pidsonly; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @param mixed $pidsOnly |
192
|
|
|
*/ |
193
|
|
|
public function setPidsOnly($pidsOnly) |
194
|
|
|
{ |
195
|
|
|
$this->pidsonly = $pidsOnly; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return string |
200
|
|
|
*/ |
201
|
|
|
public function getBeGroups() |
202
|
|
|
{ |
203
|
|
|
return $this->begroups; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @param string $beGroups |
208
|
|
|
*/ |
209
|
|
|
public function setBeGroups($beGroups) |
210
|
|
|
{ |
211
|
|
|
$this->begroups = $beGroups; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @return string |
216
|
|
|
*/ |
217
|
|
|
public function getFeGroups() |
218
|
|
|
{ |
219
|
|
|
return $this->fegroups; |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* @param string $feGroups |
224
|
|
|
*/ |
225
|
|
|
public function setFeGroups($feGroups) |
226
|
|
|
{ |
227
|
|
|
$this->fegroups = $feGroups; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @return string |
232
|
|
|
*/ |
233
|
|
|
public function getExclude() |
234
|
|
|
{ |
235
|
|
|
return $this->exclude; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @param string $exclude |
240
|
|
|
*/ |
241
|
|
|
public function setExclude($exclude) |
242
|
|
|
{ |
243
|
|
|
$this->exclude = $exclude; |
244
|
|
|
} |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
|