|
ILIAS
release_8 Revision v8.24
|
Base class for course and group participant. More...
Inheritance diagram for ilParticipant:
Collaboration diagram for ilParticipant:Public Member Functions | |
| getUserId () | |
| isBlocked () | |
| isContact () | |
| Check if user is contact for current object. More... | |
| isAssigned () | |
| isMember () | |
| isAdmin () | |
| isTutor () | |
| isParticipant () | |
| getNumberOfMembers () | |
| add (int $a_usr_id, int $a_role) | |
| delete (int $a_usr_id) | |
| deleteSubscriber (int $a_usr_id) | |
| addRecommendation ($a_usr_id) | |
| updateContact (int $a_usr_id, bool $a_contact) | |
| updateNotification (int $a_usr_id, bool $a_notification) | |
| checkLastAdmin (array $a_usr_ids) | |
Static Public Member Functions | |
| static | updateMemberRoles (int $a_obj_id, int $a_usr_id, int $a_role_id, int $a_status) |
| static | getMembershipRoleType (int $a_role_id) |
| static | lookupStatusByMembershipRoleType (int $a_obj_id, int $a_usr_id, int $a_membership_role_type) |
Protected Member Functions | |
| __construct (string $a_component_name, int $a_obj_id, int $a_usr_id) | |
| getComponent () | |
| Get component name Used for event handling. More... | |
| readParticipant () | |
| readParticipantStatus () | |
Protected Attributes | |
| const | MEMBERSHIP_ADMIN = 1 |
| const | MEMBERSHIP_TUTOR = 2 |
| const | MEMBERSHIP_MEMBER = 3 |
| string | $type = '' |
| ilRecommendedContentManager | $recommended_content_manager |
| ilDBInterface | $db |
| ilRbacReview | $rbacReview |
| ilRbacAdmin | $rbacAdmin |
| ilObjectDataCache | $objectDataCache |
| ilAppEventHandler | $eventHandler |
Private Attributes | |
| int | $obj_id = 0 |
| int | $usr_id = 0 |
| int | $ref_id = 0 |
| string | $component = '' |
| array | $roles = [] |
| array | $role_data = [] |
| bool | $participants = false |
| bool | $admins = false |
| bool | $tutors = false |
| bool | $members = false |
| int | $numMembers = null |
| array | $member_roles = [] |
| array | $participants_status = array() |
Base class for course and group participant.
Definition at line 26 of file class.ilParticipant.php.
|
protected |
Definition at line 57 of file class.ilParticipant.php.
References $DIC, ilObject\_getAllReferences(), ilObject\_lookupType(), readParticipant(), and readParticipantStatus().
Here is the call graph for this function:| ilParticipant::add | ( | int | $a_usr_id, |
| int | $a_role | ||
| ) |
Definition at line 336 of file class.ilParticipant.php.
References ilWaitingList\deleteUserEntry(), ilParticipants\IL_CRS_ADMIN, ilParticipants\IL_CRS_MEMBER, ilParticipants\IL_CRS_TUTOR, ilParticipants\IL_GRP_ADMIN, and ilParticipants\IL_GRP_MEMBER.
Here is the call graph for this function:| ilParticipant::addRecommendation | ( | $a_usr_id | ) |
Definition at line 409 of file class.ilParticipant.php.
| ilParticipant::checkLastAdmin | ( | array | $a_usr_ids | ) |
Definition at line 453 of file class.ilParticipant.php.
References $data, $query, $res, ilParticipants\IL_CRS_ADMIN, and ilParticipants\IL_GRP_ADMIN.
| ilParticipant::delete | ( | int | $a_usr_id | ) |
Definition at line 379 of file class.ilParticipant.php.
| ilParticipant::deleteSubscriber | ( | int | $a_usr_id | ) |
Definition at line 401 of file class.ilParticipant.php.
|
protected |
Get component name Used for event handling.
Definition at line 203 of file class.ilParticipant.php.
|
static |
Definition at line 154 of file class.ilParticipant.php.
References ilObject\_lookupTitle(), MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by updateMemberRoles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipant::getNumberOfMembers | ( | ) |
Definition at line 251 of file class.ilParticipant.php.
| ilParticipant::getUserId | ( | ) |
Definition at line 208 of file class.ilParticipant.php.
| ilParticipant::isAdmin | ( | ) |
Definition at line 236 of file class.ilParticipant.php.
| ilParticipant::isAssigned | ( | ) |
Definition at line 226 of file class.ilParticipant.php.
| ilParticipant::isBlocked | ( | ) |
Definition at line 213 of file class.ilParticipant.php.
| ilParticipant::isContact | ( | ) |
Check if user is contact for current object.
Definition at line 221 of file class.ilParticipant.php.
| ilParticipant::isMember | ( | ) |
Definition at line 231 of file class.ilParticipant.php.
| ilParticipant::isParticipant | ( | ) |
Definition at line 246 of file class.ilParticipant.php.
| ilParticipant::isTutor | ( | ) |
Definition at line 241 of file class.ilParticipant.php.
|
static |
Definition at line 172 of file class.ilParticipant.php.
References MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by updateMemberRoles().
Here is the caller graph for this function:
|
protected |
Definition at line 259 of file class.ilParticipant.php.
References ilParticipants\IL_CRS_ADMIN, ilParticipants\IL_CRS_MEMBER, ilParticipants\IL_CRS_TUTOR, ilParticipants\IL_GRP_ADMIN, and ilParticipants\IL_GRP_MEMBER.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 320 of file class.ilParticipant.php.
References $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
Here is the caller graph for this function:| ilParticipant::updateContact | ( | int | $a_usr_id, |
| bool | $a_contact | ||
| ) |
Definition at line 416 of file class.ilParticipant.php.
|
static |
Definition at line 79 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, getMembershipRoleType(), lookupStatusByMembershipRoleType(), MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by ilCourseAppEventListener\handleUserAssignments(), and ilGroupAppEventListener\handleUserAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipant::updateNotification | ( | int | $a_usr_id, |
| bool | $a_notification | ||
| ) |
Definition at line 427 of file class.ilParticipant.php.
|
private |
Definition at line 42 of file class.ilParticipant.php.
|
private |
Definition at line 37 of file class.ilParticipant.php.
|
protected |
Definition at line 51 of file class.ilParticipant.php.
|
protected |
Definition at line 55 of file class.ilParticipant.php.
|
private |
Definition at line 47 of file class.ilParticipant.php.
|
private |
Definition at line 44 of file class.ilParticipant.php.
|
private |
Definition at line 46 of file class.ilParticipant.php.
|
private |
Definition at line 32 of file class.ilParticipant.php.
|
protected |
Definition at line 54 of file class.ilParticipant.php.
|
private |
Definition at line 41 of file class.ilParticipant.php.
|
private |
Definition at line 48 of file class.ilParticipant.php.
|
protected |
Definition at line 53 of file class.ilParticipant.php.
|
protected |
Definition at line 52 of file class.ilParticipant.php.
|
protected |
Definition at line 50 of file class.ilParticipant.php.
|
private |
Definition at line 35 of file class.ilParticipant.php.
|
private |
Definition at line 40 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.
|
protected |
Definition at line 34 of file class.ilParticipant.php.
|
private |
Definition at line 33 of file class.ilParticipant.php.
|
protected |
Definition at line 28 of file class.ilParticipant.php.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().
|
protected |
Definition at line 30 of file class.ilParticipant.php.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().
|
protected |
Definition at line 29 of file class.ilParticipant.php.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().