ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMStListCourse.php
Go to the documentation of this file.
1 <?php
2 
9 {
17  protected $crs_ref_id;
21  protected $crs_title;
25  protected $usr_id;
29  protected $usr_reg_status;
33  protected $usr_lp_status;
37  protected $usr_login;
41  protected $usr_firstname;
45  protected $usr_lastname;
49  protected $usr_email;
50 
51 
55  public function getCrsRefId()
56  {
57  return $this->crs_ref_id;
58  }
59 
60 
64  public function setCrsRefId($crs_ref_id)
65  {
66  $this->crs_ref_id = $crs_ref_id;
67  }
68 
69 
73  public function getCrsTitle()
74  {
75  return $this->crs_title;
76  }
77 
78 
82  public function setCrsTitle($crs_title)
83  {
84  $this->crs_title = $crs_title;
85  }
86 
87 
91  public function getUsrId()
92  {
93  return $this->usr_id;
94  }
95 
96 
100  public function setUsrId($usr_id)
101  {
102  $this->usr_id = $usr_id;
103  }
104 
105 
109  public function getUsrRegStatus()
110  {
111  return $this->usr_reg_status;
112  }
113 
114 
119  {
120  $this->usr_reg_status = $usr_reg_status;
121  }
122 
123 
127  public function getUsrLpStatus()
128  {
129  return $this->usr_lp_status;
130  }
131 
132 
137  {
138  $this->usr_lp_status = $usr_lp_status;
139  }
140 
141 
145  public function getUsrLogin()
146  {
147  return $this->usr_login;
148  }
149 
150 
154  public function setUsrLogin($usr_login)
155  {
156  $this->usr_login = $usr_login;
157  }
158 
159 
163  public function getUsrFirstname()
164  {
165  return $this->usr_firstname;
166  }
167 
168 
173  {
174  $this->usr_firstname = $usr_firstname;
175  }
176 
177 
181  public function getUsrLastname()
182  {
183  return $this->usr_lastname;
184  }
185 
186 
190  public function setUsrLastname($usr_lastname)
191  {
192  $this->usr_lastname = $usr_lastname;
193  }
194 
195 
199  public function getUsrEmail()
200  {
201  return $this->usr_email;
202  }
203 
204 
208  public function setUsrEmail($usr_email)
209  {
210  $this->usr_email = $usr_email;
211  }
212 
213  //Other
214 
215 
219  public function returnIlUserObj()
220  {
221  $il_user_obj = new ilObjUser($this->usr_id);
222 
223  return $il_user_obj;
224  }
225 
226 
230  public function returnIlCourseObj()
231  {
232  $il_course_obj = new ilObjCourse($this->crs_ref_id);
233 
234  return $il_course_obj;
235  }
236 
237 
243  public static function getMembershipStatusText($status)
244  {
245  global $DIC;
246 
247  switch ($status) {
248  case self::MEMBERSHIP_STATUS_WAITINGLIST:
249  return $DIC->language()->txt('mst_memb_status_waitinglist');
250  break;
251 
252  case self::MEMBERSHIP_STATUS_REGISTERED:
253  return $DIC->language()->txt('mst_memb_status_registered');
254  break;
255 
256  case self::MEMBERSHIP_STATUS_REQUESTED:
257  return $DIC->language()->txt('mst_memb_status_requested');
258  break;
259  }
260 
261  return "";
262  }
263 }
Class ilMStListCourse.
setUsrLastname($usr_lastname)
setUsrFirstname($usr_firstname)
global $DIC
Definition: saml.php:7
setUsrRegStatus($usr_reg_status)
Class ilObjCourse.
static getMembershipStatusText($status)
setUsrLpStatus($usr_lp_status)