| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Base class for course and group participant. More...
 Inheritance diagram for ilParticipant:
 Inheritance diagram for ilParticipant: Collaboration diagram for ilParticipant:
 Collaboration diagram for ilParticipant:| 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_obj_id, $a_usr_id) | |
| Singleton Constructor. | |
| readParticipant () | |
| Read participant. | |
| readParticipantStatus () | |
| Read participant status  ilDB $ilDB. | |
| Protected Attributes | |
| $type = '' | |
| Private Attributes | |
| $obj_id = 0 | |
| $usr_id = 0 | |
| $ref_id = 0 | |
| $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 | 
Reimplemented in ilCourseParticipant.
Definition at line 56 of file class.ilParticipant.php.
References $lng, ilObject\_getAllReferences(), ilObject\_lookupType(), readParticipant(), and readParticipantStatus().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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 239 of file class.ilParticipant.php.
References $ilLog, addDesktopItem(), deleteSubscriber(), ilWaitingList\deleteUserEntry(), IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, and IL_GRP_MEMBER.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilParticipant::addDesktopItem | ( | $a_usr_id | ) | 
Add desktop item.
public
| int | usr_id | 
Definition at line 345 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 call graph for this function: Here is the caller 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.
public
| array | array of user ids for deletion | 
Definition at line 419 of file class.ilParticipant.php.
References $data, $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 297 of file class.ilParticipant.php.
References $query, $res, and dropDesktopItem().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilParticipant::deleteSubscriber | ( | $a_usr_id | ) | 
Delete subsciber.
public
Definition at line 326 of file class.ilParticipant.php.
Referenced by add().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilParticipant::dropDesktopItem | ( | $a_usr_id | ) | 
Drop desktop item.
public
| int | usr_id | 
Definition at line 361 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilParticipant::getNumberOfMembers | ( | ) | 
Definition at line 109 of file class.ilParticipant.php.
References $numMembers.
| ilParticipant::getUserId | ( | ) | 
get user id
Definition at line 74 of file class.ilParticipant.php.
References $usr_id.
Referenced by isBlocked(), and readParticipantStatus().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilParticipant::isAdmin | ( | ) | 
Definition at line 94 of file class.ilParticipant.php.
References $admins.
| ilParticipant::isAssigned | ( | ) | 
Definition at line 84 of file class.ilParticipant.php.
References $participants.
| ilParticipant::isBlocked | ( | ) | 
Definition at line 79 of file class.ilParticipant.php.
References getUserId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilParticipant::isMember | ( | ) | 
Definition at line 89 of file class.ilParticipant.php.
References $members.
| ilParticipant::isParticipant | ( | ) | 
Definition at line 104 of file class.ilParticipant.php.
References $participants.
| ilParticipant::isTutor | ( | ) | 
Definition at line 99 of file class.ilParticipant.php.
References $tutors.
| 
 | protected | 
Read participant.
Definition at line 119 of file class.ilParticipant.php.
References $ilLog, $title, 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:
 Here is the caller graph for this function:| 
 | protected | 
Read participant status ilDB $ilDB.
Definition at line 211 of file class.ilParticipant.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getUserId().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilParticipant::updateNotification | ( | $a_usr_id, | |
| $a_notification | |||
| ) | 
Update notification status.
public
| int | usr_id | 
| bool | passed | 
Definition at line 379 of file class.ilParticipant.php.
| 
 | private | 
Definition at line 42 of file class.ilParticipant.php.
Referenced by isAdmin().
| 
 | private | 
Definition at line 44 of file class.ilParticipant.php.
Referenced by isMember().
| 
 | private | 
Definition at line 46 of file class.ilParticipant.php.
Referenced by getNumberOfMembers().
| 
 | private | 
Definition at line 36 of file class.ilParticipant.php.
| 
 | private | 
Definition at line 41 of file class.ilParticipant.php.
Referenced by isAssigned(), and isParticipant().
| 
 | private | 
Definition at line 48 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.
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().