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