ILIAS
Release_5_0_x_branch Revision 61816
|
Base class for course and group participant. More...
Public Member Functions | |
getUserId () | |
get user id | |
isBlocked () | |
isAssigned () | |
isMember () | |
isAdmin () | |
isTutor () | |
isParticipant () | |
getNumberOfMembers () | |
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_component_name, $a_obj_id, $a_usr_id) | |
Singleton Constructor. | |
getComponent () | |
Get component name Used for event handling. | |
readParticipant () | |
Read participant. | |
readParticipantStatus () | |
Read participant status ilDB $ilDB. |
Protected Attributes | |
$type = '' |
Private Attributes | |
$obj_id = 0 | |
$usr_id = 0 | |
$ref_id = 0 | |
$component = '' | |
$participants = false | |
$admins = false | |
$tutors = false | |
$members = false | |
$numMembers = 0 | |
$participants_status = array() |
Base class for course and group participant.
Definition at line 34 of file class.ilParticipant.php.
|
protected |
Singleton Constructor.
protected
int | obj_id of container |
Definition at line 58 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 243 of file class.ilParticipant.php.
References $ilLog, addDesktopItem(), deleteSubscriber(), ilWaitingList\deleteUserEntry(), getComponent(), 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 353 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 427 of file class.ilParticipant.php.
References $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 304 of file class.ilParticipant.php.
References $ilDB, $query, $res, and dropDesktopItem().
ilParticipant::deleteSubscriber | ( | $a_usr_id | ) |
Delete subsciber.
public
Definition at line 334 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 369 of file class.ilParticipant.php.
References ilObjUser\_dropDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by delete().
|
protected |
Get component name Used for event handling.
Definition at line 79 of file class.ilParticipant.php.
References $component.
Referenced by add().
ilParticipant::getNumberOfMembers | ( | ) |
Definition at line 123 of file class.ilParticipant.php.
References $numMembers.
ilParticipant::getUserId | ( | ) |
get user id
Definition at line 88 of file class.ilParticipant.php.
References $usr_id.
Referenced by isBlocked(), and readParticipantStatus().
ilParticipant::isAdmin | ( | ) |
Definition at line 108 of file class.ilParticipant.php.
References $admins.
ilParticipant::isAssigned | ( | ) |
Definition at line 98 of file class.ilParticipant.php.
References $participants.
ilParticipant::isBlocked | ( | ) |
Definition at line 93 of file class.ilParticipant.php.
References getUserId().
ilParticipant::isMember | ( | ) |
Definition at line 103 of file class.ilParticipant.php.
References $members.
ilParticipant::isParticipant | ( | ) |
Definition at line 118 of file class.ilParticipant.php.
References $participants.
ilParticipant::isTutor | ( | ) |
Definition at line 113 of file class.ilParticipant.php.
References $tutors.
|
protected |
Read participant.
Definition at line 133 of file class.ilParticipant.php.
References $ilLog, 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 215 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 387 of file class.ilParticipant.php.
References $ilDB, $query, and $res.
|
private |
Definition at line 44 of file class.ilParticipant.php.
Referenced by isAdmin().
|
private |
Definition at line 41 of file class.ilParticipant.php.
Referenced by getComponent().
|
private |
Definition at line 46 of file class.ilParticipant.php.
Referenced by isMember().
|
private |
Definition at line 48 of file class.ilParticipant.php.
Referenced by getNumberOfMembers().
|
private |
Definition at line 36 of file class.ilParticipant.php.
|
private |
Definition at line 43 of file class.ilParticipant.php.
Referenced by isAssigned(), and isParticipant().
|
private |
Definition at line 50 of file class.ilParticipant.php.
|
private |
Definition at line 39 of file class.ilParticipant.php.
|
private |
Definition at line 45 of file class.ilParticipant.php.
Referenced by isTutor().
|
protected |
Definition at line 38 of file class.ilParticipant.php.
|
private |
Definition at line 37 of file class.ilParticipant.php.
Referenced by getUserId().