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