1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
4
|
|
|
|
5
|
|
|
namespace Chamilo\CourseBundle\Entity; |
6
|
|
|
|
7
|
|
|
use Doctrine\ORM\Mapping as ORM; |
8
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* CLpItem. |
12
|
|
|
* |
13
|
|
|
* @ORM\Table( |
14
|
|
|
* name="c_lp_item", |
15
|
|
|
* indexes={ |
16
|
|
|
* @ORM\Index(name="course", columns={"c_id"}), |
17
|
|
|
* @ORM\Index(name="lp_id", columns={"lp_id"}), |
18
|
|
|
* @ORM\Index(name="idx_c_lp_item_cid_lp_id", columns={"c_id", "lp_id"}) |
19
|
|
|
* } |
20
|
|
|
* ) |
21
|
|
|
* @ORM\Entity |
22
|
|
|
*/ |
23
|
|
|
class CLpItem |
24
|
|
|
{ |
25
|
|
|
/** |
26
|
|
|
* @var int |
27
|
|
|
* |
28
|
|
|
* @ORM\Column(name="iid", type="integer") |
29
|
|
|
* @ORM\Id |
30
|
|
|
* @ORM\GeneratedValue |
31
|
|
|
*/ |
32
|
|
|
protected $iid; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var int |
36
|
|
|
* |
37
|
|
|
* @ORM\Column(name="c_id", type="integer") |
38
|
|
|
*/ |
39
|
|
|
protected $cId; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var CLp |
43
|
|
|
* |
44
|
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLp", inversedBy="items") |
45
|
|
|
* @ORM\JoinColumn(name="lp_id", referencedColumnName="iid") |
46
|
|
|
*/ |
47
|
|
|
protected $lp; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
* |
52
|
|
|
* @Assert\NotBlank() |
53
|
|
|
* |
54
|
|
|
* @ORM\Column(name="title", type="string", length=511, nullable=false) |
55
|
|
|
*/ |
56
|
|
|
protected $title; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
* |
61
|
|
|
* @Assert\NotBlank() |
62
|
|
|
* |
63
|
|
|
* @ORM\Column(name="item_type", type="string", length=32, nullable=false) |
64
|
|
|
*/ |
65
|
|
|
protected $itemType; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var string |
69
|
|
|
* |
70
|
|
|
* @ORM\Column(name="ref", type="text", nullable=false) |
71
|
|
|
*/ |
72
|
|
|
protected $ref; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var string |
76
|
|
|
* |
77
|
|
|
* @ORM\Column(name="description", type="string", length=511, nullable=true) |
78
|
|
|
*/ |
79
|
|
|
protected $description; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @var string |
83
|
|
|
* |
84
|
|
|
* @ORM\Column(name="path", type="text", nullable=false) |
85
|
|
|
*/ |
86
|
|
|
protected $path; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var float |
90
|
|
|
* |
91
|
|
|
* @ORM\Column(name="min_score", type="float", precision=10, scale=0, nullable=false) |
92
|
|
|
*/ |
93
|
|
|
protected $minScore; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var float |
97
|
|
|
* |
98
|
|
|
* @ORM\Column(name="max_score", type="float", precision=10, scale=0, nullable=true, options={"default":"100"}) |
99
|
|
|
*/ |
100
|
|
|
protected $maxScore; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @var float |
104
|
|
|
* |
105
|
|
|
* @ORM\Column(name="mastery_score", type="float", precision=10, scale=0, nullable=true) |
106
|
|
|
*/ |
107
|
|
|
protected $masteryScore; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @var int |
111
|
|
|
* |
112
|
|
|
* @ORM\Column(name="parent_item_id", type="integer", nullable=false) |
113
|
|
|
*/ |
114
|
|
|
protected $parentItemId; |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @var int |
118
|
|
|
* |
119
|
|
|
* @ORM\Column(name="previous_item_id", type="integer", nullable=false) |
120
|
|
|
*/ |
121
|
|
|
protected $previousItemId; |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @var int |
125
|
|
|
* |
126
|
|
|
* @ORM\Column(name="next_item_id", type="integer", nullable=false) |
127
|
|
|
*/ |
128
|
|
|
protected $nextItemId; |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @var int |
132
|
|
|
* |
133
|
|
|
* @ORM\Column(name="display_order", type="integer", nullable=false) |
134
|
|
|
*/ |
135
|
|
|
protected $displayOrder; |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @var string |
139
|
|
|
* |
140
|
|
|
* @ORM\Column(name="prerequisite", type="text", nullable=true) |
141
|
|
|
*/ |
142
|
|
|
protected $prerequisite; |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @var string |
146
|
|
|
* |
147
|
|
|
* @ORM\Column(name="parameters", type="text", nullable=true) |
148
|
|
|
*/ |
149
|
|
|
protected $parameters; |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @var string |
153
|
|
|
* |
154
|
|
|
* @ORM\Column(name="launch_data", type="text", nullable=false) |
155
|
|
|
*/ |
156
|
|
|
protected $launchData; |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @var string |
160
|
|
|
* |
161
|
|
|
* @ORM\Column(name="max_time_allowed", type="string", length=13, nullable=true) |
162
|
|
|
*/ |
163
|
|
|
protected $maxTimeAllowed; |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @var string |
167
|
|
|
* |
168
|
|
|
* @ORM\Column(name="terms", type="text", nullable=true) |
169
|
|
|
*/ |
170
|
|
|
protected $terms; |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @var int |
174
|
|
|
* |
175
|
|
|
* @ORM\Column(name="search_did", type="integer", nullable=true) |
176
|
|
|
*/ |
177
|
|
|
protected $searchDid; |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @var string |
181
|
|
|
* |
182
|
|
|
* @ORM\Column(name="audio", type="string", length=250, nullable=true) |
183
|
|
|
*/ |
184
|
|
|
protected $audio; |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @var float |
188
|
|
|
* |
189
|
|
|
* @ORM\Column(name="prerequisite_min_score", type="float", precision=10, scale=0, nullable=true) |
190
|
|
|
*/ |
191
|
|
|
protected $prerequisiteMinScore; |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @var float |
195
|
|
|
* |
196
|
|
|
* @ORM\Column(name="prerequisite_max_score", type="float", precision=10, scale=0, nullable=true) |
197
|
|
|
*/ |
198
|
|
|
protected $prerequisiteMaxScore; |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* CLpItem constructor. |
202
|
|
|
*/ |
203
|
|
|
public function __construct() |
204
|
|
|
{ |
205
|
|
|
$this->maxScore = 100.0; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
public function getIid() |
209
|
|
|
{ |
210
|
|
|
return $this->iid; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
public function setLp(CLp $lp): self |
214
|
|
|
{ |
215
|
|
|
$this->lp = $lp; |
216
|
|
|
|
217
|
|
|
return $this; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
public function getLp(): CLp |
221
|
|
|
{ |
222
|
|
|
return $this->lp; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* Set itemType. |
227
|
|
|
* |
228
|
|
|
* @param string $itemType |
229
|
|
|
* |
230
|
|
|
* @return CLpItem |
231
|
|
|
*/ |
232
|
|
|
public function setItemType($itemType) |
233
|
|
|
{ |
234
|
|
|
$this->itemType = $itemType; |
235
|
|
|
|
236
|
|
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* Get itemType. |
241
|
|
|
* |
242
|
|
|
* @return string |
243
|
|
|
*/ |
244
|
|
|
public function getItemType() |
245
|
|
|
{ |
246
|
|
|
return $this->itemType; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Set ref. |
251
|
|
|
* |
252
|
|
|
* @param string $ref |
253
|
|
|
* |
254
|
|
|
* @return CLpItem |
255
|
|
|
*/ |
256
|
|
|
public function setRef($ref) |
257
|
|
|
{ |
258
|
|
|
$this->ref = $ref; |
259
|
|
|
|
260
|
|
|
return $this; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* Get ref. |
265
|
|
|
* |
266
|
|
|
* @return string |
267
|
|
|
*/ |
268
|
|
|
public function getRef() |
269
|
|
|
{ |
270
|
|
|
return $this->ref; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* Set title. |
275
|
|
|
* |
276
|
|
|
* @param string $title |
277
|
|
|
* |
278
|
|
|
* @return CLpItem |
279
|
|
|
*/ |
280
|
|
|
public function setTitle($title) |
281
|
|
|
{ |
282
|
|
|
$this->title = $title; |
283
|
|
|
|
284
|
|
|
return $this; |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
/** |
288
|
|
|
* Get title. |
289
|
|
|
* |
290
|
|
|
* @return string |
291
|
|
|
*/ |
292
|
|
|
public function getTitle() |
293
|
|
|
{ |
294
|
|
|
return $this->title; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Set description. |
299
|
|
|
* |
300
|
|
|
* @param string $description |
301
|
|
|
* |
302
|
|
|
* @return CLpItem |
303
|
|
|
*/ |
304
|
|
|
public function setDescription($description) |
305
|
|
|
{ |
306
|
|
|
$this->description = $description; |
307
|
|
|
|
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* Get description. |
313
|
|
|
* |
314
|
|
|
* @return string |
315
|
|
|
*/ |
316
|
|
|
public function getDescription() |
317
|
|
|
{ |
318
|
|
|
return $this->description; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
/** |
322
|
|
|
* Set path. |
323
|
|
|
* |
324
|
|
|
* @param string $path |
325
|
|
|
* |
326
|
|
|
* @return CLpItem |
327
|
|
|
*/ |
328
|
|
|
public function setPath($path) |
329
|
|
|
{ |
330
|
|
|
$this->path = $path; |
331
|
|
|
|
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* Get path. |
337
|
|
|
* |
338
|
|
|
* @return string |
339
|
|
|
*/ |
340
|
|
|
public function getPath() |
341
|
|
|
{ |
342
|
|
|
return $this->path; |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
/** |
346
|
|
|
* Set minScore. |
347
|
|
|
* |
348
|
|
|
* @param float $minScore |
349
|
|
|
* |
350
|
|
|
* @return CLpItem |
351
|
|
|
*/ |
352
|
|
|
public function setMinScore($minScore) |
353
|
|
|
{ |
354
|
|
|
$this->minScore = $minScore; |
355
|
|
|
|
356
|
|
|
return $this; |
357
|
|
|
} |
358
|
|
|
|
359
|
|
|
/** |
360
|
|
|
* Get minScore. |
361
|
|
|
* |
362
|
|
|
* @return float |
363
|
|
|
*/ |
364
|
|
|
public function getMinScore() |
365
|
|
|
{ |
366
|
|
|
return $this->minScore; |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* Set maxScore. |
371
|
|
|
* |
372
|
|
|
* @param float $maxScore |
373
|
|
|
* |
374
|
|
|
* @return CLpItem |
375
|
|
|
*/ |
376
|
|
|
public function setMaxScore($maxScore) |
377
|
|
|
{ |
378
|
|
|
$this->maxScore = $maxScore; |
379
|
|
|
|
380
|
|
|
return $this; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* Get maxScore. |
385
|
|
|
* |
386
|
|
|
* @return float |
387
|
|
|
*/ |
388
|
|
|
public function getMaxScore() |
389
|
|
|
{ |
390
|
|
|
return $this->maxScore; |
391
|
|
|
} |
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* Set masteryScore. |
395
|
|
|
* |
396
|
|
|
* @param float $masteryScore |
397
|
|
|
* |
398
|
|
|
* @return CLpItem |
399
|
|
|
*/ |
400
|
|
|
public function setMasteryScore($masteryScore) |
401
|
|
|
{ |
402
|
|
|
$this->masteryScore = $masteryScore; |
403
|
|
|
|
404
|
|
|
return $this; |
405
|
|
|
} |
406
|
|
|
|
407
|
|
|
/** |
408
|
|
|
* Get masteryScore. |
409
|
|
|
* |
410
|
|
|
* @return float |
411
|
|
|
*/ |
412
|
|
|
public function getMasteryScore() |
413
|
|
|
{ |
414
|
|
|
return $this->masteryScore; |
415
|
|
|
} |
416
|
|
|
|
417
|
|
|
/** |
418
|
|
|
* Set parentItemId. |
419
|
|
|
* |
420
|
|
|
* @param int $parentItemId |
421
|
|
|
* |
422
|
|
|
* @return CLpItem |
423
|
|
|
*/ |
424
|
|
|
public function setParentItemId($parentItemId) |
425
|
|
|
{ |
426
|
|
|
$this->parentItemId = $parentItemId; |
427
|
|
|
|
428
|
|
|
return $this; |
429
|
|
|
} |
430
|
|
|
|
431
|
|
|
/** |
432
|
|
|
* Get parentItemId. |
433
|
|
|
* |
434
|
|
|
* @return int |
435
|
|
|
*/ |
436
|
|
|
public function getParentItemId() |
437
|
|
|
{ |
438
|
|
|
return $this->parentItemId; |
439
|
|
|
} |
440
|
|
|
|
441
|
|
|
/** |
442
|
|
|
* Set previousItemId. |
443
|
|
|
* |
444
|
|
|
* @param int $previousItemId |
445
|
|
|
* |
446
|
|
|
* @return CLpItem |
447
|
|
|
*/ |
448
|
|
|
public function setPreviousItemId($previousItemId) |
449
|
|
|
{ |
450
|
|
|
$this->previousItemId = $previousItemId; |
451
|
|
|
|
452
|
|
|
return $this; |
453
|
|
|
} |
454
|
|
|
|
455
|
|
|
/** |
456
|
|
|
* Get previousItemId. |
457
|
|
|
* |
458
|
|
|
* @return int |
459
|
|
|
*/ |
460
|
|
|
public function getPreviousItemId() |
461
|
|
|
{ |
462
|
|
|
return $this->previousItemId; |
463
|
|
|
} |
464
|
|
|
|
465
|
|
|
/** |
466
|
|
|
* Set nextItemId. |
467
|
|
|
* |
468
|
|
|
* @param int $nextItemId |
469
|
|
|
* |
470
|
|
|
* @return CLpItem |
471
|
|
|
*/ |
472
|
|
|
public function setNextItemId($nextItemId) |
473
|
|
|
{ |
474
|
|
|
$this->nextItemId = $nextItemId; |
475
|
|
|
|
476
|
|
|
return $this; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
/** |
480
|
|
|
* Get nextItemId. |
481
|
|
|
* |
482
|
|
|
* @return int |
483
|
|
|
*/ |
484
|
|
|
public function getNextItemId() |
485
|
|
|
{ |
486
|
|
|
return $this->nextItemId; |
487
|
|
|
} |
488
|
|
|
|
489
|
|
|
/** |
490
|
|
|
* Set displayOrder. |
491
|
|
|
* |
492
|
|
|
* @param int $displayOrder |
493
|
|
|
* |
494
|
|
|
* @return CLpItem |
495
|
|
|
*/ |
496
|
|
|
public function setDisplayOrder($displayOrder) |
497
|
|
|
{ |
498
|
|
|
$this->displayOrder = $displayOrder; |
499
|
|
|
|
500
|
|
|
return $this; |
501
|
|
|
} |
502
|
|
|
|
503
|
|
|
/** |
504
|
|
|
* Get displayOrder. |
505
|
|
|
* |
506
|
|
|
* @return int |
507
|
|
|
*/ |
508
|
|
|
public function getDisplayOrder() |
509
|
|
|
{ |
510
|
|
|
return $this->displayOrder; |
511
|
|
|
} |
512
|
|
|
|
513
|
|
|
/** |
514
|
|
|
* Set prerequisite. |
515
|
|
|
* |
516
|
|
|
* @param string $prerequisite |
517
|
|
|
* |
518
|
|
|
* @return CLpItem |
519
|
|
|
*/ |
520
|
|
|
public function setPrerequisite($prerequisite) |
521
|
|
|
{ |
522
|
|
|
$this->prerequisite = $prerequisite; |
523
|
|
|
|
524
|
|
|
return $this; |
525
|
|
|
} |
526
|
|
|
|
527
|
|
|
/** |
528
|
|
|
* Get prerequisite. |
529
|
|
|
* |
530
|
|
|
* @return string |
531
|
|
|
*/ |
532
|
|
|
public function getPrerequisite() |
533
|
|
|
{ |
534
|
|
|
return $this->prerequisite; |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
/** |
538
|
|
|
* Set parameters. |
539
|
|
|
* |
540
|
|
|
* @param string $parameters |
541
|
|
|
* |
542
|
|
|
* @return CLpItem |
543
|
|
|
*/ |
544
|
|
|
public function setParameters($parameters) |
545
|
|
|
{ |
546
|
|
|
$this->parameters = $parameters; |
547
|
|
|
|
548
|
|
|
return $this; |
549
|
|
|
} |
550
|
|
|
|
551
|
|
|
/** |
552
|
|
|
* Get parameters. |
553
|
|
|
* |
554
|
|
|
* @return string |
555
|
|
|
*/ |
556
|
|
|
public function getParameters() |
557
|
|
|
{ |
558
|
|
|
return $this->parameters; |
559
|
|
|
} |
560
|
|
|
|
561
|
|
|
/** |
562
|
|
|
* Set launchData. |
563
|
|
|
* |
564
|
|
|
* @param string $launchData |
565
|
|
|
* |
566
|
|
|
* @return CLpItem |
567
|
|
|
*/ |
568
|
|
|
public function setLaunchData($launchData) |
569
|
|
|
{ |
570
|
|
|
$this->launchData = $launchData; |
571
|
|
|
|
572
|
|
|
return $this; |
573
|
|
|
} |
574
|
|
|
|
575
|
|
|
/** |
576
|
|
|
* Get launchData. |
577
|
|
|
* |
578
|
|
|
* @return string |
579
|
|
|
*/ |
580
|
|
|
public function getLaunchData() |
581
|
|
|
{ |
582
|
|
|
return $this->launchData; |
583
|
|
|
} |
584
|
|
|
|
585
|
|
|
/** |
586
|
|
|
* Set maxTimeAllowed. |
587
|
|
|
* |
588
|
|
|
* @param string $maxTimeAllowed |
589
|
|
|
* |
590
|
|
|
* @return CLpItem |
591
|
|
|
*/ |
592
|
|
|
public function setMaxTimeAllowed($maxTimeAllowed) |
593
|
|
|
{ |
594
|
|
|
$this->maxTimeAllowed = $maxTimeAllowed; |
595
|
|
|
|
596
|
|
|
return $this; |
597
|
|
|
} |
598
|
|
|
|
599
|
|
|
/** |
600
|
|
|
* Get maxTimeAllowed. |
601
|
|
|
* |
602
|
|
|
* @return string |
603
|
|
|
*/ |
604
|
|
|
public function getMaxTimeAllowed() |
605
|
|
|
{ |
606
|
|
|
return $this->maxTimeAllowed; |
607
|
|
|
} |
608
|
|
|
|
609
|
|
|
/** |
610
|
|
|
* Set terms. |
611
|
|
|
* |
612
|
|
|
* @param string $terms |
613
|
|
|
* |
614
|
|
|
* @return CLpItem |
615
|
|
|
*/ |
616
|
|
|
public function setTerms($terms) |
617
|
|
|
{ |
618
|
|
|
$this->terms = $terms; |
619
|
|
|
|
620
|
|
|
return $this; |
621
|
|
|
} |
622
|
|
|
|
623
|
|
|
/** |
624
|
|
|
* Get terms. |
625
|
|
|
* |
626
|
|
|
* @return string |
627
|
|
|
*/ |
628
|
|
|
public function getTerms() |
629
|
|
|
{ |
630
|
|
|
return $this->terms; |
631
|
|
|
} |
632
|
|
|
|
633
|
|
|
/** |
634
|
|
|
* Set searchDid. |
635
|
|
|
* |
636
|
|
|
* @param int $searchDid |
637
|
|
|
* |
638
|
|
|
* @return CLpItem |
639
|
|
|
*/ |
640
|
|
|
public function setSearchDid($searchDid) |
641
|
|
|
{ |
642
|
|
|
$this->searchDid = $searchDid; |
643
|
|
|
|
644
|
|
|
return $this; |
645
|
|
|
} |
646
|
|
|
|
647
|
|
|
/** |
648
|
|
|
* Get searchDid. |
649
|
|
|
* |
650
|
|
|
* @return int |
651
|
|
|
*/ |
652
|
|
|
public function getSearchDid() |
653
|
|
|
{ |
654
|
|
|
return $this->searchDid; |
655
|
|
|
} |
656
|
|
|
|
657
|
|
|
/** |
658
|
|
|
* Set audio. |
659
|
|
|
* |
660
|
|
|
* @param string $audio |
661
|
|
|
* |
662
|
|
|
* @return CLpItem |
663
|
|
|
*/ |
664
|
|
|
public function setAudio($audio) |
665
|
|
|
{ |
666
|
|
|
$this->audio = $audio; |
667
|
|
|
|
668
|
|
|
return $this; |
669
|
|
|
} |
670
|
|
|
|
671
|
|
|
/** |
672
|
|
|
* Get audio. |
673
|
|
|
* |
674
|
|
|
* @return string |
675
|
|
|
*/ |
676
|
|
|
public function getAudio() |
677
|
|
|
{ |
678
|
|
|
return $this->audio; |
679
|
|
|
} |
680
|
|
|
|
681
|
|
|
/** |
682
|
|
|
* Set prerequisiteMinScore. |
683
|
|
|
* |
684
|
|
|
* @param float $prerequisiteMinScore |
685
|
|
|
* |
686
|
|
|
* @return CLpItem |
687
|
|
|
*/ |
688
|
|
|
public function setPrerequisiteMinScore($prerequisiteMinScore) |
689
|
|
|
{ |
690
|
|
|
$this->prerequisiteMinScore = $prerequisiteMinScore; |
691
|
|
|
|
692
|
|
|
return $this; |
693
|
|
|
} |
694
|
|
|
|
695
|
|
|
/** |
696
|
|
|
* Get prerequisiteMinScore. |
697
|
|
|
* |
698
|
|
|
* @return float |
699
|
|
|
*/ |
700
|
|
|
public function getPrerequisiteMinScore() |
701
|
|
|
{ |
702
|
|
|
return $this->prerequisiteMinScore; |
703
|
|
|
} |
704
|
|
|
|
705
|
|
|
/** |
706
|
|
|
* Set prerequisiteMaxScore. |
707
|
|
|
* |
708
|
|
|
* @param float $prerequisiteMaxScore |
709
|
|
|
* |
710
|
|
|
* @return CLpItem |
711
|
|
|
*/ |
712
|
|
|
public function setPrerequisiteMaxScore($prerequisiteMaxScore) |
713
|
|
|
{ |
714
|
|
|
$this->prerequisiteMaxScore = $prerequisiteMaxScore; |
715
|
|
|
|
716
|
|
|
return $this; |
717
|
|
|
} |
718
|
|
|
|
719
|
|
|
/** |
720
|
|
|
* Get prerequisiteMaxScore. |
721
|
|
|
* |
722
|
|
|
* @return float |
723
|
|
|
*/ |
724
|
|
|
public function getPrerequisiteMaxScore() |
725
|
|
|
{ |
726
|
|
|
return $this->prerequisiteMaxScore; |
727
|
|
|
} |
728
|
|
|
|
729
|
|
|
/** |
730
|
|
|
* Set cId. |
731
|
|
|
* |
732
|
|
|
* @param int $cId |
733
|
|
|
* |
734
|
|
|
* @return CLpItem |
735
|
|
|
*/ |
736
|
|
|
public function setCId($cId) |
737
|
|
|
{ |
738
|
|
|
$this->cId = $cId; |
739
|
|
|
|
740
|
|
|
return $this; |
741
|
|
|
} |
742
|
|
|
|
743
|
|
|
/** |
744
|
|
|
* Get cId. |
745
|
|
|
* |
746
|
|
|
* @return int |
747
|
|
|
*/ |
748
|
|
|
public function getCId() |
749
|
|
|
{ |
750
|
|
|
return $this->cId; |
751
|
|
|
} |
752
|
|
|
} |
753
|
|
|
|