ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
__construct ($a_obj_id) | |
Singleton Constructor. | |
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. | |
getCountAdmins () | |
Get number of admins. | |
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 | _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 | |
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.
ilParticipants::__construct | ( | $a_obj_id | ) |
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().
|
static |
Delete all entries Normally called for course deletion.
public
int | obj_id |
Definition at line 195 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
Referenced by ilObjGroup\delete(), ilObjCourse\delete(), and ilSoapCourseAdministration\updateCourse().
|
static |
Delete user data.
public
int | user id |
Definition at line 218 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
|
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 94 of file class.ilParticipants.php.
References $ilDB, $query, $res, and $row.
Referenced by ilPDSelectedItemsBlockGUI\getObjectsByMembership(), ilTestEvaluationData\getParticipants(), ilCalendarCategories\readPDCalendars(), ilMailSearchCoursesGUI\showMyCourses(), and ilMailSearchGroupsGUI\showMyGroups().
|
static |
Check if user has passed course.
public
int | obj_id |
int | user id |
Definition at line 174 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
Referenced by ilObjCourse\_checkCondition().
|
static |
Check if user is blocked.
public
int | course id |
int | usr_id |
Definition at line 153 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
Referenced by ilRepositoryExplorer\isClickable().
|
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 126 of file class.ilParticipants.php.
References $ilDB, $ilLog, and $title.
Referenced by ilObjCourseGUI\executeCommand().
|
static |
check if user is subscriber
public
Definition at line 1176 of file class.ilParticipants.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjCourseListGUI\getProperties(), and ilMembershipTest\testSubscription().
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 666 of file class.ilParticipants.php.
References $ilLog, addDesktopItem(), deleteSubscriber(), ilWaitingList\deleteUserEntry(), IL_CRS_ADMIN, IL_CRS_MEMBER, IL_CRS_TUTOR, IL_GRP_ADMIN, IL_GRP_MEMBER, and isAssigned().
Referenced by ilGroupXMLParser\__assignMembers(), and assignSubscriber().
ilParticipants::addDesktopItem | ( | $a_usr_id | ) |
Add desktop item.
public
int | usr_id |
Definition at line 740 of file class.ilParticipants.php.
References ilObjUser\_addDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by add().
ilParticipants::addSubscriber | ( | $a_usr_id | ) |
Add subscriber.
public
Definition at line 1052 of file class.ilParticipants.php.
ilParticipants::assignSubscriber | ( | $a_usr_id | ) |
Assign subscriber.
public
Definition at line 987 of file class.ilParticipants.php.
References $ilErr, add(), deleteSubscriber(), ilObjectFactory\getInstanceByObjId(), IL_CRS_MEMBER, isAssigned(), and isSubscriber().
Referenced by assignSubscribers(), and autoFillSubscribers().
ilParticipants::assignSubscribers | ( | $a_usr_ids | ) |
Assign subscribers.
public
Definition at line 966 of file class.ilParticipants.php.
References assignSubscriber().
ilParticipants::autoFillSubscribers | ( | ) |
Assign subscriber.
public
Definition at line 1025 of file class.ilParticipants.php.
References assignSubscriber(), and readSubscribers().
ilParticipants::checkLastAdmin | ( | $a_usr_ids | ) |
Check if user for deletion are last admins.
public
array | array of user ids for deletion |
Definition at line 501 of file class.ilParticipants.php.
References getAdmins().
ilParticipants::delete | ( | $a_usr_id | ) |
Drop user from all roles.
public
int | usr_id |
Definition at line 552 of file class.ilParticipants.php.
References $ilDB, $query, $res, dropDesktopItem(), readParticipants(), and readParticipantsStatus().
ilParticipants::deleteParticipants | ( | $a_user_ids | ) |
Delete users.
public
array | user ids |
Definition at line 724 of file class.ilParticipants.php.
ilParticipants::deleteSubscriber | ( | $a_usr_id | ) |
Delete subsciber.
public
Definition at line 1112 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
Referenced by add(), assignSubscriber(), and readSubscribers().
ilParticipants::deleteSubscribers | ( | $a_usr_ids | ) |
Delete subscibers.
public
Definition at line 1130 of file class.ilParticipants.php.
References $ilDB, $ilErr, $query, and $res.
ilParticipants::dropDesktopItem | ( | $a_usr_id | ) |
Drop desktop item.
public
int | usr_id |
Definition at line 756 of file class.ilParticipants.php.
References ilObjUser\_dropDesktopItem(), and ilObjUser\_isDesktopItem().
Referenced by delete().
ilParticipants::getAdmins | ( | ) |
Get all admins ids.
public
Definition at line 338 of file class.ilParticipants.php.
Referenced by checkLastAdmin(), getCountAdmins(), and isLastAdmin().
ilParticipants::getAssignedRoles | ( | $a_usr_id | ) |
Get assigned roles.
public
int | user_id |
Definition at line 445 of file class.ilParticipants.php.
ilParticipants::getCountAdmins | ( | ) |
Get number of admins.
Definition at line 347 of file class.ilParticipants.php.
References getAdmins().
ilParticipants::getCountMembers | ( | ) |
Get number of members (not participants)
public
Definition at line 291 of file class.ilParticipants.php.
ilParticipants::getCountParticipants | ( | ) |
Get number of participants.
public
Definition at line 302 of file class.ilParticipants.php.
ilParticipants::getCountSubscribers | ( | ) |
get number of subscribers
public
Definition at line 944 of file class.ilParticipants.php.
References getSubscribers().
|
static |
Definition at line 232 of file class.ilParticipants.php.
References $ilCtrl, $obj_id, $roles, $title, $type, ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilObject\_lookupType().
Referenced by ilRbacSystem\initMemberView().
ilParticipants::getMembers | ( | ) |
Get all members ids (admins and tutors are not members) Use get participants to fetch all.
public
Definition at line 328 of file class.ilParticipants.php.
ilParticipants::getNotificationRecipients | ( | ) |
Get admin, tutor which have notification enabled.
public
Definition at line 267 of file class.ilParticipants.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, isAdmin(), and isTutor().
Referenced by ilGroupParticipants\sendNotification(), ilCourseParticipants\sendNotificationToAdmins(), ilCourseParticipants\sendSubscriptionRequestToAdmins(), and ilCourseParticipants\sendUnsubscribeNotificationToAdmins().
ilParticipants::getParticipants | ( | ) |
Get all participants ids.
public
Definition at line 316 of file class.ilParticipants.php.
Referenced by isGroupingMember().
ilParticipants::getRoles | ( | ) |
Get course roles.
public
Definition at line 433 of file class.ilParticipants.php.
Referenced by updateRoleAssignments().
ilParticipants::getSubscriberData | ( | $a_usr_id | ) |
get subscriber data
public
Definition at line 954 of file class.ilParticipants.php.
References readSubscriberData().
ilParticipants::getSubscribers | ( | ) |
get all subscribers
public
Definition at line 931 of file class.ilParticipants.php.
References $subscribers, and readSubscribers().
Referenced by getCountSubscribers().
ilParticipants::getTutors | ( | ) |
Get all tutors ids.
public
Definition at line 359 of file class.ilParticipants.php.
ilParticipants::hasPassed | ( | $a_usr_id | ) |
Check if user has passed course.
public
int | user_id |
Definition at line 536 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
ilParticipants::isAdmin | ( | $a_usr_id | ) |
is user admin
public
int | usr_id |
Definition at line 371 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody(), and getNotificationRecipients().
ilParticipants::isAssigned | ( | $a_usr_id | ) |
check if user is assigned
public
Definition at line 410 of file class.ilParticipants.php.
Referenced by add(), and assignSubscriber().
ilParticipants::isBlocked | ( | $a_usr_id | ) |
Check if user is blocked.
public
int | user_id |
Definition at line 520 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
ilParticipants::isGroupingMember | ( | $a_usr_id, | |
$a_field = '' |
|||
) |
Check grouping membership.
public
Definition at line 885 of file class.ilParticipants.php.
References $ilDB, $query, $res, ilObjectFactory\getInstanceByObjId(), and getParticipants().
ilParticipants::isLastAdmin | ( | $a_usr_id | ) |
Check if user is last admin.
int | $a_usr_id |
Definition at line 420 of file class.ilParticipants.php.
References getAdmins().
ilParticipants::isMember | ( | $a_usr_id | ) |
is user member
public
int | usr_id |
Definition at line 395 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
ilParticipants::isNotificationEnabled | ( | $a_usr_id | ) |
check if notification is enabled
public
Definition at line 775 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody().
ilParticipants::isSubscriber | ( | $a_usr_id | ) |
check if is subscriber
public
Definition at line 1154 of file class.ilParticipants.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by assignSubscriber().
ilParticipants::isTutor | ( | $a_usr_id | ) |
is user tutor
public
int | usr_id |
Definition at line 383 of file class.ilParticipants.php.
Referenced by ilCourseParticipants\__buildStatusBody(), and getNotificationRecipients().
|
private |
Read participants.
private
Definition at line 792 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().
|
private |
Read stati of participants (blocked, notification, passed)
private
Definition at line 862 of file class.ilParticipants.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), delete(), and updateRoleAssignments().
|
protected |
read subscribers
protected
Definition at line 1225 of file class.ilParticipants.php.
References $data, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and ilDB\query().
Referenced by getSubscriberData().
|
protected |
read subscribers
protected
Definition at line 1197 of file class.ilParticipants.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, deleteSubscriber(), ilObjectFactory\getInstanceByObjId(), and ilDB\query().
Referenced by autoFillSubscribers(), and getSubscribers().
ilParticipants::updateBlocked | ( | $a_usr_id, | |
$a_blocked | |||
) |
Update blocked status.
public
int | usr_id |
bool | blocked |
Definition at line 581 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
ilParticipants::updateNotification | ( | $a_usr_id, | |
$a_notification | |||
) |
Update notification status.
public
int | usr_id |
bool | passed |
Definition at line 622 of file class.ilParticipants.php.
References $ilDB, $query, and $res.
ilParticipants::updateRoleAssignments | ( | $a_usr_id, | |
$a_roles | |||
) |
Update role assignments.
public
int | usr_id |
array | array of new roles |
Definition at line 467 of file class.ilParticipants.php.
References $roles, getRoles(), readParticipants(), and readParticipantsStatus().
ilParticipants::updateSubject | ( | $a_usr_id, | |
$a_subject | |||
) |
ilParticipants::updateSubscriptionTime | ( | $a_usr_id, | |
$a_subtime | |||
) |
|
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(), deleteSubscribers(), 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.
Referenced by getDefaultMemberRole().
|
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 getDefaultMemberRole(), and 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.
Referenced by getDefaultMemberRole().