ILIAS  release_8 Revision v8.23
class.ilECSParticipant.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
24 {
25  private int $cid;
26  private int $pid;
27  private int $mid;
28  private string $email;
29  private string $dns;
30  private string $description;
31  private string $participantname;
32  private bool $is_self;
33 
35 
36  public function __construct(object $json_obj, int $a_cid)
37  {
38  $this->cid = $a_cid;
39  $this->read($json_obj);
40  }
41 
45  public function getCommunityId(): int
46  {
47  return $this->cid;
48  }
49 
53  public function getMID(): int
54  {
55  return $this->mid;
56  }
57 
61  public function getEmail(): string
62  {
63  return $this->email;
64  }
65 
66 
70  public function getDNS(): string
71  {
72  return $this->dns;
73  }
74 
78  public function getDescription(): string
79  {
80  return $this->description;
81  }
82 
86  public function getParticipantName(): string
87  {
89  }
90 
94  public function getPid(): int
95  {
96  return $this->pid;
97  }
98 
102  public function isSelf(): bool
103  {
104  return $this->is_self;
105  }
106 
112  {
113  return $this->org;
114  }
115 
119  private function read(object $json_obj): void
120  {
121  $this->pid = $json_obj->pid;
122  $this->mid = $json_obj->mid;
123  $this->email = $json_obj->email;
124  $this->dns = $json_obj->dns;
125  $this->description = $json_obj->description;
126 
127  $this->participantname = $json_obj->name;
128  $this->is_self = $json_obj->itsyou;
129 
130  $this->org = new ilECSOrganisation();
131  if (is_object($json_obj->org)) {
132  $this->org->loadFromJson($json_obj->org);
133  }
134  }
135 }
read(object $json_obj)
Read.
__construct(object $json_obj, int $a_cid)
getDescription()
get description
getParticipantName()
get participant name
ilECSOrganisation $org
getCommunityId()
get community id
getOrganisation()
Get organisation.