ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilECSParticipant.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 private int $cid;
27 private int $pid;
28 private int $mid;
29 private string $email;
30 private string $dns;
31 private string $description;
32 private string $participantname;
33 private bool $is_self;
34
36
37 public function __construct(object $json_obj, int $a_cid)
38 {
39 $this->cid = $a_cid;
40 $this->read($json_obj);
41 }
42
46 public function getCommunityId(): int
47 {
48 return $this->cid;
49 }
50
54 public function getMID(): int
55 {
56 return $this->mid;
57 }
58
62 public function getEmail(): string
63 {
64 return $this->email;
65 }
66
67
71 public function getDNS(): string
72 {
73 return $this->dns;
74 }
75
79 public function getDescription(): string
80 {
81 return $this->description;
82 }
83
87 public function getParticipantName(): string
88 {
90 }
91
95 public function getPid(): int
96 {
97 return $this->pid;
98 }
99
103 public function isSelf(): bool
104 {
105 return $this->is_self;
106 }
107
113 {
114 return $this->org;
115 }
116
120 private function read(object $json_obj): void
121 {
122 $this->pid = $json_obj->pid;
123 $this->mid = $json_obj->mid;
124 $this->email = $json_obj->email;
125 $this->dns = $json_obj->dns;
126 $this->description = $json_obj->description;
127
128 $this->participantname = $json_obj->name;
129 $this->is_self = $json_obj->itsyou;
130
131 $this->org = new ilECSOrganisation();
132 if (is_object($json_obj->org)) {
133 $this->org->loadFromJson($json_obj->org);
134 }
135 }
136}
getParticipantName()
get participant name
read(object $json_obj)
Read.
getCommunityId()
get community id
getOrganisation()
Get organisation.
ilECSOrganisation $org
__construct(object $json_obj, int $a_cid)
getDescription()
get description