|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Base class for course and group participant. More...
Inheritance diagram for ilParticipant:
Collaboration diagram for ilParticipant: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) | |
| @global 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 @global ilDB $ilDB. More... | |
| static | getMembershipRoleType ($a_role_id) |
| static | lookupStatusByMembershipRoleType ($a_obj_id, $a_usr_id, $a_membership_role_type) |
| lookup assignment status @global 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 @global 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.
@access 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().
Here is the call graph for this function:| ilParticipant::add | ( | $a_usr_id, | |
| $a_role | |||
| ) |
Add user to course/group.
@access 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.
Here is the call graph for this function:| ilParticipant::addDesktopItem | ( | $a_usr_id | ) |
Add desktop item.
@access public
| int | usr_id |
Definition at line 525 of file class.ilParticipant.php.
References ilObjUser\_addDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by add().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipant::checkLastAdmin | ( | $a_usr_ids | ) |
Check if user for deletion are last admins.
@access 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.
@access public
| int | usr_id |
Definition at line 471 of file class.ilParticipant.php.
References $DIC, $ilDB, $query, $res, dropDesktopItem(), and getComponent().
Here is the call graph for this function:| ilParticipant::deleteSubscriber | ( | $a_usr_id | ) |
| ilParticipant::dropDesktopItem | ( | $a_usr_id | ) |
Drop desktop item.
@access public
| int | usr_id |
Definition at line 540 of file class.ilParticipant.php.
References ilObjUser\_dropDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get component name Used for event handling.
Definition at line 228 of file class.ilParticipant.php.
References $component.
Referenced by add(), and delete().
Here is the caller graph for this function:
|
static |
| type | $a_role_id |
Definition at line 171 of file class.ilParticipant.php.
References $title, 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 283 of file class.ilParticipant.php.
References $DIC, and $numMembers.
| ilParticipant::getUserId | ( | ) |
get user id
Definition at line 237 of file class.ilParticipant.php.
References $usr_id.
Referenced by isBlocked(), isContact(), and readParticipantStatus().
Here is the caller graph for this function:| ilParticipant::isAdmin | ( | ) |
| ilParticipant::isAssigned | ( | ) |
| ilParticipant::isBlocked | ( | ) |
Definition at line 242 of file class.ilParticipant.php.
References getUserId().
Here is the call graph for this function:| ilParticipant::isContact | ( | ) |
Check if user is contact for current object.
Definition at line 252 of file class.ilParticipant.php.
References getUserId().
Here is the call graph for this function:| ilParticipant::isMember | ( | ) |
| ilParticipant::isParticipant | ( | ) |
Definition at line 278 of file class.ilParticipant.php.
References $participants.
| ilParticipant::isTutor | ( | ) |
|
static |
lookup assignment status @global 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, ilDBConstants\FETCHMODE_OBJECT, MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by updateMemberRoles().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
protected |
Read participant status @global 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipant::updateContact | ( | $a_usr_id, | |
| $a_contact | |||
| ) |
@global ilDB $ilDB
| type | $a_usr_id | |
| type | $a_contact |
Definition at line 557 of file class.ilParticipant.php.
|
static |
Update member roles @global 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, 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 | ( | $a_usr_id, | |
| $a_notification | |||
| ) |
Update notification status.
@access public
| int | usr_id |
| bool | passed |
Definition at line 583 of file class.ilParticipant.php.
|
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.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().
| const ilParticipant::MEMBERSHIP_MEMBER = 3 |
Definition at line 38 of file class.ilParticipant.php.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().
| const ilParticipant::MEMBERSHIP_TUTOR = 2 |
Definition at line 37 of file class.ilParticipant.php.
Referenced by getMembershipRoleType(), lookupStatusByMembershipRoleType(), and updateMemberRoles().