ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
updatePassed ($a_usr_id, $a_passed) | |
Update passed status. | |
sendNotification ($a_type, $a_usr_id) | |
sendUnsubscribeNotificationToAdmins ($a_usr_id) | |
sendSubscriptionRequestToAdmins ($a_usr_id) | |
sendNotificationToAdmins ($a_usr_id) | |
__buildStatusBody (&$user_obj) | |
Public Member Functions inherited from ilParticipants | |
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 | |
isLastAdmin ($a_usr_id) | |
Check if user is last admin. | |
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 | _getInstanceByObjId ($a_obj_id) |
Get singleton instance. | |
Static Public Member Functions inherited from ilParticipants | |
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 | getDefaultMemberRole ($a_ref_id) |
static | _isSubscriber ($a_obj_id, $a_usr_id) |
check if user is subscriber |
Protected Member Functions | |
__construct ($a_obj_id) | |
Singleton constructor. | |
Protected Member Functions inherited from ilParticipants | |
readSubscribers () | |
read subscribers | |
readSubscriberData ($a_usr_id) | |
read subscribers |
Static Protected Attributes | |
static | $instances = array() |
Additional Inherited Members | |
Protected Attributes inherited from ilParticipants | |
$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 |
Definition at line 35 of file class.ilCourseParticipants.php.
|
protected |
Singleton constructor.
protected
int | obj_id of container |
Reimplemented from ilParticipants.
Definition at line 45 of file class.ilCourseParticipants.php.
ilCourseParticipants::__buildStatusBody | ( | & | $user_obj | ) |
Definition at line 282 of file class.ilCourseParticipants.php.
References ilParticipants\$ilDB, ilParticipants\hasPassed(), ilParticipants\isAdmin(), ilParticipants\isBlocked(), ilParticipants\isMember(), ilParticipants\isNotificationEnabled(), and ilParticipants\isTutor().
|
static |
Get singleton instance.
public
int | obj_id |
Definition at line 74 of file class.ilCourseParticipants.php.
Referenced by ilCourseEditParticipantsTableGUI\__construct(), ilMemberExport\__construct(), ilLPStatusManualByTutor\__getCourseInProgress(), ilLPStatusManual\__getCourseInProgress(), ilObjCourseGUI\__showWaitingList(), ilCourseObjectiveResult\__updatePassed(), ilObjCourseAccess\_checkAccess(), ilObjCourseGrouping\_checkGroupingDependencies(), ilLPStatusCollection\_getCompleted(), ilLPStatusCollection\_getFailed(), ilLPStatusObjectives\_getInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusManual\_getNotAttempted(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusManualByTutor\_getNotAttempted(), ilFeedbackGUI\_isRequiredFeedbackOnLogin(), ilSoapCourseAdministration\assignCourseMember(), ilDataLoader\assignUsersAsCourseMembers(), ilFeedback\canVote(), ilCourseMembershipMailNotification\createCourseStatus(), ilObjSessionGUI\eventsListObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSessionOverviewGUI\exportCSV(), ilUserImportParser\getCourseMembersObjectForRole(), ilObjCourseListGUI\getProperties(), ilCourseXMLParser\ilCourseXMLParser(), ilObjCourse\initCourseMemberObject(), ilCourseRegistrationGUI\initParticipants(), ilSoapCourseAdministration\isAssignedToCourse(), ilSessionOverviewGUI\listSessions(), ilRepositorySearchGUI\listUsers(), ilObjSessionGUI\membersObject(), ilObjCourseGUI\membersObject(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjSessionGUI\printAttendanceListObject(), ilObjSessionGUI\printViewMembersObject(), ilPurchase\purchase(), ilMailSearchCoursesGUI\showMyCourses(), ilMembershipTest\testSubscription(), ilObjSessionGUI\updateMembersObject(), and ilObjCourseGUI\updateMembersObject().
ilCourseParticipants::sendNotification | ( | $a_type, | |
$a_usr_id | |||
) |
Definition at line 132 of file class.ilCourseParticipants.php.
References sendNotificationToAdmins(), sendSubscriptionRequestToAdmins(), ilCourseMembershipMailNotification\TYPE_ACCEPTED_SUBSCRIPTION_MEMBER, ilCourseMembershipMailNotification\TYPE_ADMISSION_MEMBER, ilCourseMembershipMailNotification\TYPE_BLOCKED_MEMBER, ilCourseMembershipMailNotification\TYPE_DISMISS_MEMBER, ilCourseMembershipMailNotification\TYPE_REFUSED_SUBSCRIPTION_MEMBER, ilCourseMembershipMailNotification\TYPE_STATUS_CHANGED, ilCourseMembershipMailNotification\TYPE_SUBSCRIBE_MEMBER, ilCourseMembershipMailNotification\TYPE_UNBLOCKED_MEMBER, ilCourseMembershipMailNotification\TYPE_UNSUBSCRIBE_MEMBER, and ilCourseMembershipMailNotification\TYPE_WAITING_LIST_MEMBER.
ilCourseParticipants::sendNotificationToAdmins | ( | $a_usr_id | ) |
Definition at line 267 of file class.ilCourseParticipants.php.
References ilParticipants\$ilDB, ilParticipants\getNotificationRecipients(), and ilCourseMembershipMailNotification\TYPE_NOTIFICATION_REGISTRATION.
Referenced by sendNotification().
ilCourseParticipants::sendSubscriptionRequestToAdmins | ( | $a_usr_id | ) |
Definition at line 252 of file class.ilCourseParticipants.php.
References ilParticipants\$ilDB, ilParticipants\getNotificationRecipients(), and ilCourseMembershipMailNotification\TYPE_NOTIFICATION_REGISTRATION_REQUEST.
Referenced by sendNotification().
ilCourseParticipants::sendUnsubscribeNotificationToAdmins | ( | $a_usr_id | ) |
Definition at line 237 of file class.ilCourseParticipants.php.
References ilParticipants\$ilDB, ilParticipants\getNotificationRecipients(), and ilCourseMembershipMailNotification\TYPE_NOTIFICATION_UNSUBSCRIBE.
ilCourseParticipants::updatePassed | ( | $a_usr_id, | |
$a_passed | |||
) |
Update passed status.
public
int | usr_id |
bool | passed |
Definition at line 94 of file class.ilCourseParticipants.php.
References ilParticipants\$ilDB, $query, and $res.
|
staticprotected |
Definition at line 37 of file class.ilCourseParticipants.php.