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