1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Fi\CoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
6
|
|
|
use Doctrine\Common\Collections\Collection; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Tabelle. |
10
|
|
|
*/ |
11
|
|
|
class Tabelle |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
private $nometabella; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string |
25
|
|
|
*/ |
26
|
|
|
private $nomecampo; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var bool |
30
|
|
|
*/ |
31
|
|
|
private $mostraindex; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var int |
35
|
|
|
*/ |
36
|
|
|
private $ordineindex; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var int |
40
|
|
|
*/ |
41
|
|
|
private $larghezzaindex; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
private $etichettaindex; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var bool |
50
|
|
|
*/ |
51
|
|
|
private $mostrastampa; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var int |
55
|
|
|
*/ |
56
|
|
|
private $ordinestampa; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var int |
60
|
|
|
*/ |
61
|
|
|
private $larghezzastampa; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var string |
65
|
|
|
*/ |
66
|
|
|
private $etichettastampa; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var int |
70
|
|
|
*/ |
71
|
|
|
private $operatori_id; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var Collection |
75
|
|
|
*/ |
76
|
|
|
private $opzioniTabellas; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var Operatori |
80
|
|
|
*/ |
81
|
|
|
private $operatori; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Constructor. |
85
|
|
|
*/ |
86
|
7 |
|
public function __construct() |
87
|
|
|
{ |
88
|
7 |
|
$this->opzioniTabellas = new ArrayCollection(); |
89
|
7 |
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Get id. |
93
|
|
|
* |
94
|
|
|
* @return int |
95
|
|
|
*/ |
96
|
3 |
|
public function getId() |
97
|
|
|
{ |
98
|
3 |
|
return $this->id; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* Set nometabella. |
103
|
|
|
* |
104
|
|
|
* @param string $nometabella |
105
|
|
|
* |
106
|
|
|
* @return Tabelle |
107
|
|
|
*/ |
108
|
6 |
|
public function setNometabella($nometabella) |
109
|
|
|
{ |
110
|
6 |
|
$this->nometabella = $nometabella; |
111
|
|
|
|
112
|
6 |
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Get nometabella. |
117
|
|
|
* |
118
|
|
|
* @return string |
119
|
|
|
*/ |
120
|
2 |
|
public function getNometabella() |
121
|
|
|
{ |
122
|
2 |
|
return $this->nometabella; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Set nomecampo. |
127
|
|
|
* |
128
|
|
|
* @param string $nomecampo |
129
|
|
|
* |
130
|
|
|
* @return Tabelle |
131
|
|
|
*/ |
132
|
4 |
|
public function setNomecampo($nomecampo) |
133
|
|
|
{ |
134
|
4 |
|
$this->nomecampo = $nomecampo; |
135
|
|
|
|
136
|
4 |
|
return $this; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* Get nomecampo. |
141
|
|
|
* |
142
|
|
|
* @return string |
143
|
|
|
*/ |
144
|
12 |
|
public function getNomecampo() |
145
|
|
|
{ |
146
|
12 |
|
return $this->nomecampo; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* Set mostraindex. |
151
|
|
|
* |
152
|
|
|
* @param bool $mostraindex |
153
|
|
|
* |
154
|
|
|
* @return Tabelle |
155
|
|
|
*/ |
156
|
5 |
|
public function setMostraindex($mostraindex) |
157
|
|
|
{ |
158
|
5 |
|
$this->mostraindex = $mostraindex; |
159
|
|
|
|
160
|
5 |
|
return $this; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* Get mostraindex. |
165
|
|
|
* |
166
|
|
|
* @return bool |
167
|
|
|
*/ |
168
|
14 |
|
public function hasMostraindex() |
169
|
|
|
{ |
170
|
14 |
|
return $this->mostraindex; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* Set ordineindex. |
175
|
|
|
* |
176
|
|
|
* @param int $ordineindex |
177
|
|
|
* |
178
|
|
|
* @return Tabelle |
179
|
|
|
*/ |
180
|
2 |
|
public function setOrdineindex($ordineindex) |
181
|
|
|
{ |
182
|
2 |
|
$this->ordineindex = $ordineindex; |
183
|
|
|
|
184
|
2 |
|
return $this; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* Get ordineindex. |
189
|
|
|
* |
190
|
|
|
* @return int |
191
|
|
|
*/ |
192
|
12 |
|
public function getOrdineindex() |
193
|
|
|
{ |
194
|
12 |
|
return $this->ordineindex; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* Set larghezzaindex. |
199
|
|
|
* |
200
|
|
|
* @param int $larghezzaindex |
201
|
|
|
* |
202
|
|
|
* @return Tabelle |
203
|
|
|
*/ |
204
|
1 |
|
public function setLarghezzaindex($larghezzaindex) |
205
|
|
|
{ |
206
|
1 |
|
$this->larghezzaindex = $larghezzaindex; |
207
|
|
|
|
208
|
1 |
|
return $this; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* Get larghezzaindex. |
213
|
|
|
* |
214
|
|
|
* @return int |
215
|
|
|
*/ |
216
|
12 |
|
public function getLarghezzaindex() |
217
|
|
|
{ |
218
|
12 |
|
return $this->larghezzaindex; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* Set etichettaindex. |
223
|
|
|
* |
224
|
|
|
* @param string $etichettaindex |
225
|
|
|
* |
226
|
|
|
* @return Tabelle |
227
|
|
|
*/ |
228
|
1 |
|
public function setEtichettaindex($etichettaindex) |
229
|
|
|
{ |
230
|
1 |
|
$this->etichettaindex = $etichettaindex; |
231
|
|
|
|
232
|
1 |
|
return $this; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* Get etichettaindex. |
237
|
|
|
* |
238
|
|
|
* @return string |
239
|
|
|
*/ |
240
|
12 |
|
public function getEtichettaindex() |
241
|
|
|
{ |
242
|
12 |
|
return $this->etichettaindex; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* Set mostrastampa. |
247
|
|
|
* |
248
|
|
|
* @param bool $mostrastampa |
249
|
|
|
* |
250
|
|
|
* @return Tabelle |
251
|
|
|
*/ |
252
|
4 |
|
public function setMostrastampa($mostrastampa) |
253
|
|
|
{ |
254
|
4 |
|
$this->mostrastampa = $mostrastampa; |
255
|
|
|
|
256
|
4 |
|
return $this; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* Get mostrastampa. |
261
|
|
|
* |
262
|
|
|
* @return bool |
263
|
|
|
*/ |
264
|
2 |
|
public function hasMostrastampa() |
265
|
|
|
{ |
266
|
2 |
|
return $this->mostrastampa; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* Set ordinestampa. |
271
|
|
|
* |
272
|
|
|
* @param int $ordinestampa |
273
|
|
|
* |
274
|
|
|
* @return Tabelle |
275
|
|
|
*/ |
276
|
1 |
|
public function setOrdinestampa($ordinestampa) |
277
|
|
|
{ |
278
|
1 |
|
$this->ordinestampa = $ordinestampa; |
279
|
|
|
|
280
|
1 |
|
return $this; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* Get ordinestampa. |
285
|
|
|
* |
286
|
|
|
* @return int |
287
|
|
|
*/ |
288
|
1 |
|
public function getOrdinestampa() |
289
|
|
|
{ |
290
|
1 |
|
return $this->ordinestampa; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* Set larghezzastampa. |
295
|
|
|
* |
296
|
|
|
* @param int $larghezzastampa |
297
|
|
|
* |
298
|
|
|
* @return Tabelle |
299
|
|
|
*/ |
300
|
1 |
|
public function setLarghezzastampa($larghezzastampa) |
301
|
|
|
{ |
302
|
1 |
|
$this->larghezzastampa = $larghezzastampa; |
303
|
|
|
|
304
|
1 |
|
return $this; |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* Get larghezzastampa. |
309
|
|
|
* |
310
|
|
|
* @return int |
311
|
|
|
*/ |
312
|
1 |
|
public function getLarghezzastampa() |
313
|
|
|
{ |
314
|
1 |
|
return $this->larghezzastampa; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* Set etichettastampa. |
319
|
|
|
* |
320
|
|
|
* @param string $etichettastampa |
321
|
|
|
* |
322
|
|
|
* @return Tabelle |
323
|
|
|
*/ |
324
|
1 |
|
public function setEtichettastampa($etichettastampa) |
325
|
|
|
{ |
326
|
1 |
|
$this->etichettastampa = $etichettastampa; |
327
|
|
|
|
328
|
1 |
|
return $this; |
329
|
|
|
} |
330
|
|
|
|
331
|
|
|
/** |
332
|
|
|
* Get etichettastampa. |
333
|
|
|
* |
334
|
|
|
* @return string |
335
|
|
|
*/ |
336
|
1 |
|
public function getEtichettastampa() |
337
|
|
|
{ |
338
|
1 |
|
return $this->etichettastampa; |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
/** |
342
|
|
|
* Set operatoriId. |
343
|
|
|
* |
344
|
|
|
* @param int $operatoriId |
345
|
|
|
* |
346
|
|
|
* @return Tabelle |
347
|
|
|
*/ |
348
|
1 |
|
public function setOperatoriId($operatoriId) |
349
|
|
|
{ |
350
|
1 |
|
$this->operatori_id = $operatoriId; |
351
|
|
|
|
352
|
1 |
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* Get operatoriId. |
357
|
|
|
* |
358
|
|
|
* @return int |
359
|
|
|
*/ |
360
|
1 |
|
public function getOperatoriId() |
361
|
|
|
{ |
362
|
1 |
|
return $this->operatori_id; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* Add opzioniTabella. |
367
|
|
|
* |
368
|
|
|
* @param OpzioniTabella $opzioniTabella |
369
|
|
|
* |
370
|
|
|
* @return Tabelle |
371
|
|
|
*/ |
372
|
|
|
public function addOpzioniTabella(OpzioniTabella $opzioniTabella) |
373
|
|
|
{ |
374
|
|
|
$this->opzioniTabellas[] = $opzioniTabella; |
375
|
|
|
|
376
|
|
|
return $this; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
/** |
380
|
|
|
* Remove opzioniTabella. |
381
|
|
|
* |
382
|
|
|
* @param OpzioniTabella $opzioniTabella |
383
|
|
|
*/ |
384
|
|
|
public function removeOpzioniTabella(OpzioniTabella $opzioniTabella) |
385
|
|
|
{ |
386
|
|
|
$this->opzioniTabellas->removeElement($opzioniTabella); |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* Get opzioniTabellas. |
391
|
|
|
* |
392
|
|
|
* @return Collection |
393
|
|
|
*/ |
394
|
|
|
public function getOpzioniTabellas() |
395
|
|
|
{ |
396
|
|
|
return $this->opzioniTabellas; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* Set operatori. |
401
|
|
|
* |
402
|
|
|
* @param Operatori $operatori |
403
|
|
|
* |
404
|
|
|
* @return Tabelle |
405
|
|
|
*/ |
406
|
1 |
|
public function setOperatori(Operatori $operatori = null) |
407
|
|
|
{ |
408
|
1 |
|
$this->operatori = $operatori; |
409
|
|
|
|
410
|
1 |
|
return $this; |
411
|
|
|
} |
412
|
|
|
|
413
|
|
|
/** |
414
|
|
|
* Get operatori. |
415
|
|
|
* |
416
|
|
|
* @return Operatori |
417
|
|
|
*/ |
418
|
|
|
public function getOperatori() |
419
|
|
|
{ |
420
|
|
|
return $this->operatori; |
421
|
|
|
} |
422
|
|
|
|
423
|
1 |
|
public function __toString() |
424
|
|
|
{ |
425
|
1 |
|
return $this->nometabella.' ['.$this->nomecampo.']'; |
426
|
|
|
} |
427
|
|
|
/** |
428
|
|
|
* @var boolean |
429
|
|
|
*/ |
430
|
|
|
private $registrastorico; |
431
|
|
|
|
432
|
|
|
|
433
|
|
|
/** |
434
|
|
|
* Set registrastorico |
435
|
|
|
* |
436
|
|
|
* @param boolean $registrastorico |
437
|
|
|
* |
438
|
|
|
* @return Tabelle |
439
|
|
|
*/ |
440
|
2 |
|
public function setRegistrastorico($registrastorico) |
441
|
|
|
{ |
442
|
2 |
|
$this->registrastorico = $registrastorico; |
443
|
|
|
|
444
|
2 |
|
return $this; |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
/** |
448
|
|
|
* Get registrastorico |
449
|
|
|
* |
450
|
|
|
* @return boolean |
451
|
|
|
*/ |
452
|
1 |
|
public function isRegistrastorico() |
453
|
|
|
{ |
454
|
1 |
|
return $this->registrastorico; |
455
|
|
|
} |
456
|
|
|
} |
457
|
|
|
|