ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
class.ilECSEnrolmentStatus.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
25{
26 public const STATUS_ACTIVE = 'active';
27 public const STATUS_PENDING = 'pending';
28 public const STATUS_DENIED = 'denied';
29 public const STATUS_REJECTED = 'rejected';
30 public const STATUS_UNSUBSCRIBED = 'unsubscribed';
31 public const STATUS_ACCOUNT_DEACTIVATED = 'account_deactivated';
32
33 public const ID_EPPN = 'ecs_ePPN';
34 public const ID_LOGIN_UID = 'ecs_loginUID';
35 public const ID_LOGIN = 'ecs_login';
36 public const ID_UID = 'ecs_uid';
37 public const ID_EMAIL = 'ecs_email';
38 public const ID_PERSONAL_UNIQUE_CODE = 'ecs_PersonalUniqueCode';
39 public const ID_CUSTOM = 'ecs_custom';
40
41
42 // json fields
43 public string $url = '';
44 public string $id = '';
45 public string $personID = '';
46 public string $personIDtype = '';
47 public string $status = '';
48
49
50 public function __construct()
51 {
52 }
53
54 public function setUrl(string $a_url): void
55 {
56 $this->url = $a_url;
57 }
58
59 public function getUrl(): string
60 {
61 return $this->url;
62 }
63
64 public function setId(string $a_id): void
65 {
66 $this->id = $a_id;
67 }
68
69 public function getId(): string
70 {
71 return $this->id;
72 }
73
74 public function setPersonId(string $a_person): void
75 {
76 $this->personID = $a_person;
77 }
78
79 public function getPersonId(): string
80 {
81 return $this->personID;
82 }
83
84 public function setPersonIdType(string $a_type): void
85 {
86 $this->personIDtype = $a_type;
87 }
88
89 public function getPersonIdType(): string
90 {
92 }
93
94 public function setStatus(string $a_status): void
95 {
96 $this->status = $a_status;
97 }
98
99 public function getStatus(): string
100 {
101 return $this->status;
102 }
103
104 public function loadFromJson(object $json): void
105 {
106 $this->setId($json->id);
107 $this->setPersonId($json->personID);
108 $this->setPersonIdType($json->personIDtype);
109 $this->setUrl($json->url);
110 $this->setStatus($json->status);
111 }
112}
Presentation of ecs enrolment status.