ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMStListCourse.php
Go to the documentation of this file.
1<?php
3
5use ilObjUser;
6
13{
21 protected $crs_ref_id;
25 protected $crs_title;
29 protected $usr_id;
33 protected $usr_reg_status;
37 protected $usr_lp_status;
41 protected $usr_login;
45 protected $usr_firstname;
49 protected $usr_lastname;
53 protected $usr_email;
54
55 public function get($prop)
56 {
57 return $this->$prop;
58 }
59
63 public function getCrsRefId()
64 {
65 return $this->crs_ref_id;
66 }
67
68
72 public function setCrsRefId($crs_ref_id)
73 {
74 $this->crs_ref_id = $crs_ref_id;
75 }
76
77
81 public function getCrsTitle()
82 {
83 return $this->crs_title;
84 }
85
86
90 public function setCrsTitle($crs_title)
91 {
92 $this->crs_title = $crs_title;
93 }
94
95
99 public function getUsrId()
100 {
101 return $this->usr_id;
102 }
103
104
108 public function setUsrId($usr_id)
109 {
110 $this->usr_id = $usr_id;
111 }
112
113
117 public function getUsrRegStatus()
118 {
120 }
121
122
127 {
128 $this->usr_reg_status = $usr_reg_status;
129 }
130
131
135 public function getUsrLpStatus()
136 {
138 }
139
140
145 {
146 $this->usr_lp_status = $usr_lp_status;
147 }
148
149
153 public function getUsrLogin()
154 {
155 return $this->usr_login;
156 }
157
158
162 public function setUsrLogin($usr_login)
163 {
164 $this->usr_login = $usr_login;
165 }
166
167
171 public function getUsrFirstname()
172 {
174 }
175
176
181 {
182 $this->usr_firstname = $usr_firstname;
183 }
184
185
189 public function getUsrLastname()
190 {
191 return $this->usr_lastname;
192 }
193
194
199 {
200 $this->usr_lastname = $usr_lastname;
201 }
202
203
207 public function getUsrEmail()
208 {
209 return $this->usr_email;
210 }
211
212
216 public function setUsrEmail($usr_email)
217 {
218 $this->usr_email = $usr_email;
219 }
220
221 //Other
222
223
227 public function returnIlUserObj()
228 {
229 $il_user_obj = new ilObjUser($this->usr_id);
230
231 return $il_user_obj;
232 }
233
234
238 public function returnIlCourseObj()
239 {
240 $il_course_obj = new ilObjCourse($this->crs_ref_id);
241
242 return $il_course_obj;
243 }
244
245
251 public static function getMembershipStatusText($status)
252 {
253 global $DIC;
254
255 switch ($status) {
257 return $DIC->language()->txt('mst_memb_status_waitinglist');
258 break;
259
261 return $DIC->language()->txt('mst_memb_status_registered');
262 break;
263
265 return $DIC->language()->txt('mst_memb_status_requested');
266 break;
267 }
268
269 return "";
270 }
271}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjCourse.
$DIC
Definition: xapitoken.php:46