Passed
Push — 1.11.x ( 3fe97a...cd2df0 )
by Julito
10:52 queued 13s
created

CGroupInfo::getIid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 1
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
 * CGroupInfo.
10
 *
11
 * @ORM\Table(
12
 *  name="c_group_info",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"}),
15
 *      @ORM\Index(name="session_id", columns={"session_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CGroupInfo
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="id", type="integer", nullable=true)
35
     */
36
    protected $id;
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="c_id", type="integer")
42
     */
43
    protected $cId;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="name", type="string", length=100, nullable=true)
49
     */
50
    protected $name;
51
52
    /**
53
     * @var bool
54
     *
55
     * @ORM\Column(name="status", type="boolean", nullable=true)
56
     */
57
    protected $status;
58
59
    /**
60
     * @var int
61
     *
62
     * @ORM\Column(name="category_id", type="integer", nullable=false)
63
     */
64
    protected $categoryId;
65
66
    /**
67
     * @var string
68
     *
69
     * @ORM\Column(name="description", type="text", nullable=true)
70
     */
71
    protected $description;
72
73
    /**
74
     * @var int
75
     *
76
     * @ORM\Column(name="max_student", type="integer", nullable=false)
77
     */
78
    protected $maxStudent;
79
80
    /**
81
     * @var bool
82
     *
83
     * @ORM\Column(name="doc_state", type="boolean", nullable=false)
84
     */
85
    protected $docState;
86
87
    /**
88
     * @var bool
89
     *
90
     * @ORM\Column(name="calendar_state", type="boolean", nullable=false)
91
     */
92
    protected $calendarState;
93
94
    /**
95
     * @var bool
96
     *
97
     * @ORM\Column(name="work_state", type="boolean", nullable=false)
98
     */
99
    protected $workState;
100
101
    /**
102
     * @var bool
103
     *
104
     * @ORM\Column(name="announcements_state", type="boolean", nullable=false)
105
     */
106
    protected $announcementsState;
107
108
    /**
109
     * @var bool
110
     *
111
     * @ORM\Column(name="forum_state", type="boolean", nullable=false)
112
     */
113
    protected $forumState;
114
115
    /**
116
     * @var bool
117
     *
118
     * @ORM\Column(name="wiki_state", type="boolean", nullable=false)
119
     */
120
    protected $wikiState;
121
122
    /**
123
     * @var bool
124
     *
125
     * @ORM\Column(name="chat_state", type="boolean", nullable=false)
126
     */
127
    protected $chatState;
128
129
    /**
130
     * @var string
131
     *
132
     * @ORM\Column(name="secret_directory", type="string", length=255, nullable=true)
133
     */
134
    protected $secretDirectory;
135
136
    /**
137
     * @var bool
138
     *
139
     * @ORM\Column(name="self_registration_allowed", type="boolean", nullable=false)
140
     */
141
    protected $selfRegistrationAllowed;
142
143
    /**
144
     * @var bool
145
     *
146
     * @ORM\Column(name="self_unregistration_allowed", type="boolean", nullable=false)
147
     */
148
    protected $selfUnregistrationAllowed;
149
150
    /**
151
     * @var int
152
     *
153
     * @ORM\Column(name="session_id", type="integer", nullable=false)
154
     */
155
    protected $sessionId;
156
157
    /**
158
     * @var int needed for setting['group_document_access']
159
     *
160
     * ORM\Column(name="doc_access", type="integer", nullable=false, options={"default":0})
161
     */
162
    //protected $docAccess;
163
164
    /**
165
     * @return int
166
     */
167
    public function getIid()
168
    {
169
        return $this->iid;
170
    }
171
172
    /**
173
     * Set name.
174
     *
175
     * @param string $name
176
     *
177
     * @return CGroupInfo
178
     */
179
    public function setName($name)
180
    {
181
        $this->name = $name;
182
183
        return $this;
184
    }
185
186
    /**
187
     * Get name.
188
     *
189
     * @return string
190
     */
191
    public function getName()
192
    {
193
        return $this->name;
194
    }
195
196
    /**
197
     * Set status.
198
     *
199
     * @param bool $status
200
     *
201
     * @return CGroupInfo
202
     */
203
    public function setStatus($status)
204
    {
205
        $this->status = $status;
206
207
        return $this;
208
    }
209
210
    /**
211
     * Get status.
212
     *
213
     * @return bool
214
     */
215
    public function getStatus()
216
    {
217
        return $this->status;
218
    }
219
220
    /**
221
     * Set categoryId.
222
     *
223
     * @param int $categoryId
224
     *
225
     * @return CGroupInfo
226
     */
227
    public function setCategoryId($categoryId)
228
    {
229
        $this->categoryId = $categoryId;
230
231
        return $this;
232
    }
233
234
    /**
235
     * Get categoryId.
236
     *
237
     * @return int
238
     */
239
    public function getCategoryId()
240
    {
241
        return $this->categoryId;
242
    }
243
244
    /**
245
     * Set description.
246
     *
247
     * @param string $description
248
     *
249
     * @return CGroupInfo
250
     */
251
    public function setDescription($description)
252
    {
253
        $this->description = $description;
254
255
        return $this;
256
    }
257
258
    /**
259
     * Get description.
260
     *
261
     * @return string
262
     */
263
    public function getDescription()
264
    {
265
        return $this->description;
266
    }
267
268
    /**
269
     * Set maxStudent.
270
     *
271
     * @param int $maxStudent
272
     *
273
     * @return CGroupInfo
274
     */
275
    public function setMaxStudent($maxStudent)
276
    {
277
        $this->maxStudent = $maxStudent;
278
279
        return $this;
280
    }
281
282
    /**
283
     * Get maxStudent.
284
     *
285
     * @return int
286
     */
287
    public function getMaxStudent()
288
    {
289
        return $this->maxStudent;
290
    }
291
292
    /**
293
     * Set docState.
294
     *
295
     * @param bool $docState
296
     *
297
     * @return CGroupInfo
298
     */
299
    public function setDocState($docState)
300
    {
301
        $this->docState = $docState;
302
303
        return $this;
304
    }
305
306
    /**
307
     * Get docState.
308
     *
309
     * @return bool
310
     */
311
    public function getDocState()
312
    {
313
        return $this->docState;
314
    }
315
316
    /**
317
     * Set calendarState.
318
     *
319
     * @param bool $calendarState
320
     *
321
     * @return CGroupInfo
322
     */
323
    public function setCalendarState($calendarState)
324
    {
325
        $this->calendarState = $calendarState;
326
327
        return $this;
328
    }
329
330
    /**
331
     * Get calendarState.
332
     *
333
     * @return bool
334
     */
335
    public function getCalendarState()
336
    {
337
        return $this->calendarState;
338
    }
339
340
    /**
341
     * Set workState.
342
     *
343
     * @param bool $workState
344
     *
345
     * @return CGroupInfo
346
     */
347
    public function setWorkState($workState)
348
    {
349
        $this->workState = $workState;
350
351
        return $this;
352
    }
353
354
    /**
355
     * Get workState.
356
     *
357
     * @return bool
358
     */
359
    public function getWorkState()
360
    {
361
        return $this->workState;
362
    }
363
364
    /**
365
     * Set announcementsState.
366
     *
367
     * @param bool $announcementsState
368
     *
369
     * @return CGroupInfo
370
     */
371
    public function setAnnouncementsState($announcementsState)
372
    {
373
        $this->announcementsState = $announcementsState;
374
375
        return $this;
376
    }
377
378
    /**
379
     * Get announcementsState.
380
     *
381
     * @return bool
382
     */
383
    public function getAnnouncementsState()
384
    {
385
        return $this->announcementsState;
386
    }
387
388
    /**
389
     * Set forumState.
390
     *
391
     * @param bool $forumState
392
     *
393
     * @return CGroupInfo
394
     */
395
    public function setForumState($forumState)
396
    {
397
        $this->forumState = $forumState;
398
399
        return $this;
400
    }
401
402
    /**
403
     * Get forumState.
404
     *
405
     * @return bool
406
     */
407
    public function getForumState()
408
    {
409
        return $this->forumState;
410
    }
411
412
    /**
413
     * Set wikiState.
414
     *
415
     * @param bool $wikiState
416
     *
417
     * @return CGroupInfo
418
     */
419
    public function setWikiState($wikiState)
420
    {
421
        $this->wikiState = $wikiState;
422
423
        return $this;
424
    }
425
426
    /**
427
     * Get wikiState.
428
     *
429
     * @return bool
430
     */
431
    public function getWikiState()
432
    {
433
        return $this->wikiState;
434
    }
435
436
    /**
437
     * Set chatState.
438
     *
439
     * @param bool $chatState
440
     *
441
     * @return CGroupInfo
442
     */
443
    public function setChatState($chatState)
444
    {
445
        $this->chatState = $chatState;
446
447
        return $this;
448
    }
449
450
    /**
451
     * Get chatState.
452
     *
453
     * @return bool
454
     */
455
    public function getChatState()
456
    {
457
        return $this->chatState;
458
    }
459
460
    /**
461
     * Set secretDirectory.
462
     *
463
     * @param string $secretDirectory
464
     *
465
     * @return CGroupInfo
466
     */
467
    public function setSecretDirectory($secretDirectory)
468
    {
469
        $this->secretDirectory = $secretDirectory;
470
471
        return $this;
472
    }
473
474
    /**
475
     * Get secretDirectory.
476
     *
477
     * @return string
478
     */
479
    public function getSecretDirectory()
480
    {
481
        return $this->secretDirectory;
482
    }
483
484
    /**
485
     * Set selfRegistrationAllowed.
486
     *
487
     * @param bool $selfRegistrationAllowed
488
     *
489
     * @return CGroupInfo
490
     */
491
    public function setSelfRegistrationAllowed($selfRegistrationAllowed)
492
    {
493
        $this->selfRegistrationAllowed = $selfRegistrationAllowed;
494
495
        return $this;
496
    }
497
498
    /**
499
     * Get selfRegistrationAllowed.
500
     *
501
     * @return bool
502
     */
503
    public function getSelfRegistrationAllowed()
504
    {
505
        return $this->selfRegistrationAllowed;
506
    }
507
508
    /**
509
     * Set selfUnregistrationAllowed.
510
     *
511
     * @param bool $selfUnregistrationAllowed
512
     *
513
     * @return CGroupInfo
514
     */
515
    public function setSelfUnregistrationAllowed($selfUnregistrationAllowed)
516
    {
517
        $this->selfUnregistrationAllowed = $selfUnregistrationAllowed;
518
519
        return $this;
520
    }
521
522
    /**
523
     * Get selfUnregistrationAllowed.
524
     *
525
     * @return bool
526
     */
527
    public function getSelfUnregistrationAllowed()
528
    {
529
        return $this->selfUnregistrationAllowed;
530
    }
531
532
    /**
533
     * Set sessionId.
534
     *
535
     * @param int $sessionId
536
     *
537
     * @return CGroupInfo
538
     */
539
    public function setSessionId($sessionId)
540
    {
541
        $this->sessionId = $sessionId;
542
543
        return $this;
544
    }
545
546
    /**
547
     * Get sessionId.
548
     *
549
     * @return int
550
     */
551
    public function getSessionId()
552
    {
553
        return $this->sessionId;
554
    }
555
556
    /**
557
     * Set id.
558
     *
559
     * @param int $id
560
     *
561
     * @return CGroupInfo
562
     */
563
    public function setId($id)
564
    {
565
        $this->id = $id;
566
567
        return $this;
568
    }
569
570
    /**
571
     * Get id.
572
     *
573
     * @return int
574
     */
575
    public function getId()
576
    {
577
        return $this->id;
578
    }
579
580
    /**
581
     * Set cId.
582
     *
583
     * @param int $cId
584
     *
585
     * @return CGroupInfo
586
     */
587
    public function setCId($cId)
588
    {
589
        $this->cId = $cId;
590
591
        return $this;
592
    }
593
594
    /**
595
     * Get cId.
596
     *
597
     * @return int
598
     */
599
    public function getCId()
600
    {
601
        return $this->cId;
602
    }
603
}
604