|
ILIAS
Release_3_10_x_branch Revision 61812
|
Inheritance diagram for ilParticipants:
Collaboration diagram for ilParticipants:Public Member Functions | |
| getNotificationRecipients () | |
| Get admin, tutor which have notification enabled. | |
| getCountMembers () | |
| Get number of members (not participants) | |
| getCountParticipants () | |
| Get number of participants. | |
| getParticipants () | |
| Get all participants ids. | |
| getMembers () | |
| Get all members ids (admins and tutors are not members) Use get participants to fetch all. | |
| getAdmins () | |
| Get all admins ids. | |
| getTutors () | |
| Get all tutors ids. | |
| isAdmin ($a_usr_id) | |
| is user admin | |
| isTutor ($a_usr_id) | |
| is user tutor | |
| isMember ($a_usr_id) | |
| is user member | |
| isAssigned ($a_usr_id) | |
| check if user is assigned | |
| getRoles () | |
| Get course roles. | |
| getAssignedRoles ($a_usr_id) | |
| Get assigned roles. | |
| updateRoleAssignments ($a_usr_id, $a_roles) | |
| Update role assignments. | |
| checkLastAdmin ($a_usr_ids) | |
| Check if user for deletion are last admins. | |
| isBlocked ($a_usr_id) | |
| Check if user is blocked. | |
| hasPassed ($a_usr_id) | |
| Check if user has passed course. | |
| delete ($a_usr_id) | |
| Drop user from all roles. | |
| updateBlocked ($a_usr_id, $a_blocked) | |
| Update blocked status. | |
| updateNotification ($a_usr_id, $a_notification) | |
| Update notification status. | |
| add ($a_usr_id, $a_role) | |
| Add user to course. | |
| deleteParticipants ($a_user_ids) | |
| Delete users. | |
| addDesktopItem ($a_usr_id) | |
| Add desktop item. | |
| dropDesktopItem ($a_usr_id) | |
| Drop desktop item. | |
| isNotificationEnabled ($a_usr_id) | |
| check if notification is enabled | |
| isGroupingMember ($a_usr_id, $a_field= '') | |
| Check grouping membership. | |
| getSubscribers () | |
| get all subscribers | |
| getCountSubscribers () | |
| get number of subscribers | |
| getSubscriberData ($a_usr_id) | |
| get subscriber data | |
| assignSubscribers ($a_usr_ids) | |
| Assign subscribers. | |
| assignSubscriber ($a_usr_id) | |
| Assign subscriber. | |
| autoFillSubscribers () | |
| Assign subscriber. | |
| addSubscriber ($a_usr_id) | |
| Add subscriber. | |
| updateSubscriptionTime ($a_usr_id, $a_subtime) | |
| Update subscription time. | |
| updateSubject ($a_usr_id, $a_subject) | |
| update subject | |
| deleteSubscriber ($a_usr_id) | |
| Delete subsciber. | |
| deleteSubscribers ($a_usr_ids) | |
| Delete subscibers. | |
| isSubscriber ($a_usr_id) | |
| check if is subscriber | |
Static Public Member Functions | |
| static | _getMembershipByType ($a_usr_id, $a_type) |
| get membership by type Get course or group membership | |
| static | _isParticipant ($a_ref_id, $a_usr_id) |
| Static function to check if a user is a participant of the container object. | |
| static | _isBlocked ($a_obj_id, $a_usr_id) |
| Check if user is blocked. | |
| static | _hasPassed ($a_obj_id, $a_usr_id) |
| Check if user has passed course. | |
| static | _deleteAllEntries ($a_obj_id) |
| Delete all entries Normally called for course deletion. | |
| static | _deleteUser ($a_usr_id) |
| Delete user data. | |
| static | _isSubscriber ($a_obj_id, $a_usr_id) |
| check if user is subscriber | |
Protected Member Functions | |
| __construct ($a_obj_id) | |
| Singleton Constructor. | |
| readSubscribers () | |
| read subscribers | |
| readSubscriberData ($a_usr_id) | |
| read subscribers | |
Protected Attributes | |
| $obj_id = 0 | |
| $type = '' | |
| $ref_id = 0 | |
| $roles = array() | |
| $role_data = array() | |
| $participants = array() | |
| $participants_status = array() | |
| $members = array() | |
| $tutors = array() | |
| $admins = array() | |
| $subscribers = array() | |
| $ilDB | |
| $lng | |
Private Member Functions | |
| readParticipants () | |
| Read participants. | |
| readParticipantsStatus () | |
| Read stati of participants (blocked, notification, passed) | |
Definition at line 40 of file class.ilParticipants.php.
|
protected |
Singleton Constructor.
public
| int | obj_id of container |
Reimplemented in ilGroupParticipants, and ilCourseParticipants.
Definition at line 68 of file class.ilParticipants.php.
References $ilDB, $lng, ilObject\_getAllReferences(), ilObject\_lookupType(), readParticipants(), and readParticipantsStatus().
Here is the call graph for this function:
|
static |
Delete all entries Normally called for course deletion.
public
| int | obj_id |
Definition at line 196 of file class.ilParticipants.php.
References $ilDB.
Referenced by ilObjGroup\delete(), ilObjCourse\delete(), and ilSoapCourseAdministration\updateCourse().
Here is the caller graph for this function:
|
static |
Delete user data.
public
| int | user id |
Definition at line 221 of file class.ilParticipants.php.
References $ilDB.
|
static |
get membership by type Get course or group membership
public
| int | $a_usr_id | usr_id |
| string | $a_type | crs or grp |
Definition at line 95 of file class.ilParticipants.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by ilPDSelectedItemsBlockGUI\getObjectsByMembership(), ilCalendarCategories\readPDCalendars(), ilMailSearchCoursesGUI\showMyCourses(), and ilMailSearchGroupsGUI\showMyGroups().
Here is the caller graph for this function:
|
static |
Check if user has passed course.
public
| int | obj_id |
| int | user id |
Definition at line 175 of file class.ilParticipants.php.
Referenced by ilObjCourse\_checkCondition().
Here is the caller graph for this function:
|
static |
Check if user is blocked.
public
| int | course id |
| int | usr_id |
Definition at line 154 of file class.ilParticipants.php.
Referenced by ilObjCourseAccess\_checkAccess(), and ilRepositoryExplorer\isClickable().
Here is the caller graph for this function:
|
static |
Static function to check if a user is a participant of the container object.
public
| int | ref_id |
| int | user id |
Reimplemented in ilGroupParticipants.
Definition at line 127 of file class.ilParticipants.php.
References $ilDB, $ilLog, and $title.
Referenced by ilObjCourseAccess\_checkAccess(), and ilObjCourseGUI\executeCommand().
Here is the caller graph for this function:
|
static |
check if user is subscriber
public
Definition at line 1114 of file class.ilParticipants.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by ilObjCourseListGUI\getProperties().
Here is the caller graph for this function:| ilParticipants::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 |
Definition at line 611 of file class.ilParticipants.php.
References $ilLog, addDesktopItem(), IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, IL_GRP_MEMBER, and isAssigned().
Referenced by assignSubscriber().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipants::addDesktopItem | ( | $a_usr_id | ) |
Add desktop item.
public
| int | usr_id |
Definition at line 678 of file class.ilParticipants.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:| ilParticipants::addSubscriber | ( | $a_usr_id | ) |
| ilParticipants::assignSubscriber | ( | $a_usr_id | ) |
Assign subscriber.
public
Definition at line 922 of file class.ilParticipants.php.
References $ilErr, add(), deleteSubscriber(), ilObjectFactory\getInstanceByObjId(), IL_CRS_MEMBER, isAssigned(), and isSubscriber().
Referenced by assignSubscribers(), and autoFillSubscribers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipants::assignSubscribers | ( | $a_usr_ids | ) |
Assign subscribers.
public
Definition at line 901 of file class.ilParticipants.php.
References assignSubscriber().
Here is the call graph for this function:| ilParticipants::autoFillSubscribers | ( | ) |
Assign subscriber.
public
Definition at line 960 of file class.ilParticipants.php.
References assignSubscriber(), and readSubscribers().
Here is the call graph for this function:| ilParticipants::checkLastAdmin | ( | $a_usr_ids | ) |
Check if user for deletion are last admins.
public
| array | array of user ids for deletion |
Definition at line 453 of file class.ilParticipants.php.
References getAdmins().
Here is the call graph for this function:| ilParticipants::delete | ( | $a_usr_id | ) |
Drop user from all roles.
public
| int | usr_id |
Definition at line 504 of file class.ilParticipants.php.
References $ilDB, dropDesktopItem(), readParticipants(), and readParticipantsStatus().
Here is the call graph for this function:| ilParticipants::deleteParticipants | ( | $a_user_ids | ) |
Delete users.
public
| array | user ids |
Definition at line 662 of file class.ilParticipants.php.
| ilParticipants::deleteSubscriber | ( | $a_usr_id | ) |
Delete subsciber.
public
Definition at line 1043 of file class.ilParticipants.php.
Referenced by assignSubscriber(), deleteSubscribers(), and readSubscribers().
Here is the caller graph for this function:| ilParticipants::deleteSubscribers | ( | $a_usr_ids | ) |
Delete subscibers.
public
Definition at line 1062 of file class.ilParticipants.php.
References $ilErr, and deleteSubscriber().
Here is the call graph for this function:| ilParticipants::dropDesktopItem | ( | $a_usr_id | ) |
Drop desktop item.
public
| int | usr_id |
Definition at line 694 of file class.ilParticipants.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:| ilParticipants::getAdmins | ( | ) |
Get all admins ids.
public
Definition at line 312 of file class.ilParticipants.php.
Referenced by checkLastAdmin().
Here is the caller graph for this function:| ilParticipants::getAssignedRoles | ( | $a_usr_id | ) |
Get assigned roles.
public
| int | user_id |
Definition at line 397 of file class.ilParticipants.php.
| ilParticipants::getCountMembers | ( | ) |
Get number of members (not participants)
public
Definition at line 265 of file class.ilParticipants.php.
| ilParticipants::getCountParticipants | ( | ) |
Get number of participants.
public
Definition at line 276 of file class.ilParticipants.php.
| ilParticipants::getCountSubscribers | ( | ) |
get number of subscribers
public
Definition at line 879 of file class.ilParticipants.php.
References getSubscribers().
Here is the call graph for this function:| ilParticipants::getMembers | ( | ) |
Get all members ids (admins and tutors are not members) Use get participants to fetch all.
public
Definition at line 302 of file class.ilParticipants.php.
| ilParticipants::getNotificationRecipients | ( | ) |
Get admin, tutor which have notification enabled.
public
Definition at line 241 of file class.ilParticipants.php.
References $ilDB, $res, DB_FETCHMODE_OBJECT, isAdmin(), and isTutor().
Referenced by ilCourseParticipants\sendNotificationToAdmins(), ilCourseParticipants\sendSubscriptionRequestToAdmins(), and ilCourseParticipants\sendUnsubscribeNotificationToAdmins().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipants::getParticipants | ( | ) |
Get all participants ids.
public
Definition at line 290 of file class.ilParticipants.php.
Referenced by isGroupingMember().
Here is the caller graph for this function:| ilParticipants::getRoles | ( | ) |
Get course roles.
public
Definition at line 385 of file class.ilParticipants.php.
Referenced by updateRoleAssignments().
Here is the caller graph for this function:| ilParticipants::getSubscriberData | ( | $a_usr_id | ) |
get subscriber data
public
Definition at line 889 of file class.ilParticipants.php.
References readSubscriberData().
Here is the call graph for this function:| ilParticipants::getSubscribers | ( | ) |
get all subscribers
public
Definition at line 866 of file class.ilParticipants.php.
References $subscribers, and readSubscribers().
Referenced by getCountSubscribers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipants::getTutors | ( | ) |
Get all tutors ids.
public
Definition at line 322 of file class.ilParticipants.php.
| ilParticipants::hasPassed | ( | $a_usr_id | ) |
Check if user has passed course.
public
| int | user_id |
Definition at line 488 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
Here is the caller graph for this function:| ilParticipants::isAdmin | ( | $a_usr_id | ) |
is user admin
public
| int | usr_id |
Definition at line 334 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody(), getNotificationRecipients(), and ilCourseParticipants\sendNotificationToAdmins().
Here is the caller graph for this function:| ilParticipants::isAssigned | ( | $a_usr_id | ) |
check if user is assigned
public
Definition at line 373 of file class.ilParticipants.php.
Referenced by add(), and assignSubscriber().
Here is the caller graph for this function:| ilParticipants::isBlocked | ( | $a_usr_id | ) |
Check if user is blocked.
public
| int | user_id |
Definition at line 472 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
Here is the caller graph for this function:| ilParticipants::isGroupingMember | ( | $a_usr_id, | |
$a_field = '' |
|||
| ) |
Check grouping membership.
public
Definition at line 821 of file class.ilParticipants.php.
References $ilDB, $res, ilObjectFactory\getInstanceByObjId(), getParticipants(), and ilUtil\quoteArray().
Here is the call graph for this function:| ilParticipants::isMember | ( | $a_usr_id | ) |
is user member
public
| int | usr_id |
Definition at line 358 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
Here is the caller graph for this function:| ilParticipants::isNotificationEnabled | ( | $a_usr_id | ) |
check if notification is enabled
public
Definition at line 713 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
Here is the caller graph for this function:| ilParticipants::isSubscriber | ( | $a_usr_id | ) |
check if is subscriber
public
Definition at line 1091 of file class.ilParticipants.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by assignSubscriber().
Here is the caller graph for this function:| ilParticipants::isTutor | ( | $a_usr_id | ) |
is user tutor
public
| int | usr_id |
Definition at line 346 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody(), getNotificationRecipients(), and ilCourseParticipants\sendNotificationToAdmins().
Here is the caller graph for this function:
|
private |
Read participants.
private
Definition at line 730 of file class.ilParticipants.php.
References $ilLog, $participants, $title, IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, and IL_GRP_MEMBER.
Referenced by __construct(), delete(), and updateRoleAssignments().
Here is the caller graph for this function:
|
private |
Read stati of participants (blocked, notification, passed)
private
Definition at line 798 of file class.ilParticipants.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), delete(), and updateRoleAssignments().
Here is the caller graph for this function:
|
protected |
read subscribers
protected
Definition at line 1164 of file class.ilParticipants.php.
References $data, $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by getSubscriberData().
Here is the caller graph for this function:
|
protected |
read subscribers
protected
Definition at line 1136 of file class.ilParticipants.php.
References $ilDB, $res, DB_FETCHMODE_OBJECT, deleteSubscriber(), and ilObjectFactory\getInstanceByObjId().
Referenced by autoFillSubscribers(), and getSubscribers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilParticipants::updateBlocked | ( | $a_usr_id, | |
| $a_blocked | |||
| ) |
Update blocked status.
public
| int | usr_id |
| bool | blocked |
Definition at line 533 of file class.ilParticipants.php.
| ilParticipants::updateNotification | ( | $a_usr_id, | |
| $a_notification | |||
| ) |
Update notification status.
public
| int | usr_id |
| bool | passed |
Definition at line 570 of file class.ilParticipants.php.
| ilParticipants::updateRoleAssignments | ( | $a_usr_id, | |
| $a_roles | |||
| ) |
Update role assignments.
public
| int | usr_id |
| array | array of new roles |
Definition at line 419 of file class.ilParticipants.php.
References $roles, getRoles(), readParticipants(), and readParticipantsStatus().
Here is the call graph for this function:| ilParticipants::updateSubject | ( | $a_usr_id, | |
| $a_subject | |||
| ) |
update subject
public
| @return |
Definition at line 1025 of file class.ilParticipants.php.
References $ilDB.
| ilParticipants::updateSubscriptionTime | ( | $a_usr_id, | |
| $a_subtime | |||
| ) |
Update subscription time.
public
Definition at line 1004 of file class.ilParticipants.php.
References $ilDB.
|
protected |
Definition at line 53 of file class.ilParticipants.php.
|
protected |
Definition at line 57 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody(), __construct(), _deleteAllEntries(), _deleteUser(), _getMembershipByType(), _hasPassed(), _isBlocked(), ilGroupParticipants\_isParticipant(), _isParticipant(), _isSubscriber(), addSubscriber(), delete(), deleteSubscriber(), getNotificationRecipients(), isGroupingMember(), isSubscriber(), readParticipantsStatus(), readSubscriberData(), readSubscribers(), ilCourseParticipants\sendNotificationToAdmins(), ilCourseParticipants\sendSubscriptionRequestToAdmins(), ilCourseParticipants\sendUnsubscribeNotificationToAdmins(), updateBlocked(), updateNotification(), ilCourseParticipants\updatePassed(), updateSubject(), and updateSubscriptionTime().
|
protected |
Definition at line 58 of file class.ilParticipants.php.
Referenced by __construct().
|
protected |
Definition at line 51 of file class.ilParticipants.php.
|
protected |
Definition at line 42 of file class.ilParticipants.php.
|
protected |
Definition at line 49 of file class.ilParticipants.php.
Referenced by readParticipants().
|
protected |
Definition at line 50 of file class.ilParticipants.php.
|
protected |
Definition at line 44 of file class.ilParticipants.php.
|
protected |
Definition at line 47 of file class.ilParticipants.php.
|
protected |
Definition at line 46 of file class.ilParticipants.php.
Referenced by updateRoleAssignments().
|
protected |
Definition at line 55 of file class.ilParticipants.php.
Referenced by getSubscribers().
|
protected |
Definition at line 52 of file class.ilParticipants.php.
|
protected |
Definition at line 43 of file class.ilParticipants.php.