ILIAS
Release_4_2_x_branch Revision 61807
|
Base class for course and group participants. More...
Public Member Functions | |
getUserId () | |
get user id | |
isBlocked () | |
isAssigned () | |
isMember () | |
isAdmin () | |
isTutor () | |
isParticipant () | |
add ($a_usr_id, $a_role) | |
Add user to course. | |
delete ($a_usr_id) | |
Drop user from all roles. | |
deleteSubscriber ($a_usr_id) | |
Delete subsciber. | |
addDesktopItem ($a_usr_id) | |
Add desktop item. | |
dropDesktopItem ($a_usr_id) | |
Drop desktop item. | |
updateNotification ($a_usr_id, $a_notification) | |
Update notification status. | |
checkLastAdmin ($a_usr_ids) | |
Check if user for deletion are last admins. |
Protected Member Functions | |
__construct ($a_obj_id, $a_usr_id) | |
Singleton Constructor. | |
readParticipant () | |
Read participant. | |
readParticipantStatus () | |
Read participant status ilDB $ilDB. |
Private Attributes | |
$obj_id = 0 | |
$usr_id = 0 | |
$type = '' | |
$ref_id = 0 | |
$participants = false | |
$admins = false | |
$tutors = false | |
$members = false | |
$participants_status = array() |
Base class for course and group participants.
Definition at line 34 of file class.ilParticipant.php.
|
protected |
Singleton Constructor.
protected
int | obj_id of container |
Reimplemented in ilCourseParticipant.
Definition at line 54 of file class.ilParticipant.php.
References $ilDB, $lng, ilObject\_getAllReferences(), ilObject\_lookupType(), readParticipant(), and readParticipantStatus().
ilParticipant::add | ( | $a_usr_id, | |
$a_role | |||
) |
Add user to course.
public
int | user id |
int | role IL_CRS_ADMIN || IL_CRS_TUTOR || IL_CRS_MEMBER |
global ilRbacReview $rbacreview
Definition at line 225 of file class.ilParticipant.php.
References $ilLog, addDesktopItem(), deleteSubscriber(), ilWaitingList\deleteUserEntry(), IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, and IL_GRP_MEMBER.
ilParticipant::addDesktopItem | ( | $a_usr_id | ) |
Add desktop item.
public
int | usr_id |
Definition at line 331 of file class.ilParticipant.php.
References ilObjUser\_addDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by add().
ilParticipant::checkLastAdmin | ( | $a_usr_ids | ) |
Check if user for deletion are last admins.
public
array | array of user ids for deletion |
Definition at line 405 of file class.ilParticipant.php.
References $data, $ilDB, $query, $res, IL_CRS_ADMIN, and IL_GRP_ADMIN.
ilParticipant::delete | ( | $a_usr_id | ) |
Drop user from all roles.
public
int | usr_id |
Definition at line 283 of file class.ilParticipant.php.
References $ilDB, $query, $res, and dropDesktopItem().
ilParticipant::deleteSubscriber | ( | $a_usr_id | ) |
Delete subsciber.
public
Definition at line 312 of file class.ilParticipant.php.
References $ilDB, $query, and $res.
Referenced by add().
ilParticipant::dropDesktopItem | ( | $a_usr_id | ) |
Drop desktop item.
public
int | usr_id |
Definition at line 347 of file class.ilParticipant.php.
References ilObjUser\_dropDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by delete().
ilParticipant::getUserId | ( | ) |
get user id
Definition at line 72 of file class.ilParticipant.php.
References $usr_id.
Referenced by isBlocked(), and readParticipantStatus().
ilParticipant::isAdmin | ( | ) |
Definition at line 92 of file class.ilParticipant.php.
References $admins.
ilParticipant::isAssigned | ( | ) |
Definition at line 82 of file class.ilParticipant.php.
References $participants.
ilParticipant::isBlocked | ( | ) |
Definition at line 77 of file class.ilParticipant.php.
References getUserId().
ilParticipant::isMember | ( | ) |
Definition at line 87 of file class.ilParticipant.php.
References $members.
ilParticipant::isParticipant | ( | ) |
Definition at line 102 of file class.ilParticipant.php.
References $participants.
ilParticipant::isTutor | ( | ) |
Definition at line 97 of file class.ilParticipant.php.
References $tutors.
|
protected |
Read participant.
Definition at line 112 of file class.ilParticipant.php.
References $ilLog, $title, IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, and IL_GRP_MEMBER.
Referenced by __construct().
|
protected |
Read participant status ilDB $ilDB.
Definition at line 197 of file class.ilParticipant.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getUserId().
Referenced by __construct().
ilParticipant::updateNotification | ( | $a_usr_id, | |
$a_notification | |||
) |
Update notification status.
public
int | usr_id |
bool | passed |
Definition at line 365 of file class.ilParticipant.php.
References $ilDB, $query, and $res.
|
private |
Definition at line 42 of file class.ilParticipant.php.
Referenced by isAdmin().
|
private |
Definition at line 44 of file class.ilParticipant.php.
Referenced by isMember().
|
private |
Definition at line 36 of file class.ilParticipant.php.
|
private |
Definition at line 41 of file class.ilParticipant.php.
Referenced by isAssigned(), and isParticipant().
|
private |
Definition at line 46 of file class.ilParticipant.php.
|
private |
Definition at line 39 of file class.ilParticipant.php.
|
private |
Definition at line 43 of file class.ilParticipant.php.
Referenced by isTutor().
|
private |
Definition at line 38 of file class.ilParticipant.php.
|
private |
Definition at line 37 of file class.ilParticipant.php.
Referenced by getUserId().