ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Base class for course and group participant. More...
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(), ILIAS\Repository\objectDataCache(), readParticipant(), and readParticipantStatus().
ilParticipant::add | ( | int | $a_usr_id, |
int | $a_role | ||
) |
Definition at line 335 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.
ilParticipant::addRecommendation | ( | $a_usr_id | ) |
Definition at line 407 of file class.ilParticipant.php.
ilParticipant::checkLastAdmin | ( | array | $a_usr_ids | ) |
Definition at line 451 of file class.ilParticipant.php.
References $data, $res, ilParticipants\IL_CRS_ADMIN, and ilParticipants\IL_GRP_ADMIN.
ilParticipant::delete | ( | int | $a_usr_id | ) |
Definition at line 377 of file class.ilParticipant.php.
References $res.
ilParticipant::deleteSubscriber | ( | int | $a_usr_id | ) |
Definition at line 399 of file class.ilParticipant.php.
References $res.
|
protected |
Get component name Used for event handling.
Definition at line 202 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().
ilParticipant::getNumberOfMembers | ( | ) |
Definition at line 250 of file class.ilParticipant.php.
ilParticipant::getUserId | ( | ) |
Definition at line 207 of file class.ilParticipant.php.
ilParticipant::isAdmin | ( | ) |
Definition at line 235 of file class.ilParticipant.php.
ilParticipant::isAssigned | ( | ) |
Definition at line 225 of file class.ilParticipant.php.
ilParticipant::isBlocked | ( | ) |
Definition at line 212 of file class.ilParticipant.php.
ilParticipant::isContact | ( | ) |
Check if user is contact for current object.
Definition at line 220 of file class.ilParticipant.php.
ilParticipant::isMember | ( | ) |
Definition at line 230 of file class.ilParticipant.php.
ilParticipant::isParticipant | ( | ) |
Definition at line 245 of file class.ilParticipant.php.
ilParticipant::isTutor | ( | ) |
Definition at line 240 of file class.ilParticipant.php.
|
static |
Definition at line 171 of file class.ilParticipant.php.
References MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by updateMemberRoles().
|
protected |
Definition at line 258 of file class.ilParticipant.php.
References ilParticipants\IL_CRS_ADMIN, ilParticipants\IL_CRS_MEMBER, ilParticipants\IL_CRS_TUTOR, ilParticipants\IL_GRP_ADMIN, ilParticipants\IL_GRP_MEMBER, and ILIAS\Repository\objectDataCache().
Referenced by __construct().
|
protected |
Definition at line 319 of file class.ilParticipant.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilParticipant::updateContact | ( | int | $a_usr_id, |
bool | $a_contact | ||
) |
Definition at line 414 of file class.ilParticipant.php.
|
static |
Definition at line 79 of file class.ilParticipant.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, getMembershipRoleType(), lookupStatusByMembershipRoleType(), MEMBERSHIP_ADMIN, MEMBERSHIP_MEMBER, and MEMBERSHIP_TUTOR.
Referenced by ilCourseAppEventListener\handleUserAssignments(), and ilGroupAppEventListener\handleUserAssignments().
ilParticipant::updateNotification | ( | int | $a_usr_id, |
bool | $a_notification | ||
) |
Definition at line 425 of file class.ilParticipant.php.
References $res.
|
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().