1
|
|
|
<?php |
2
|
|
|
/* For licensing terms, see /license.txt */ |
3
|
|
|
|
4
|
|
|
namespace Chamilo\CourseBundle\Entity; |
5
|
|
|
|
6
|
|
|
use Doctrine\ORM\Mapping as ORM; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* CLp. |
10
|
|
|
* |
11
|
|
|
* @ORM\Table( |
12
|
|
|
* name="c_lp", |
13
|
|
|
* indexes={ |
14
|
|
|
* @ORM\Index(name="course", columns={"c_id"}), |
15
|
|
|
* @ORM\Index(name="session", columns={"session_id"}) |
16
|
|
|
* } |
17
|
|
|
* ) |
18
|
|
|
* @ORM\Entity |
19
|
|
|
*/ |
20
|
|
|
class CLp |
21
|
|
|
{ |
22
|
|
|
/** |
23
|
|
|
* @var int |
24
|
|
|
* |
25
|
|
|
* @ORM\Column(name="iid", type="integer") |
26
|
|
|
* @ORM\Id |
27
|
|
|
* @ORM\GeneratedValue |
28
|
|
|
*/ |
29
|
|
|
protected $iid; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var int |
33
|
|
|
* |
34
|
|
|
* @ORM\Column(name="c_id", type="integer") |
35
|
|
|
*/ |
36
|
|
|
protected $cId; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var int |
40
|
|
|
* |
41
|
|
|
* @ORM\Column(name="id", type="integer", nullable=true) |
42
|
|
|
*/ |
43
|
|
|
protected $id; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var int |
47
|
|
|
* |
48
|
|
|
* @ORM\Column(name="lp_type", type="integer", nullable=false) |
49
|
|
|
*/ |
50
|
|
|
protected $lpType; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var string |
54
|
|
|
* |
55
|
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false) |
56
|
|
|
*/ |
57
|
|
|
protected $name; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string |
61
|
|
|
* |
62
|
|
|
* @ORM\Column(name="ref", type="text", nullable=true) |
63
|
|
|
*/ |
64
|
|
|
protected $ref; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var string |
68
|
|
|
* |
69
|
|
|
* @ORM\Column(name="description", type="text", nullable=true) |
70
|
|
|
*/ |
71
|
|
|
protected $description; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var string |
75
|
|
|
* |
76
|
|
|
* @ORM\Column(name="path", type="text", nullable=false) |
77
|
|
|
*/ |
78
|
|
|
protected $path; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var bool |
82
|
|
|
* |
83
|
|
|
* @ORM\Column(name="force_commit", type="boolean", nullable=false) |
84
|
|
|
*/ |
85
|
|
|
protected $forceCommit; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @var string |
89
|
|
|
* |
90
|
|
|
* @ORM\Column(name="default_view_mod", type="string", length=32, nullable=false, options={"default":"embedded"}) |
91
|
|
|
*/ |
92
|
|
|
protected $defaultViewMod; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @var string |
96
|
|
|
* |
97
|
|
|
* @ORM\Column(name="default_encoding", type="string", length=32, nullable=false, options={"default":"UTF-8"}) |
98
|
|
|
*/ |
99
|
|
|
protected $defaultEncoding; |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @var int |
103
|
|
|
* |
104
|
|
|
* @ORM\Column(name="display_order", type="integer", nullable=false, options={"default":"0"}) |
105
|
|
|
*/ |
106
|
|
|
protected $displayOrder; |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @var string |
110
|
|
|
* |
111
|
|
|
* @ORM\Column(name="content_maker", type="text", nullable=false) |
112
|
|
|
*/ |
113
|
|
|
protected $contentMaker; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @var string |
117
|
|
|
* |
118
|
|
|
* @ORM\Column(name="content_local", type="string", length=32, nullable=false, options={"default":"local"}) |
119
|
|
|
*/ |
120
|
|
|
protected $contentLocal; |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @var string |
124
|
|
|
* |
125
|
|
|
* @ORM\Column(name="content_license", type="text", nullable=false) |
126
|
|
|
*/ |
127
|
|
|
protected $contentLicense; |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @var bool |
131
|
|
|
* |
132
|
|
|
* @ORM\Column(name="prevent_reinit", type="boolean", nullable=false, options={"default":"1"}) |
133
|
|
|
*/ |
134
|
|
|
protected $preventReinit; |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @var string |
138
|
|
|
* |
139
|
|
|
* @ORM\Column(name="js_lib", type="text", nullable=false) |
140
|
|
|
*/ |
141
|
|
|
protected $jsLib; |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @var bool |
145
|
|
|
* |
146
|
|
|
* @ORM\Column(name="debug", type="boolean", nullable=false) |
147
|
|
|
*/ |
148
|
|
|
protected $debug; |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @var string |
152
|
|
|
* |
153
|
|
|
* @ORM\Column(name="theme", type="string", length=255, nullable=false) |
154
|
|
|
*/ |
155
|
|
|
protected $theme; |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @var string |
159
|
|
|
* |
160
|
|
|
* @ORM\Column(name="preview_image", type="string", length=255, nullable=false) |
161
|
|
|
*/ |
162
|
|
|
protected $previewImage; |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @var string |
166
|
|
|
* |
167
|
|
|
* @ORM\Column(name="author", type="string", length=255, nullable=false) |
168
|
|
|
*/ |
169
|
|
|
protected $author; |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* @var int |
173
|
|
|
* |
174
|
|
|
* @ORM\Column(name="session_id", type="integer", nullable=false) |
175
|
|
|
*/ |
176
|
|
|
protected $sessionId; |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @var int |
180
|
|
|
* |
181
|
|
|
* @ORM\Column(name="prerequisite", type="integer", nullable=false) |
182
|
|
|
*/ |
183
|
|
|
protected $prerequisite; |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @var bool |
187
|
|
|
* |
188
|
|
|
* @ORM\Column(name="hide_toc_frame", type="boolean", nullable=false) |
189
|
|
|
*/ |
190
|
|
|
protected $hideTocFrame; |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @var bool |
194
|
|
|
* |
195
|
|
|
* @ORM\Column(name="seriousgame_mode", type="boolean", nullable=false) |
196
|
|
|
*/ |
197
|
|
|
protected $seriousgameMode; |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @var int |
201
|
|
|
* |
202
|
|
|
* @ORM\Column(name="use_max_score", type="integer", nullable=false, options={"default":"1"}) |
203
|
|
|
*/ |
204
|
|
|
protected $useMaxScore; |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @var int |
208
|
|
|
* |
209
|
|
|
* @ORM\Column(name="autolaunch", type="integer", nullable=false) |
210
|
|
|
*/ |
211
|
|
|
protected $autolaunch; |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @var int |
215
|
|
|
* |
216
|
|
|
* @ORM\Column(name="category_id", type="integer", precision=0, scale=0, nullable=false, unique=false) |
217
|
|
|
*/ |
218
|
|
|
protected $categoryId; |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* @var int |
222
|
|
|
* |
223
|
|
|
* @ORM\Column(name="max_attempts", type="integer", nullable=false) |
224
|
|
|
*/ |
225
|
|
|
protected $maxAttempts; |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @var int |
229
|
|
|
* |
230
|
|
|
* @ORM\Column(name="subscribe_users", type="integer", nullable=false) |
231
|
|
|
*/ |
232
|
|
|
protected $subscribeUsers; |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @var \DateTime |
236
|
|
|
* |
237
|
|
|
* @ORM\Column(name="created_on", type="datetime", nullable=false) |
238
|
|
|
*/ |
239
|
|
|
protected $createdOn; |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @var \DateTime |
243
|
|
|
* |
244
|
|
|
* @ORM\Column(name="modified_on", type="datetime", nullable=false) |
245
|
|
|
*/ |
246
|
|
|
protected $modifiedOn; |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @var \DateTime |
250
|
|
|
* |
251
|
|
|
* @ORM\Column(name="publicated_on", type="datetime", nullable=true) |
252
|
|
|
*/ |
253
|
|
|
protected $publicatedOn; |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @var \DateTime |
257
|
|
|
* |
258
|
|
|
* @ORM\Column(name="expired_on", type="datetime", nullable=true) |
259
|
|
|
*/ |
260
|
|
|
protected $expiredOn; |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @var int |
264
|
|
|
* |
265
|
|
|
* @ORM\Column(name="accumulate_scorm_time", type="integer", nullable=false, options={"default":1}) |
266
|
|
|
*/ |
267
|
|
|
protected $accumulateScormTime; |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* Constructor. |
271
|
|
|
*/ |
272
|
|
|
public function __construct() |
273
|
|
|
{ |
274
|
|
|
$this->defaultViewMod = 'embedded'; |
275
|
|
|
$this->defaultEncoding = 'UTF-8'; |
276
|
|
|
$this->displayOrder = 0; |
277
|
|
|
$this->contentLocal = 'local'; |
278
|
|
|
$this->preventReinit = true; |
279
|
|
|
$this->useMaxScore = 1; |
280
|
|
|
$this->createdOn = new \DateTime(); |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* Set lpType. |
285
|
|
|
* |
286
|
|
|
* @param int $lpType |
287
|
|
|
* |
288
|
|
|
* @return CLp |
289
|
|
|
*/ |
290
|
|
|
public function setLpType($lpType) |
291
|
|
|
{ |
292
|
|
|
$this->lpType = $lpType; |
293
|
|
|
|
294
|
|
|
return $this; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Get lpType. |
299
|
|
|
* |
300
|
|
|
* @return int |
301
|
|
|
*/ |
302
|
|
|
public function getLpType() |
303
|
|
|
{ |
304
|
|
|
return $this->lpType; |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* Set name. |
309
|
|
|
* |
310
|
|
|
* @param string $name |
311
|
|
|
* |
312
|
|
|
* @return CLp |
313
|
|
|
*/ |
314
|
|
|
public function setName($name) |
315
|
|
|
{ |
316
|
|
|
$this->name = $name; |
317
|
|
|
|
318
|
|
|
return $this; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
/** |
322
|
|
|
* Get name. |
323
|
|
|
* |
324
|
|
|
* @return string |
325
|
|
|
*/ |
326
|
|
|
public function getName() |
327
|
|
|
{ |
328
|
|
|
return $this->name; |
329
|
|
|
} |
330
|
|
|
|
331
|
|
|
/** |
332
|
|
|
* Set ref. |
333
|
|
|
* |
334
|
|
|
* @param string $ref |
335
|
|
|
* |
336
|
|
|
* @return CLp |
337
|
|
|
*/ |
338
|
|
|
public function setRef($ref) |
339
|
|
|
{ |
340
|
|
|
$this->ref = $ref; |
341
|
|
|
|
342
|
|
|
return $this; |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
/** |
346
|
|
|
* Get ref. |
347
|
|
|
* |
348
|
|
|
* @return string |
349
|
|
|
*/ |
350
|
|
|
public function getRef() |
351
|
|
|
{ |
352
|
|
|
return $this->ref; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* Set description. |
357
|
|
|
* |
358
|
|
|
* @param string $description |
359
|
|
|
* |
360
|
|
|
* @return CLp |
361
|
|
|
*/ |
362
|
|
|
public function setDescription($description) |
363
|
|
|
{ |
364
|
|
|
$this->description = $description; |
365
|
|
|
|
366
|
|
|
return $this; |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* Get description. |
371
|
|
|
* |
372
|
|
|
* @return string |
373
|
|
|
*/ |
374
|
|
|
public function getDescription() |
375
|
|
|
{ |
376
|
|
|
return $this->description; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
/** |
380
|
|
|
* Set path. |
381
|
|
|
* |
382
|
|
|
* @param string $path |
383
|
|
|
* |
384
|
|
|
* @return CLp |
385
|
|
|
*/ |
386
|
|
|
public function setPath($path) |
387
|
|
|
{ |
388
|
|
|
$this->path = $path; |
389
|
|
|
|
390
|
|
|
return $this; |
391
|
|
|
} |
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* Get path. |
395
|
|
|
* |
396
|
|
|
* @return string |
397
|
|
|
*/ |
398
|
|
|
public function getPath() |
399
|
|
|
{ |
400
|
|
|
return $this->path; |
401
|
|
|
} |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* Set forceCommit. |
405
|
|
|
* |
406
|
|
|
* @param bool $forceCommit |
407
|
|
|
* |
408
|
|
|
* @return CLp |
409
|
|
|
*/ |
410
|
|
|
public function setForceCommit($forceCommit) |
411
|
|
|
{ |
412
|
|
|
$this->forceCommit = $forceCommit; |
413
|
|
|
|
414
|
|
|
return $this; |
415
|
|
|
} |
416
|
|
|
|
417
|
|
|
/** |
418
|
|
|
* Get forceCommit. |
419
|
|
|
* |
420
|
|
|
* @return bool |
421
|
|
|
*/ |
422
|
|
|
public function getForceCommit() |
423
|
|
|
{ |
424
|
|
|
return $this->forceCommit; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
/** |
428
|
|
|
* Set defaultViewMod. |
429
|
|
|
* |
430
|
|
|
* @param string $defaultViewMod |
431
|
|
|
* |
432
|
|
|
* @return CLp |
433
|
|
|
*/ |
434
|
|
|
public function setDefaultViewMod($defaultViewMod) |
435
|
|
|
{ |
436
|
|
|
$this->defaultViewMod = $defaultViewMod; |
437
|
|
|
|
438
|
|
|
return $this; |
439
|
|
|
} |
440
|
|
|
|
441
|
|
|
/** |
442
|
|
|
* Get defaultViewMod. |
443
|
|
|
* |
444
|
|
|
* @return string |
445
|
|
|
*/ |
446
|
|
|
public function getDefaultViewMod() |
447
|
|
|
{ |
448
|
|
|
return $this->defaultViewMod; |
449
|
|
|
} |
450
|
|
|
|
451
|
|
|
/** |
452
|
|
|
* Set defaultEncoding. |
453
|
|
|
* |
454
|
|
|
* @param string $defaultEncoding |
455
|
|
|
* |
456
|
|
|
* @return CLp |
457
|
|
|
*/ |
458
|
|
|
public function setDefaultEncoding($defaultEncoding) |
459
|
|
|
{ |
460
|
|
|
$this->defaultEncoding = $defaultEncoding; |
461
|
|
|
|
462
|
|
|
return $this; |
463
|
|
|
} |
464
|
|
|
|
465
|
|
|
/** |
466
|
|
|
* Get defaultEncoding. |
467
|
|
|
* |
468
|
|
|
* @return string |
469
|
|
|
*/ |
470
|
|
|
public function getDefaultEncoding() |
471
|
|
|
{ |
472
|
|
|
return $this->defaultEncoding; |
473
|
|
|
} |
474
|
|
|
|
475
|
|
|
/** |
476
|
|
|
* Set displayOrder. |
477
|
|
|
* |
478
|
|
|
* @param int $displayOrder |
479
|
|
|
* |
480
|
|
|
* @return CLp |
481
|
|
|
*/ |
482
|
|
|
public function setDisplayOrder($displayOrder) |
483
|
|
|
{ |
484
|
|
|
$this->displayOrder = $displayOrder; |
485
|
|
|
|
486
|
|
|
return $this; |
487
|
|
|
} |
488
|
|
|
|
489
|
|
|
/** |
490
|
|
|
* Get displayOrder. |
491
|
|
|
* |
492
|
|
|
* @return int |
493
|
|
|
*/ |
494
|
|
|
public function getDisplayOrder() |
495
|
|
|
{ |
496
|
|
|
return $this->displayOrder; |
497
|
|
|
} |
498
|
|
|
|
499
|
|
|
/** |
500
|
|
|
* Set contentMaker. |
501
|
|
|
* |
502
|
|
|
* @param string $contentMaker |
503
|
|
|
* |
504
|
|
|
* @return CLp |
505
|
|
|
*/ |
506
|
|
|
public function setContentMaker($contentMaker) |
507
|
|
|
{ |
508
|
|
|
$this->contentMaker = $contentMaker; |
509
|
|
|
|
510
|
|
|
return $this; |
511
|
|
|
} |
512
|
|
|
|
513
|
|
|
/** |
514
|
|
|
* Get contentMaker. |
515
|
|
|
* |
516
|
|
|
* @return string |
517
|
|
|
*/ |
518
|
|
|
public function getContentMaker() |
519
|
|
|
{ |
520
|
|
|
return $this->contentMaker; |
521
|
|
|
} |
522
|
|
|
|
523
|
|
|
/** |
524
|
|
|
* Set contentLocal. |
525
|
|
|
* |
526
|
|
|
* @param string $contentLocal |
527
|
|
|
* |
528
|
|
|
* @return CLp |
529
|
|
|
*/ |
530
|
|
|
public function setContentLocal($contentLocal) |
531
|
|
|
{ |
532
|
|
|
$this->contentLocal = $contentLocal; |
533
|
|
|
|
534
|
|
|
return $this; |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
/** |
538
|
|
|
* Get contentLocal. |
539
|
|
|
* |
540
|
|
|
* @return string |
541
|
|
|
*/ |
542
|
|
|
public function getContentLocal() |
543
|
|
|
{ |
544
|
|
|
return $this->contentLocal; |
545
|
|
|
} |
546
|
|
|
|
547
|
|
|
/** |
548
|
|
|
* Set contentLicense. |
549
|
|
|
* |
550
|
|
|
* @param string $contentLicense |
551
|
|
|
* |
552
|
|
|
* @return CLp |
553
|
|
|
*/ |
554
|
|
|
public function setContentLicense($contentLicense) |
555
|
|
|
{ |
556
|
|
|
$this->contentLicense = $contentLicense; |
557
|
|
|
|
558
|
|
|
return $this; |
559
|
|
|
} |
560
|
|
|
|
561
|
|
|
/** |
562
|
|
|
* Get contentLicense. |
563
|
|
|
* |
564
|
|
|
* @return string |
565
|
|
|
*/ |
566
|
|
|
public function getContentLicense() |
567
|
|
|
{ |
568
|
|
|
return $this->contentLicense; |
569
|
|
|
} |
570
|
|
|
|
571
|
|
|
/** |
572
|
|
|
* Set preventReinit. |
573
|
|
|
* |
574
|
|
|
* @param bool $preventReinit |
575
|
|
|
* |
576
|
|
|
* @return CLp |
577
|
|
|
*/ |
578
|
|
|
public function setPreventReinit($preventReinit) |
579
|
|
|
{ |
580
|
|
|
$this->preventReinit = $preventReinit; |
581
|
|
|
|
582
|
|
|
return $this; |
583
|
|
|
} |
584
|
|
|
|
585
|
|
|
/** |
586
|
|
|
* Get preventReinit. |
587
|
|
|
* |
588
|
|
|
* @return bool |
589
|
|
|
*/ |
590
|
|
|
public function getPreventReinit() |
591
|
|
|
{ |
592
|
|
|
return $this->preventReinit; |
593
|
|
|
} |
594
|
|
|
|
595
|
|
|
/** |
596
|
|
|
* Set jsLib. |
597
|
|
|
* |
598
|
|
|
* @param string $jsLib |
599
|
|
|
* |
600
|
|
|
* @return CLp |
601
|
|
|
*/ |
602
|
|
|
public function setJsLib($jsLib) |
603
|
|
|
{ |
604
|
|
|
$this->jsLib = $jsLib; |
605
|
|
|
|
606
|
|
|
return $this; |
607
|
|
|
} |
608
|
|
|
|
609
|
|
|
/** |
610
|
|
|
* Get jsLib. |
611
|
|
|
* |
612
|
|
|
* @return string |
613
|
|
|
*/ |
614
|
|
|
public function getJsLib() |
615
|
|
|
{ |
616
|
|
|
return $this->jsLib; |
617
|
|
|
} |
618
|
|
|
|
619
|
|
|
/** |
620
|
|
|
* Set debug. |
621
|
|
|
* |
622
|
|
|
* @param bool $debug |
623
|
|
|
* |
624
|
|
|
* @return CLp |
625
|
|
|
*/ |
626
|
|
|
public function setDebug($debug) |
627
|
|
|
{ |
628
|
|
|
$this->debug = $debug; |
629
|
|
|
|
630
|
|
|
return $this; |
631
|
|
|
} |
632
|
|
|
|
633
|
|
|
/** |
634
|
|
|
* Get debug. |
635
|
|
|
* |
636
|
|
|
* @return bool |
637
|
|
|
*/ |
638
|
|
|
public function getDebug() |
639
|
|
|
{ |
640
|
|
|
return $this->debug; |
641
|
|
|
} |
642
|
|
|
|
643
|
|
|
/** |
644
|
|
|
* Set theme. |
645
|
|
|
* |
646
|
|
|
* @param string $theme |
647
|
|
|
* |
648
|
|
|
* @return CLp |
649
|
|
|
*/ |
650
|
|
|
public function setTheme($theme) |
651
|
|
|
{ |
652
|
|
|
$this->theme = $theme; |
653
|
|
|
|
654
|
|
|
return $this; |
655
|
|
|
} |
656
|
|
|
|
657
|
|
|
/** |
658
|
|
|
* Get theme. |
659
|
|
|
* |
660
|
|
|
* @return string |
661
|
|
|
*/ |
662
|
|
|
public function getTheme() |
663
|
|
|
{ |
664
|
|
|
return $this->theme; |
665
|
|
|
} |
666
|
|
|
|
667
|
|
|
/** |
668
|
|
|
* Set previewImage. |
669
|
|
|
* |
670
|
|
|
* @param string $previewImage |
671
|
|
|
* |
672
|
|
|
* @return CLp |
673
|
|
|
*/ |
674
|
|
|
public function setPreviewImage($previewImage) |
675
|
|
|
{ |
676
|
|
|
$this->previewImage = $previewImage; |
677
|
|
|
|
678
|
|
|
return $this; |
679
|
|
|
} |
680
|
|
|
|
681
|
|
|
/** |
682
|
|
|
* Get previewImage. |
683
|
|
|
* |
684
|
|
|
* @return string |
685
|
|
|
*/ |
686
|
|
|
public function getPreviewImage() |
687
|
|
|
{ |
688
|
|
|
return $this->previewImage; |
689
|
|
|
} |
690
|
|
|
|
691
|
|
|
/** |
692
|
|
|
* Set author. |
693
|
|
|
* |
694
|
|
|
* @param string $author |
695
|
|
|
* |
696
|
|
|
* @return CLp |
697
|
|
|
*/ |
698
|
|
|
public function setAuthor($author) |
699
|
|
|
{ |
700
|
|
|
$this->author = $author; |
701
|
|
|
|
702
|
|
|
return $this; |
703
|
|
|
} |
704
|
|
|
|
705
|
|
|
/** |
706
|
|
|
* Get author. |
707
|
|
|
* |
708
|
|
|
* @return string |
709
|
|
|
*/ |
710
|
|
|
public function getAuthor() |
711
|
|
|
{ |
712
|
|
|
return $this->author; |
713
|
|
|
} |
714
|
|
|
|
715
|
|
|
/** |
716
|
|
|
* Set sessionId. |
717
|
|
|
* |
718
|
|
|
* @param int $sessionId |
719
|
|
|
* |
720
|
|
|
* @return CLp |
721
|
|
|
*/ |
722
|
|
|
public function setSessionId($sessionId) |
723
|
|
|
{ |
724
|
|
|
$this->sessionId = $sessionId; |
725
|
|
|
|
726
|
|
|
return $this; |
727
|
|
|
} |
728
|
|
|
|
729
|
|
|
/** |
730
|
|
|
* Get sessionId. |
731
|
|
|
* |
732
|
|
|
* @return int |
733
|
|
|
*/ |
734
|
|
|
public function getSessionId() |
735
|
|
|
{ |
736
|
|
|
return $this->sessionId; |
737
|
|
|
} |
738
|
|
|
|
739
|
|
|
/** |
740
|
|
|
* Set prerequisite. |
741
|
|
|
* |
742
|
|
|
* @param int $prerequisite |
743
|
|
|
* |
744
|
|
|
* @return CLp |
745
|
|
|
*/ |
746
|
|
|
public function setPrerequisite($prerequisite) |
747
|
|
|
{ |
748
|
|
|
$this->prerequisite = $prerequisite; |
749
|
|
|
|
750
|
|
|
return $this; |
751
|
|
|
} |
752
|
|
|
|
753
|
|
|
/** |
754
|
|
|
* Get prerequisite. |
755
|
|
|
* |
756
|
|
|
* @return int |
757
|
|
|
*/ |
758
|
|
|
public function getPrerequisite() |
759
|
|
|
{ |
760
|
|
|
return $this->prerequisite; |
761
|
|
|
} |
762
|
|
|
|
763
|
|
|
/** |
764
|
|
|
* Set hideTocFrame. |
765
|
|
|
* |
766
|
|
|
* @param bool $hideTocFrame |
767
|
|
|
* |
768
|
|
|
* @return CLp |
769
|
|
|
*/ |
770
|
|
|
public function setHideTocFrame($hideTocFrame) |
771
|
|
|
{ |
772
|
|
|
$this->hideTocFrame = $hideTocFrame; |
773
|
|
|
|
774
|
|
|
return $this; |
775
|
|
|
} |
776
|
|
|
|
777
|
|
|
/** |
778
|
|
|
* Get hideTocFrame. |
779
|
|
|
* |
780
|
|
|
* @return bool |
781
|
|
|
*/ |
782
|
|
|
public function getHideTocFrame() |
783
|
|
|
{ |
784
|
|
|
return $this->hideTocFrame; |
785
|
|
|
} |
786
|
|
|
|
787
|
|
|
/** |
788
|
|
|
* Set seriousgameMode. |
789
|
|
|
* |
790
|
|
|
* @param bool $seriousgameMode |
791
|
|
|
* |
792
|
|
|
* @return CLp |
793
|
|
|
*/ |
794
|
|
|
public function setSeriousgameMode($seriousgameMode) |
795
|
|
|
{ |
796
|
|
|
$this->seriousgameMode = $seriousgameMode; |
797
|
|
|
|
798
|
|
|
return $this; |
799
|
|
|
} |
800
|
|
|
|
801
|
|
|
/** |
802
|
|
|
* Get seriousgameMode. |
803
|
|
|
* |
804
|
|
|
* @return bool |
805
|
|
|
*/ |
806
|
|
|
public function getSeriousgameMode() |
807
|
|
|
{ |
808
|
|
|
return $this->seriousgameMode; |
809
|
|
|
} |
810
|
|
|
|
811
|
|
|
/** |
812
|
|
|
* Set useMaxScore. |
813
|
|
|
* |
814
|
|
|
* @param int $useMaxScore |
815
|
|
|
* |
816
|
|
|
* @return CLp |
817
|
|
|
*/ |
818
|
|
|
public function setUseMaxScore($useMaxScore) |
819
|
|
|
{ |
820
|
|
|
$this->useMaxScore = $useMaxScore; |
821
|
|
|
|
822
|
|
|
return $this; |
823
|
|
|
} |
824
|
|
|
|
825
|
|
|
/** |
826
|
|
|
* Get useMaxScore. |
827
|
|
|
* |
828
|
|
|
* @return int |
829
|
|
|
*/ |
830
|
|
|
public function getUseMaxScore() |
831
|
|
|
{ |
832
|
|
|
return $this->useMaxScore; |
833
|
|
|
} |
834
|
|
|
|
835
|
|
|
/** |
836
|
|
|
* Set autolaunch. |
837
|
|
|
* |
838
|
|
|
* @param int $autolaunch |
839
|
|
|
* |
840
|
|
|
* @return CLp |
841
|
|
|
*/ |
842
|
|
|
public function setAutolaunch($autolaunch) |
843
|
|
|
{ |
844
|
|
|
$this->autolaunch = $autolaunch; |
845
|
|
|
|
846
|
|
|
return $this; |
847
|
|
|
} |
848
|
|
|
|
849
|
|
|
/** |
850
|
|
|
* Get autolaunch. |
851
|
|
|
* |
852
|
|
|
* @return int |
853
|
|
|
*/ |
854
|
|
|
public function getAutolaunch() |
855
|
|
|
{ |
856
|
|
|
return $this->autolaunch; |
857
|
|
|
} |
858
|
|
|
|
859
|
|
|
/** |
860
|
|
|
* Set createdOn. |
861
|
|
|
* |
862
|
|
|
* @param \DateTime $createdOn |
863
|
|
|
* |
864
|
|
|
* @return CLp |
865
|
|
|
*/ |
866
|
|
|
public function setCreatedOn($createdOn) |
867
|
|
|
{ |
868
|
|
|
$this->createdOn = $createdOn; |
869
|
|
|
|
870
|
|
|
return $this; |
871
|
|
|
} |
872
|
|
|
|
873
|
|
|
/** |
874
|
|
|
* Get createdOn. |
875
|
|
|
* |
876
|
|
|
* @return \DateTime |
877
|
|
|
*/ |
878
|
|
|
public function getCreatedOn() |
879
|
|
|
{ |
880
|
|
|
return $this->createdOn; |
881
|
|
|
} |
882
|
|
|
|
883
|
|
|
/** |
884
|
|
|
* Set modifiedOn. |
885
|
|
|
* |
886
|
|
|
* @param \DateTime $modifiedOn |
887
|
|
|
* |
888
|
|
|
* @return CLp |
889
|
|
|
*/ |
890
|
|
|
public function setModifiedOn($modifiedOn) |
891
|
|
|
{ |
892
|
|
|
$this->modifiedOn = $modifiedOn; |
893
|
|
|
|
894
|
|
|
return $this; |
895
|
|
|
} |
896
|
|
|
|
897
|
|
|
/** |
898
|
|
|
* Get modifiedOn. |
899
|
|
|
* |
900
|
|
|
* @return \DateTime |
901
|
|
|
*/ |
902
|
|
|
public function getModifiedOn() |
903
|
|
|
{ |
904
|
|
|
return $this->modifiedOn; |
905
|
|
|
} |
906
|
|
|
|
907
|
|
|
/** |
908
|
|
|
* Set publicatedOn. |
909
|
|
|
* |
910
|
|
|
* @param \DateTime $publicatedOn |
911
|
|
|
* |
912
|
|
|
* @return CLp |
913
|
|
|
*/ |
914
|
|
|
public function setPublicatedOn($publicatedOn) |
915
|
|
|
{ |
916
|
|
|
$this->publicatedOn = $publicatedOn; |
917
|
|
|
|
918
|
|
|
return $this; |
919
|
|
|
} |
920
|
|
|
|
921
|
|
|
/** |
922
|
|
|
* Get publicatedOn. |
923
|
|
|
* |
924
|
|
|
* @return \DateTime |
925
|
|
|
*/ |
926
|
|
|
public function getPublicatedOn() |
927
|
|
|
{ |
928
|
|
|
return $this->publicatedOn; |
929
|
|
|
} |
930
|
|
|
|
931
|
|
|
/** |
932
|
|
|
* Set expiredOn. |
933
|
|
|
* |
934
|
|
|
* @param \DateTime $expiredOn |
935
|
|
|
* |
936
|
|
|
* @return CLp |
937
|
|
|
*/ |
938
|
|
|
public function setExpiredOn($expiredOn) |
939
|
|
|
{ |
940
|
|
|
$this->expiredOn = $expiredOn; |
941
|
|
|
|
942
|
|
|
return $this; |
943
|
|
|
} |
944
|
|
|
|
945
|
|
|
/** |
946
|
|
|
* Get expiredOn. |
947
|
|
|
* |
948
|
|
|
* @return \DateTime |
949
|
|
|
*/ |
950
|
|
|
public function getExpiredOn() |
951
|
|
|
{ |
952
|
|
|
return $this->expiredOn; |
953
|
|
|
} |
954
|
|
|
|
955
|
|
|
/** |
956
|
|
|
* Set id. |
957
|
|
|
* |
958
|
|
|
* @param int $id |
959
|
|
|
* |
960
|
|
|
* @return CLp |
961
|
|
|
*/ |
962
|
|
|
public function setId($id) |
963
|
|
|
{ |
964
|
|
|
$this->id = $id; |
965
|
|
|
|
966
|
|
|
return $this; |
967
|
|
|
} |
968
|
|
|
|
969
|
|
|
/** |
970
|
|
|
* Get id. |
971
|
|
|
* |
972
|
|
|
* @return int |
973
|
|
|
*/ |
974
|
|
|
public function getId() |
975
|
|
|
{ |
976
|
|
|
return $this->id; |
977
|
|
|
} |
978
|
|
|
|
979
|
|
|
/** |
980
|
|
|
* Set cId. |
981
|
|
|
* |
982
|
|
|
* @param int $cId |
983
|
|
|
* |
984
|
|
|
* @return CLp |
985
|
|
|
*/ |
986
|
|
|
public function setCId($cId) |
987
|
|
|
{ |
988
|
|
|
$this->cId = $cId; |
989
|
|
|
|
990
|
|
|
return $this; |
991
|
|
|
} |
992
|
|
|
|
993
|
|
|
/** |
994
|
|
|
* Get cId. |
995
|
|
|
* |
996
|
|
|
* @return int |
997
|
|
|
*/ |
998
|
|
|
public function getCId() |
999
|
|
|
{ |
1000
|
|
|
return $this->cId; |
1001
|
|
|
} |
1002
|
|
|
|
1003
|
|
|
/** |
1004
|
|
|
* @return int |
1005
|
|
|
*/ |
1006
|
|
|
public function getCategoryId() |
1007
|
|
|
{ |
1008
|
|
|
return $this->categoryId; |
1009
|
|
|
} |
1010
|
|
|
|
1011
|
|
|
/** |
1012
|
|
|
* @param int $categoryId |
1013
|
|
|
* |
1014
|
|
|
* @return CLp |
1015
|
|
|
*/ |
1016
|
|
|
public function setCategoryId($categoryId) |
1017
|
|
|
{ |
1018
|
|
|
$this->categoryId = $categoryId; |
1019
|
|
|
|
1020
|
|
|
return $this; |
1021
|
|
|
} |
1022
|
|
|
|
1023
|
|
|
public function getAccumulateScormTime(): int |
1024
|
|
|
{ |
1025
|
|
|
return $this->accumulateScormTime; |
1026
|
|
|
} |
1027
|
|
|
|
1028
|
|
|
public function setAccumulateScormTime(int $accumulateScormTime): CLp |
1029
|
|
|
{ |
1030
|
|
|
$this->accumulateScormTime = $accumulateScormTime; |
1031
|
|
|
|
1032
|
|
|
return $this; |
1033
|
|
|
} |
1034
|
|
|
|
1035
|
|
|
/** |
1036
|
|
|
* Get iid. |
1037
|
|
|
* |
1038
|
|
|
* @return int |
1039
|
|
|
*/ |
1040
|
|
|
public function getIid() |
1041
|
|
|
{ |
1042
|
|
|
return $this->iid; |
1043
|
|
|
} |
1044
|
|
|
|
1045
|
|
|
/** |
1046
|
|
|
* Get subscribeUsers. |
1047
|
|
|
* |
1048
|
|
|
* @return int |
1049
|
|
|
*/ |
1050
|
|
|
public function getSubscribeUsers() |
1051
|
|
|
{ |
1052
|
|
|
return $this->subscribeUsers; |
1053
|
|
|
} |
1054
|
|
|
|
1055
|
|
|
public function setSubscribeUsers(int $subscribeUsers): CLp |
1056
|
|
|
{ |
1057
|
|
|
$this->subscribeUsers = $subscribeUsers; |
1058
|
|
|
|
1059
|
|
|
return $this; |
1060
|
|
|
} |
1061
|
|
|
|
1062
|
|
|
public function getMaxAttempts(): int |
1063
|
|
|
{ |
1064
|
|
|
return $this->maxAttempts; |
1065
|
|
|
} |
1066
|
|
|
|
1067
|
|
|
public function setMaxAttempts(int $maxAttempts): CLp |
1068
|
|
|
{ |
1069
|
|
|
$this->maxAttempts = $maxAttempts; |
1070
|
|
|
|
1071
|
|
|
return $this; |
1072
|
|
|
} |
1073
|
|
|
} |
1074
|
|
|
|