ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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().

+ 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.

◆ getMembershipStatusText()

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

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

244 {
245 global $DIC;
246
247 switch ($status) {
249 return $DIC->language()->txt('mst_memb_status_waitinglist');
250 break;
251
253 return $DIC->language()->txt('mst_memb_status_registered');
254 break;
255
257 return $DIC->language()->txt('mst_memb_status_requested');
258 break;
259 }
260
261 return "";
262 }
global $DIC
Definition: saml.php:7

References $DIC, MEMBERSHIP_STATUS_REGISTERED, MEMBERSHIP_STATUS_REQUESTED, and MEMBERSHIP_STATUS_WAITINGLIST.

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

+ Here is the caller graph for this function:

◆ getUsrEmail()

ilMStListCourse::getUsrEmail ( )
Returns
string

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

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

References $usr_email.

◆ getUsrFirstname()

ilMStListCourse::getUsrFirstname ( )
Returns
string

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

164 {
166 }

References $usr_firstname.

◆ getUsrId()

ilMStListCourse::getUsrId ( )
Returns
int

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

92 {
93 return $this->usr_id;
94 }

References $usr_id.

Referenced by ilMStListCoursesTableGUI\getFieldValuesForExport().

+ Here is the caller graph for this function:

◆ getUsrLastname()

ilMStListCourse::getUsrLastname ( )
Returns
string

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

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

References $usr_lastname.

◆ getUsrLogin()

ilMStListCourse::getUsrLogin ( )
Returns
string

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

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

References $usr_login.

◆ getUsrLpStatus()

ilMStListCourse::getUsrLpStatus ( )
Returns
int

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

128 {
130 }

References $usr_lp_status.

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

+ Here is the caller graph for this function:

◆ getUsrRegStatus()

ilMStListCourse::getUsrRegStatus ( )
Returns
int

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

110 {
112 }

References $usr_reg_status.

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

+ 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.

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

References $crs_ref_id.

◆ setCrsTitle()

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

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

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

References $crs_title.

◆ setUsrEmail()

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

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

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

References $usr_email.

◆ setUsrFirstname()

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

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

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

References $usr_firstname.

◆ setUsrId()

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

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

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

References $usr_id.

◆ setUsrLastname()

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

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

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

References $usr_lastname.

◆ setUsrLogin()

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

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

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

References $usr_login.

◆ setUsrLpStatus()

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

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

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

References $usr_lp_status.

◆ setUsrRegStatus()

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

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

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

References $usr_reg_status.

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: