1
|
|
|
<?php |
2
|
|
|
namespace AOE\Crawler\Domain\Model; |
3
|
|
|
|
4
|
|
|
/*************************************************************** |
5
|
|
|
* Copyright notice |
6
|
|
|
* |
7
|
|
|
* (c) 2017 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 Queue |
32
|
|
|
*/ |
33
|
|
|
class Queue extends AbstractEntity |
34
|
|
|
{ |
35
|
|
|
/** |
36
|
|
|
* @var array |
37
|
|
|
*/ |
38
|
|
|
protected $row; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var int |
42
|
|
|
*/ |
43
|
8 |
|
protected $qid = 0; |
44
|
|
|
|
45
|
8 |
|
/** |
46
|
8 |
|
* @var int |
47
|
|
|
*/ |
48
|
|
|
protected $pageId = 0; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
3 |
|
protected $parameters = ''; |
54
|
|
|
|
55
|
3 |
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $parametersHash = ''; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
*/ |
63
|
5 |
|
protected $configurationHash = ''; |
64
|
|
|
|
65
|
5 |
|
/** |
66
|
|
|
* @var bool |
67
|
|
|
*/ |
68
|
|
|
protected $scheduled = false; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var int |
72
|
|
|
*/ |
73
|
|
|
protected $execTime = 0; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var int |
77
|
|
|
*/ |
78
|
|
|
protected $setId = 0; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var string |
82
|
|
|
*/ |
83
|
|
|
protected $resultData = ''; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var bool |
87
|
|
|
*/ |
88
|
|
|
protected $processScheduled = false; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @var string |
92
|
|
|
*/ |
93
|
|
|
protected $processId = ''; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var string |
97
|
|
|
*/ |
98
|
|
|
protected $processIdCompleted = ''; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var string |
102
|
|
|
*/ |
103
|
|
|
protected $configuration = ''; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @param array $row |
107
|
|
|
*/ |
108
|
|
|
public function __construct($row = []) |
109
|
|
|
{ |
110
|
|
|
$this->row = $row; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Returns the properties of the object as array |
115
|
|
|
* |
116
|
|
|
* @return array |
117
|
|
|
* @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0. |
118
|
|
|
*/ |
119
|
|
|
public function getRow() |
120
|
|
|
{ |
121
|
|
|
return $this->row; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @return int |
126
|
|
|
*/ |
127
|
|
|
public function getQid() |
128
|
|
|
{ |
129
|
|
|
return $this->qid; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* @param int $qid |
134
|
|
|
*/ |
135
|
|
|
public function setQid($qid) |
136
|
|
|
{ |
137
|
|
|
$this->qid = $qid; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @return int |
142
|
|
|
*/ |
143
|
|
|
public function getPageId() |
144
|
|
|
{ |
145
|
|
|
return $this->pageId; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @param int $pageId |
150
|
|
|
*/ |
151
|
|
|
public function setPageId($pageId) |
152
|
|
|
{ |
153
|
|
|
$this->pageId = $pageId; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @return string |
158
|
|
|
*/ |
159
|
|
|
public function getParameters() |
160
|
|
|
{ |
161
|
|
|
return $this->parameters; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @param string $parameters |
166
|
|
|
*/ |
167
|
|
|
public function setParameters($parameters) |
168
|
|
|
{ |
169
|
|
|
$this->parameters = $parameters; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @return string |
174
|
|
|
*/ |
175
|
|
|
public function getParametersHash() |
176
|
|
|
{ |
177
|
|
|
return $this->parametersHash; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* @param string $parametersHash |
182
|
|
|
*/ |
183
|
|
|
public function setParametersHash($parametersHash) |
184
|
|
|
{ |
185
|
|
|
$this->parametersHash = $parametersHash; |
186
|
|
|
} |
187
|
|
|
|
188
|
|
|
/** |
189
|
|
|
* @return string |
190
|
|
|
*/ |
191
|
|
|
public function getConfigurationHash() |
192
|
|
|
{ |
193
|
|
|
return $this->configurationHash; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* @param string $configurationHash |
198
|
|
|
*/ |
199
|
|
|
public function setConfigurationHash($configurationHash) |
200
|
|
|
{ |
201
|
|
|
$this->configurationHash = $configurationHash; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* @return bool |
206
|
|
|
*/ |
207
|
|
|
public function isScheduled() |
208
|
|
|
{ |
209
|
|
|
return $this->scheduled; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
/** |
213
|
|
|
* @param bool $scheduled |
214
|
|
|
*/ |
215
|
|
|
public function setScheduled($scheduled) |
216
|
|
|
{ |
217
|
|
|
$this->scheduled = $scheduled; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* @return int |
222
|
|
|
*/ |
223
|
|
|
public function getExecTime() |
224
|
|
|
{ |
225
|
|
|
return $this->execTime; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @param int $execTime |
230
|
|
|
*/ |
231
|
|
|
public function setExecTime($execTime) |
232
|
|
|
{ |
233
|
|
|
$this->execTime = $execTime; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
/** |
237
|
|
|
* @return int |
238
|
|
|
*/ |
239
|
|
|
public function getSetId() |
240
|
|
|
{ |
241
|
|
|
return $this->setId; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @param int $setId |
246
|
|
|
*/ |
247
|
|
|
public function setSetId($setId) |
248
|
|
|
{ |
249
|
|
|
$this->setId = $setId; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* @return string |
254
|
|
|
*/ |
255
|
|
|
public function getResultData() |
256
|
|
|
{ |
257
|
|
|
return $this->resultData; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* @param string $resultData |
262
|
|
|
*/ |
263
|
|
|
public function setResultData($resultData) |
264
|
|
|
{ |
265
|
|
|
$this->resultData = $resultData; |
266
|
|
|
} |
267
|
|
|
|
268
|
|
|
/** |
269
|
|
|
* @return bool |
270
|
|
|
*/ |
271
|
|
|
public function isProcessScheduled() |
272
|
|
|
{ |
273
|
|
|
return $this->processScheduled; |
274
|
|
|
} |
275
|
|
|
|
276
|
|
|
/** |
277
|
|
|
* @param bool $processScheduled |
278
|
|
|
*/ |
279
|
|
|
public function setProcessScheduled($processScheduled) |
280
|
|
|
{ |
281
|
|
|
$this->processScheduled = $processScheduled; |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
/** |
285
|
|
|
* @return string |
286
|
|
|
*/ |
287
|
|
|
public function getProcessId() |
288
|
|
|
{ |
289
|
|
|
return $this->processId; |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
/** |
293
|
|
|
* @param string $processId |
294
|
|
|
*/ |
295
|
|
|
public function setProcessId($processId) |
296
|
|
|
{ |
297
|
|
|
$this->processId = $processId; |
298
|
|
|
} |
299
|
|
|
|
300
|
|
|
/** |
301
|
|
|
* @return string |
302
|
|
|
*/ |
303
|
|
|
public function getProcessIdCompleted() |
304
|
|
|
{ |
305
|
|
|
return $this->processIdCompleted; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
/** |
309
|
|
|
* @param string $processIdCompleted |
310
|
|
|
*/ |
311
|
|
|
public function setProcessIdCompleted($processIdCompleted) |
312
|
|
|
{ |
313
|
|
|
$this->processIdCompleted = $processIdCompleted; |
314
|
|
|
} |
315
|
|
|
|
316
|
|
|
/** |
317
|
|
|
* @return string |
318
|
|
|
*/ |
319
|
|
|
public function getConfiguration() |
320
|
|
|
{ |
321
|
|
|
return $this->configuration; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* @param string $configuration |
326
|
|
|
*/ |
327
|
|
|
public function setConfiguration($configuration) |
328
|
|
|
{ |
329
|
|
|
$this->configuration = $configuration; |
330
|
|
|
} |
331
|
|
|
|
332
|
|
|
|
333
|
|
|
} |
334
|
|
|
|