ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMStListCourse Class Reference

Class ilMStListCourse. More...

+ Collaboration diagram for ilMStListCourse:

Public Member Functions

 getCrsRefId ()
 
 setCrsRefId ($crs_ref_id)
 
 getCrsTitle ()
 
 setCrsTitle ($crs_title)
 
 getUsrId ()
 
 setUsrId ($usr_id)
 
 getUsrRegStatus ()
 
 setUsrRegStatus ($usr_reg_status)
 
 getUsrLpStatus ()
 
 setUsrLpStatus ($usr_lp_status)
 
 getUsrLogin ()
 
 setUsrLogin ($usr_login)
 
 getUsrFirstname ()
 
 setUsrFirstname ($usr_firstname)
 
 getUsrLastname ()
 
 setUsrLastname ($usr_lastname)
 
 getUsrEmail ()
 
 setUsrEmail ($usr_email)
 
 returnIlUserObj ()
 
 returnIlCourseObj ()
 

Static Public Member Functions

static getMembershipStatusText ($status)
 

Data Fields

const MEMBERSHIP_STATUS_REQUESTED = 1
 
const MEMBERSHIP_STATUS_WAITINGLIST = 2
 
const MEMBERSHIP_STATUS_REGISTERED = 3
 

Protected Attributes

 $crs_ref_id
 
 $crs_title
 
 $usr_id
 
 $usr_reg_status
 
 $usr_lp_status
 
 $usr_login
 
 $usr_firstname
 
 $usr_lastname
 
 $usr_email
 

Detailed Description

Member Function Documentation

◆ getCrsRefId()

ilMStListCourse::getCrsRefId ( )
Returns
int

Definition at line 55 of file class.ilMStListCourse.php.

References $crs_ref_id.

Referenced by ilMyStaffGUI\getUserLpStatusAsHtml(), and ilMyStaffGUI\getUserLpStatusAsText().

56  {
57  return $this->crs_ref_id;
58  }
+ Here is the caller graph for this function:

◆ getCrsTitle()

ilMStListCourse::getCrsTitle ( )
Returns
string

Definition at line 73 of file class.ilMStListCourse.php.

References $crs_title.

74  {
75  return $this->crs_title;
76  }

◆ getMembershipStatusText()

static ilMStListCourse::getMembershipStatusText (   $status)
static
Parameters
int$status
Returns
string

Definition at line 243 of file class.ilMStListCourse.php.

References $DIC.

Referenced by ilMStShowUserCoursesTableGUI\fillRow(), ilMStListCoursesTableGUI\fillRow(), ilMStShowUserCoursesTableGUI\getFieldValuesForExport(), and ilMStListCoursesTableGUI\getFieldValuesForExport().

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  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ getUsrEmail()

ilMStListCourse::getUsrEmail ( )
Returns
string

Definition at line 199 of file class.ilMStListCourse.php.

References $usr_email.

200  {
201  return $this->usr_email;
202  }

◆ getUsrFirstname()

ilMStListCourse::getUsrFirstname ( )
Returns
string

Definition at line 163 of file class.ilMStListCourse.php.

References $usr_firstname.

164  {
165  return $this->usr_firstname;
166  }

◆ getUsrId()

ilMStListCourse::getUsrId ( )
Returns
int

Definition at line 91 of file class.ilMStListCourse.php.

References $usr_id.

Referenced by ilMStListCoursesTableGUI\getFieldValuesForExport().

92  {
93  return $this->usr_id;
94  }
+ Here is the caller graph for this function:

◆ getUsrLastname()

ilMStListCourse::getUsrLastname ( )
Returns
string

Definition at line 181 of file class.ilMStListCourse.php.

References $usr_lastname.

182  {
183  return $this->usr_lastname;
184  }

◆ getUsrLogin()

ilMStListCourse::getUsrLogin ( )
Returns
string

Definition at line 145 of file class.ilMStListCourse.php.

References $usr_login.

146  {
147  return $this->usr_login;
148  }

◆ getUsrLpStatus()

ilMStListCourse::getUsrLpStatus ( )
Returns
int

Definition at line 127 of file class.ilMStListCourse.php.

References $usr_lp_status.

Referenced by ilMyStaffGUI\getUserLpStatusAsHtml(), and ilMyStaffGUI\getUserLpStatusAsText().

128  {
129  return $this->usr_lp_status;
130  }
+ Here is the caller graph for this function:

◆ getUsrRegStatus()

ilMStListCourse::getUsrRegStatus ( )
Returns
int

Definition at line 109 of file class.ilMStListCourse.php.

References $usr_reg_status.

Referenced by ilMStShowUserCoursesTableGUI\getFieldValuesForExport(), and ilMStListCoursesTableGUI\getFieldValuesForExport().

110  {
111  return $this->usr_reg_status;
112  }
+ Here is the caller graph for this function:

◆ returnIlCourseObj()

ilMStListCourse::returnIlCourseObj ( )
Returns
ilObjCourse

Definition at line 230 of file class.ilMStListCourse.php.

231  {
232  $il_course_obj = new ilObjCourse($this->crs_ref_id);
233 
234  return $il_course_obj;
235  }
Class ilObjCourse.

◆ returnIlUserObj()

ilMStListCourse::returnIlUserObj ( )
Returns
ilObjUser

Definition at line 219 of file class.ilMStListCourse.php.

220  {
221  $il_user_obj = new ilObjUser($this->usr_id);
222 
223  return $il_user_obj;
224  }

◆ setCrsRefId()

ilMStListCourse::setCrsRefId (   $crs_ref_id)
Parameters
int$crs_ref_id

Definition at line 64 of file class.ilMStListCourse.php.

References $crs_ref_id.

65  {
66  $this->crs_ref_id = $crs_ref_id;
67  }

◆ setCrsTitle()

ilMStListCourse::setCrsTitle (   $crs_title)
Parameters
string$crs_title

Definition at line 82 of file class.ilMStListCourse.php.

References $crs_title.

83  {
84  $this->crs_title = $crs_title;
85  }

◆ setUsrEmail()

ilMStListCourse::setUsrEmail (   $usr_email)
Parameters
string$usr_email

Definition at line 208 of file class.ilMStListCourse.php.

References $usr_email.

209  {
210  $this->usr_email = $usr_email;
211  }

◆ setUsrFirstname()

ilMStListCourse::setUsrFirstname (   $usr_firstname)
Parameters
string$usr_firstname

Definition at line 172 of file class.ilMStListCourse.php.

References $usr_firstname.

173  {
174  $this->usr_firstname = $usr_firstname;
175  }

◆ setUsrId()

ilMStListCourse::setUsrId (   $usr_id)
Parameters
int$usr_id

Definition at line 100 of file class.ilMStListCourse.php.

References $usr_id.

101  {
102  $this->usr_id = $usr_id;
103  }

◆ setUsrLastname()

ilMStListCourse::setUsrLastname (   $usr_lastname)
Parameters
string$usr_lastname

Definition at line 190 of file class.ilMStListCourse.php.

References $usr_lastname.

191  {
192  $this->usr_lastname = $usr_lastname;
193  }

◆ setUsrLogin()

ilMStListCourse::setUsrLogin (   $usr_login)
Parameters
string$usr_login

Definition at line 154 of file class.ilMStListCourse.php.

References $usr_login.

155  {
156  $this->usr_login = $usr_login;
157  }

◆ setUsrLpStatus()

ilMStListCourse::setUsrLpStatus (   $usr_lp_status)
Parameters
int$usr_lp_status

Definition at line 136 of file class.ilMStListCourse.php.

References $usr_lp_status.

137  {
138  $this->usr_lp_status = $usr_lp_status;
139  }

◆ setUsrRegStatus()

ilMStListCourse::setUsrRegStatus (   $usr_reg_status)
Parameters
int$usr_reg_status

Definition at line 118 of file class.ilMStListCourse.php.

References $usr_reg_status.

119  {
120  $this->usr_reg_status = $usr_reg_status;
121  }

Field Documentation

◆ $crs_ref_id

ilMStListCourse::$crs_ref_id
protected

Definition at line 17 of file class.ilMStListCourse.php.

Referenced by getCrsRefId(), and setCrsRefId().

◆ $crs_title

ilMStListCourse::$crs_title
protected

Definition at line 21 of file class.ilMStListCourse.php.

Referenced by getCrsTitle(), and setCrsTitle().

◆ $usr_email

ilMStListCourse::$usr_email
protected

Definition at line 49 of file class.ilMStListCourse.php.

Referenced by getUsrEmail(), and setUsrEmail().

◆ $usr_firstname

ilMStListCourse::$usr_firstname
protected

Definition at line 41 of file class.ilMStListCourse.php.

Referenced by getUsrFirstname(), and setUsrFirstname().

◆ $usr_id

ilMStListCourse::$usr_id
protected

Definition at line 25 of file class.ilMStListCourse.php.

Referenced by getUsrId(), and setUsrId().

◆ $usr_lastname

ilMStListCourse::$usr_lastname
protected

Definition at line 45 of file class.ilMStListCourse.php.

Referenced by getUsrLastname(), and setUsrLastname().

◆ $usr_login

ilMStListCourse::$usr_login
protected

Definition at line 37 of file class.ilMStListCourse.php.

Referenced by getUsrLogin(), and setUsrLogin().

◆ $usr_lp_status

ilMStListCourse::$usr_lp_status
protected

Definition at line 33 of file class.ilMStListCourse.php.

Referenced by getUsrLpStatus(), and setUsrLpStatus().

◆ $usr_reg_status

ilMStListCourse::$usr_reg_status
protected

Definition at line 29 of file class.ilMStListCourse.php.

Referenced by getUsrRegStatus(), and setUsrRegStatus().

◆ MEMBERSHIP_STATUS_REGISTERED

const ilMStListCourse::MEMBERSHIP_STATUS_REGISTERED = 3

◆ MEMBERSHIP_STATUS_REQUESTED

const ilMStListCourse::MEMBERSHIP_STATUS_REQUESTED = 1

◆ MEMBERSHIP_STATUS_WAITINGLIST

const ilMStListCourse::MEMBERSHIP_STATUS_WAITINGLIST = 2

The documentation for this class was generated from the following file: