ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Base class for course and group participant. More...
Public Member Functions | |
getUserId () | |
get user id More... | |
isBlocked () | |
isContact () | |
Check if user is contact for current object. More... | |
isAssigned () | |
isMember () | |
isAdmin () | |
isTutor () | |
isParticipant () | |
getNumberOfMembers () | |
add ($a_usr_id, $a_role) | |
Add user to course/group. More... | |
delete ($a_usr_id) | |
Drop user from all roles. More... | |
deleteSubscriber ($a_usr_id) | |
Delete subsciber. More... | |
addDesktopItem ($a_usr_id) | |
Add desktop item. More... | |
dropDesktopItem ($a_usr_id) | |
Drop desktop item. More... | |
updateContact ($a_usr_id, $a_contact) | |
ilDB $ilDB More... | |
updateNotification ($a_usr_id, $a_notification) | |
Update notification status. More... | |
checkLastAdmin ($a_usr_ids) | |
Check if user for deletion are last admins. More... | |
Static Public Member Functions | |
static | updateMemberRoles ($a_obj_id, $a_usr_id, $a_role_id, $a_status) |
Update member roles ilDB $ilDB. More... | |
static | getMembershipRoleType ($a_role_id) |
static | lookupStatusByMembershipRoleType ($a_obj_id, $a_usr_id, $a_membership_role_type) |
lookup assignment status ilDB $ilDB More... | |
Data Fields | |
const | MEMBERSHIP_ADMIN = 1 |
const | MEMBERSHIP_TUTOR = 2 |
const | MEMBERSHIP_MEMBER = 3 |
Protected Member Functions | |
__construct ($a_component_name, $a_obj_id, $a_usr_id) | |
Singleton Constructor. More... | |
getComponent () | |
Get component name Used for event handling. More... | |
readParticipant () | |
Read participant. More... | |
readParticipantStatus () | |
Read participant status ilDB $ilDB. More... | |
Protected Attributes | |
$type = '' | |
Private Attributes | |
$obj_id = 0 | |
$usr_id = 0 | |
$ref_id = 0 | |
$component = '' | |
$participants = false | |
$admins = false | |
$tutors = false | |
$members = false | |
$numMembers = null | |
$member_roles = [] | |
$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 65 of file class.ilParticipant.php.
References $DIC, $ilDB, $lng, ilObject\_getAllReferences(), ilObject\_lookupType(), readParticipant(), and readParticipantStatus().
ilParticipant::add | ( | $a_usr_id, | |
$a_role | |||
) |
Add user to course/group.
public
int | user id |
int | role IL_CRS_ADMIN || IL_CRS_TUTOR || IL_CRS_MEMBER |
global ilRbacReview $rbacreview
Definition at line 407 of file class.ilParticipant.php.
References $DIC, $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 525 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 621 of file class.ilParticipant.php.
References $data, $DIC, $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 471 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, dropDesktopItem(), and getComponent().
ilParticipant::deleteSubscriber | ( | $a_usr_id | ) |
ilParticipant::dropDesktopItem | ( | $a_usr_id | ) |
Drop desktop item.
public
int | usr_id |
Definition at line 540 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 228 of file class.ilParticipant.php.
References $component.
Referenced by add(), and delete().
|
static |
type | $a_role_id |
Definition at line 171 of file class.ilParticipant.php.
References $title, and ilObject\_lookupTitle().
ilParticipant::getNumberOfMembers | ( | ) |
ilParticipant::getUserId | ( | ) |
get user id
Definition at line 237 of file class.ilParticipant.php.
References $usr_id.
Referenced by isBlocked(), isContact(), and readParticipantStatus().
ilParticipant::isAdmin | ( | ) |
ilParticipant::isAssigned | ( | ) |
ilParticipant::isBlocked | ( | ) |
Definition at line 242 of file class.ilParticipant.php.
References getUserId().
ilParticipant::isContact | ( | ) |
Check if user is contact for current object.
Definition at line 252 of file class.ilParticipant.php.
References getUserId().
ilParticipant::isMember | ( | ) |
ilParticipant::isParticipant | ( | ) |
ilParticipant::isTutor | ( | ) |
|
static |
lookup assignment status ilDB $ilDB
type | $a_obj_id | |
type | $a_usr_id | |
type | $a_membership_role_type |
Definition at line 197 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
protected |
Read participant.
Definition at line 300 of file class.ilParticipant.php.
References $DIC, $title, $users, 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 375 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getUserId().
Referenced by __construct().
ilParticipant::updateContact | ( | $a_usr_id, | |
$a_contact | |||
) |
ilDB $ilDB
type | $a_usr_id | |
type | $a_contact |
Definition at line 557 of file class.ilParticipant.php.
|
static |
Update member roles ilDB $ilDB.
type | $a_obj_id | |
type | $a_role_id | |
type | $a_status |
Definition at line 91 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilGroupAppEventListener\handleUserAssignments(), and ilCourseAppEventListener\handleUserAssignments().
ilParticipant::updateNotification | ( | $a_usr_id, | |
$a_notification | |||
) |
|
private |
Definition at line 49 of file class.ilParticipant.php.
Referenced by isAdmin().
|
private |
Definition at line 46 of file class.ilParticipant.php.
Referenced by getComponent().
|
private |
Definition at line 55 of file class.ilParticipant.php.
|
private |
Definition at line 51 of file class.ilParticipant.php.
Referenced by isMember().
|
private |
Definition at line 53 of file class.ilParticipant.php.
Referenced by getNumberOfMembers().
|
private |
Definition at line 41 of file class.ilParticipant.php.
|
private |
Definition at line 48 of file class.ilParticipant.php.
Referenced by isAssigned(), and isParticipant().
|
private |
Definition at line 57 of file class.ilParticipant.php.
|
private |
Definition at line 44 of file class.ilParticipant.php.
|
private |
Definition at line 50 of file class.ilParticipant.php.
Referenced by isTutor().
|
protected |
Definition at line 43 of file class.ilParticipant.php.
|
private |
Definition at line 42 of file class.ilParticipant.php.
Referenced by getUserId().
const ilParticipant::MEMBERSHIP_ADMIN = 1 |
Definition at line 36 of file class.ilParticipant.php.
const ilParticipant::MEMBERSHIP_MEMBER = 3 |
Definition at line 38 of file class.ilParticipant.php.
const ilParticipant::MEMBERSHIP_TUTOR = 2 |
Definition at line 37 of file class.ilParticipant.php.