1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace AOE\Crawler\Domain\Model; |
6
|
|
|
|
7
|
|
|
/*************************************************************** |
8
|
|
|
* Copyright notice |
9
|
|
|
* |
10
|
|
|
* (c) 2020 AOE GmbH <[email protected]> |
11
|
|
|
* |
12
|
|
|
* All rights reserved |
13
|
|
|
* |
14
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
15
|
|
|
* free software; you can redistribute it and/or modify |
16
|
|
|
* it under the terms of the GNU General Public License as published by |
17
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
18
|
|
|
* (at your option) any later version. |
19
|
|
|
* |
20
|
|
|
* The GNU General Public License can be found at |
21
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
22
|
|
|
* |
23
|
|
|
* This script is distributed in the hope that it will be useful, |
24
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
25
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
26
|
|
|
* GNU General Public License for more details. |
27
|
|
|
* |
28
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
29
|
|
|
***************************************************************/ |
30
|
|
|
|
31
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Class Queue |
35
|
|
|
*/ |
36
|
|
|
class Queue extends AbstractEntity |
37
|
|
|
{ |
38
|
|
|
/** |
39
|
|
|
* @var int |
40
|
|
|
*/ |
41
|
|
|
protected $qid = 0; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var int |
45
|
|
|
*/ |
46
|
|
|
protected $pageId = 0; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
protected $parameters = ''; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
*/ |
56
|
|
|
protected $parametersHash = ''; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
protected $configurationHash = ''; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var bool |
65
|
|
|
*/ |
66
|
|
|
protected $scheduled = false; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var int |
70
|
|
|
*/ |
71
|
|
|
protected $execTime = 0; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var int |
75
|
|
|
*/ |
76
|
|
|
protected $setId = 0; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var string |
80
|
|
|
*/ |
81
|
|
|
protected $resultData = ''; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var bool |
85
|
|
|
*/ |
86
|
|
|
protected $processScheduled = false; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var string |
90
|
|
|
*/ |
91
|
|
|
protected $processId = ''; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var string |
95
|
|
|
*/ |
96
|
|
|
protected $processIdCompleted = ''; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @var string |
100
|
|
|
*/ |
101
|
|
|
protected $configuration = ''; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return int |
105
|
|
|
*/ |
106
|
|
|
public function getQid() |
107
|
|
|
{ |
108
|
|
|
return $this->qid; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param int $qid |
113
|
|
|
*/ |
114
|
|
|
public function setQid($qid): void |
115
|
|
|
{ |
116
|
|
|
$this->qid = $qid; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return int |
121
|
|
|
*/ |
122
|
|
|
public function getPageId() |
123
|
|
|
{ |
124
|
|
|
return $this->pageId; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @param int $pageId |
129
|
|
|
*/ |
130
|
|
|
public function setPageId($pageId): void |
131
|
|
|
{ |
132
|
|
|
$this->pageId = $pageId; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return string |
137
|
|
|
*/ |
138
|
|
|
public function getParameters() |
139
|
|
|
{ |
140
|
|
|
return $this->parameters; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @param string $parameters |
145
|
|
|
*/ |
146
|
|
|
public function setParameters($parameters): void |
147
|
|
|
{ |
148
|
|
|
$this->parameters = $parameters; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @return string |
153
|
|
|
*/ |
154
|
|
|
public function getParametersHash() |
155
|
|
|
{ |
156
|
|
|
return $this->parametersHash; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string $parametersHash |
161
|
|
|
*/ |
162
|
|
|
public function setParametersHash($parametersHash): void |
163
|
|
|
{ |
164
|
|
|
$this->parametersHash = $parametersHash; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @return string |
169
|
|
|
*/ |
170
|
|
|
public function getConfigurationHash() |
171
|
|
|
{ |
172
|
|
|
return $this->configurationHash; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @param string $configurationHash |
177
|
|
|
*/ |
178
|
|
|
public function setConfigurationHash($configurationHash): void |
179
|
|
|
{ |
180
|
|
|
$this->configurationHash = $configurationHash; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @return bool |
185
|
|
|
*/ |
186
|
|
|
public function isScheduled() |
187
|
|
|
{ |
188
|
|
|
return $this->scheduled; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param bool $scheduled |
193
|
|
|
*/ |
194
|
|
|
public function setScheduled($scheduled): void |
195
|
|
|
{ |
196
|
|
|
$this->scheduled = $scheduled; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @return int |
201
|
|
|
*/ |
202
|
|
|
public function getExecTime() |
203
|
|
|
{ |
204
|
|
|
return $this->execTime; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* @param int $execTime |
209
|
|
|
*/ |
210
|
|
|
public function setExecTime($execTime): void |
211
|
|
|
{ |
212
|
|
|
$this->execTime = $execTime; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @return int |
217
|
|
|
*/ |
218
|
|
|
public function getSetId() |
219
|
|
|
{ |
220
|
|
|
return $this->setId; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @param int $setId |
225
|
|
|
*/ |
226
|
|
|
public function setSetId($setId): void |
227
|
|
|
{ |
228
|
|
|
$this->setId = $setId; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @return string |
233
|
|
|
*/ |
234
|
|
|
public function getResultData() |
235
|
|
|
{ |
236
|
|
|
return $this->resultData; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @param string $resultData |
241
|
|
|
*/ |
242
|
|
|
public function setResultData($resultData): void |
243
|
|
|
{ |
244
|
|
|
$this->resultData = $resultData; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @return bool |
249
|
|
|
*/ |
250
|
|
|
public function isProcessScheduled() |
251
|
|
|
{ |
252
|
|
|
return $this->processScheduled; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @param bool $processScheduled |
257
|
|
|
*/ |
258
|
|
|
public function setProcessScheduled($processScheduled): void |
259
|
|
|
{ |
260
|
|
|
$this->processScheduled = $processScheduled; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @return string |
265
|
|
|
*/ |
266
|
|
|
public function getProcessId() |
267
|
|
|
{ |
268
|
|
|
return $this->processId; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* @param string $processId |
273
|
|
|
*/ |
274
|
|
|
public function setProcessId($processId): void |
275
|
|
|
{ |
276
|
|
|
$this->processId = $processId; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* @return string |
281
|
|
|
*/ |
282
|
|
|
public function getProcessIdCompleted() |
283
|
|
|
{ |
284
|
|
|
return $this->processIdCompleted; |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
/** |
288
|
|
|
* @param string $processIdCompleted |
289
|
|
|
*/ |
290
|
|
|
public function setProcessIdCompleted($processIdCompleted): void |
291
|
|
|
{ |
292
|
|
|
$this->processIdCompleted = $processIdCompleted; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @return string |
297
|
|
|
*/ |
298
|
|
|
public function getConfiguration() |
299
|
|
|
{ |
300
|
|
|
return $this->configuration; |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* @param string $configuration |
305
|
|
|
*/ |
306
|
|
|
public function setConfiguration($configuration): void |
307
|
|
|
{ |
308
|
|
|
$this->configuration = $configuration; |
309
|
|
|
} |
310
|
|
|
} |
311
|
|
|
|