6 require_once
"./Services/Container/classes/class.ilContainer.php";
7 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
8 include_once
'./Services/Membership/interfaces/interface.ilMembershipRegistrationCodes.php';
10 define(
'GRP_REGISTRATION_DEACTIVATED', -1);
11 define(
'GRP_REGISTRATION_DIRECT', 0);
12 define(
'GRP_REGISTRATION_REQUEST', 1);
13 define(
'GRP_REGISTRATION_PASSWORD', 2);
15 define(
'GRP_REGISTRATION_LIMITED', 1);
16 define(
'GRP_REGISTRATION_UNLIMITED', 2);
18 define(
'GRP_TYPE_UNKNOWN', 0);
19 define(
'GRP_TYPE_CLOSED', 1);
20 define(
'GRP_TYPE_OPEN', 2);
21 define(
'GRP_TYPE_PUBLIC', 3);
113 public function __construct($a_id = 0, $a_call_by_reference =
true)
117 $tree = $DIC[
'tree'];
119 $this->tree = &
$tree;
122 parent::__construct($a_id, $a_call_by_reference);
135 $ilDB = $DIC[
'ilDB'];
137 $query =
"SELECT grp_type FROM grp_settings " .
138 "WHERE obj_id = " .
$ilDB->quote($a_id,
'integer');
141 return $row->grp_type;
156 $this->information = $a_information;
236 $this->reg_unlimited = $a_status;
259 $this->reg_start = $a_start;
283 $this->reg_end = $a_end;
305 $this->reg_password = $a_pass;
328 $this->reg_membership_limitation = $a_status;
350 $this->reg_min_members = $a_max;
372 $this->reg_max_members = $a_max;
395 $this->waiting_list = $a_status;
412 $this->auto_fill_from_waiting = (bool) $a_value;
427 $this->latitude = $a_latitude;
447 $this->longitude = $a_longitude;
467 $this->locationzoom = $a_locationzoom;
487 $this->enablemap = $a_enablemap;
525 $this->reg_access_code = $a_code;
544 $this->reg_access_code_enabled = $a_status;
568 $this->leave_end = $a_value;
578 $this->show_members = $a_status;
635 $ilErr->appendMessage($this->lng->txt(self::ERR_MISSING_TITLE));
638 $ilErr->appendMessage($this->lng->txt(self::ERR_MISSING_PASSWORD));
648 $ilErr->appendMessage($this->lng->txt(self::ERR_MISSING_MIN_MAX_MEMBERS));
651 $ilErr->appendMessage($this->lng->txt(self::ERR_WRONG_MAX_MEMBERS));
654 $ilErr->appendMessage($this->lng->txt(self::ERR_WRONG_MIN_MAX_MEMBERS));
662 $ilErr->appendMessage($this->lng->txt((self::ERR_WRONG_REGISTRATION_LIMITED)));
665 return strlen(
$ilErr->getMessage()) == 0;
678 $ilDB = $DIC[
'ilDB'];
679 $ilAppEventHandler = $DIC[
'ilAppEventHandler'];
681 if (!parent::create()) {
690 $query =
"INSERT INTO grp_settings (obj_id,information,grp_type,registration_type,registration_enabled," .
691 "registration_unlimited,registration_start,registration_end,registration_password,registration_mem_limit," .
692 "registration_max_members,waiting_list,latitude,longitude,location_zoom,enablemap,reg_ac_enabled,reg_ac,view_mode,mail_members_type," .
693 "leave_end,registration_min_members,auto_wait, grp_start, grp_end) " .
695 $ilDB->quote($this->
getId(),
'integer') .
", " .
713 $ilDB->quote($this->view_mode,
'integer') .
', ' .
723 $ilAppEventHandler->raise(
726 array(
'object' => $this,
727 'obj_id' => $this->
getId(),
731 return $this->
getId();
741 $ilDB = $DIC[
'ilDB'];
742 $ilAppEventHandler = $DIC[
'ilAppEventHandler'];
748 $query =
"UPDATE grp_settings " .
756 "registration_password = " .
$ilDB->quote($this->
getPassword(),
'text') .
", " .
759 "registration_max_members = " .
$ilDB->quote($this->
getMaxMembers(),
'integer') .
", " .
767 'view_mode = ' .
$ilDB->quote($this->view_mode,
'integer') .
', ' .
770 "registration_min_members = " .
$ilDB->quote($this->
getMinMembers(),
'integer') .
", " .
775 "WHERE obj_id = " .
$ilDB->quote($this->
getId(),
'integer');
778 $ilAppEventHandler->raise(
781 array(
'object' => $this,
782 'obj_id' => $this->
getId(),
796 public function delete()
800 $ilDB = $DIC[
'ilDB'];
801 $ilAppEventHandler = $DIC[
'ilAppEventHandler'];
804 if (!parent::delete()) {
808 $query =
"DELETE FROM grp_settings " .
809 "WHERE obj_id = " .
$ilDB->quote($this->
getId(),
'integer');
812 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
815 $ilAppEventHandler->raise(
818 array(
'object' => $this,
819 'obj_id' => $this->
getId(),
835 $ilDB = $DIC[
'ilDB'];
839 $query =
"SELECT * FROM grp_settings " .
840 "WHERE obj_id = " .
$ilDB->quote($this->
getId(),
'integer');
872 include_once(
'./Services/Container/classes/class.ilContainerSortingSettings.php');
884 public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree =
false)
888 $ilDB = $DIC[
'ilDB'];
892 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
896 $new_obj->applyDidacticTemplate($current_template);
917 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationCodeUtils.php';
920 $new_obj->setViewMode($this->view_mode);
927 $new_obj->setStart($this->
getStart());
928 $new_obj->setEnd($this->
getEnd());
933 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
937 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
940 $part->updateNotification(
$ilUser->getId(),
$ilSetting->get(
'mail_grp_admin_notification',
true));
941 $part->updateContact(
$ilUser->getId(),
true);
944 include_once(
'Services/Tracking/classes/class.ilLPObjSettings.php');
946 $obj_settings->cloneSettings($new_obj->getId());
947 unset($obj_settings);
964 $tree = $DIC[
'tree'];
966 parent::cloneDependencies($a_target_id, $a_copy_id);
968 include_once(
'Services/Object/classes/class.ilObjectActivation.php');
974 $grouping = new \ilObjCourseGrouping($grouping_id);
975 $grouping->cloneGrouping($a_target_id, $a_copy_id);
996 $new_admin = $new_obj->getDefaultAdminRole();
997 if (!$admin || !$new_admin || !$this->
getRefId() || !$new_obj->getRefId()) {
1000 $rbacadmin->copyRolePermissions($admin, $this->
getRefId(), $new_obj->getRefId(), $new_admin,
true);
1004 $new_member = $new_obj->getDefaultMemberRole();
1005 if (!$member || !$new_member) {
1008 $rbacadmin->copyRolePermissions($member, $this->
getRefId(), $new_obj->getRefId(), $new_member,
true);
1018 public function join($a_user_id, $a_mem_role =
"")
1024 if (is_array($a_mem_role)) {
1025 foreach ($a_mem_role as $role) {
1026 $rbacadmin->assignUser($role, $a_user_id,
false);
1029 $rbacadmin->assignUser($a_mem_role, $a_user_id,
false);
1043 return $local_group_Roles[
"il_grp_member_" . $this->
getRefId()];
1054 return $local_group_Roles[
"il_grp_admin_" . $this->
getRefId()];
1069 if (isset($a_user_id) && isset($a_mem_role)) {
1070 $this->
join($a_user_id, $a_mem_role);
1073 $this->
ilias->raiseError(get_class($this) .
"::addMember(): Missing parameters !", $this->
ilias->error_obj->WARNING);
1094 if (count($member_ids) <= 1 || !in_array($this->
ilias->account->getId(), $member_ids)) {
1098 $this->
leave($this->
ilias->account->getId());
1121 if (is_array($arr_groupRoles)) {
1122 foreach ($arr_groupRoles as $groupRole) {
1123 $rbacadmin->deassignUser($groupRole, $a_user_id);
1126 $rbacadmin->deassignUser($arr_groupRoles, $a_user_id);
1149 foreach ($rol as $value) {
1150 foreach (
$rbacreview->assignedUsers($value) as $member_id) {
1151 array_push($usr_arr, $member_id);
1155 $mem_arr = array_unique($usr_arr);
1157 return $mem_arr ? $mem_arr : array();
1174 $ilDB = $DIC[
'ilDB'];
1178 $q =
"SELECT login,firstname,lastname,title,usr_id,last_login " .
1182 if (is_numeric($active) && $active > -1) {
1183 $q .=
"AND active = '$active'";
1186 $q .=
'ORDER BY lastname,firstname';
1191 $mem_arr[] = array(
"id" =>
$row->usr_id,
1192 "login" =>
$row->login,
1193 "firstname" =>
$row->firstname,
1194 "lastname" =>
$row->lastname,
1195 "last_login" =>
$row->last_login
1199 return $mem_arr ? $mem_arr : array();
1219 if (!empty($a_grpId)) {
1228 foreach (
$rbacreview->assignedUsers($this->getDefaultAdminRole()) as $member_id) {
1229 array_push($usr_arr, $member_id);
1247 if (strlen($a_grp_id) > 0) {
1248 $grp_id = $a_grp_id;
1253 $role_arr =
$rbacreview->getRolesOfRoleFolder($grp_id);
1255 foreach ($role_arr as $role_id) {
1256 $role_Obj = &$this->
ilias->obj_factory->getInstanceByObjId($role_id);
1258 $grp_Member =
"il_grp_member_" . $grp_id;
1259 $grp_Admin =
"il_grp_admin_" . $grp_id;
1261 if (strcmp($role_Obj->getTitle(), $grp_Member) == 0) {
1262 $arr_grpDefaultRoles[
"grp_member_role"] = $role_Obj->getId();
1265 if (strcmp($role_Obj->getTitle(), $grp_Admin) == 0) {
1266 $arr_grpDefaultRoles[
"grp_admin_role"] = $role_Obj->getId();
1270 return $arr_grpDefaultRoles;
1286 if (empty($this->local_roles)) {
1287 $this->local_roles = array();
1290 foreach ($role_arr as $role_id) {
1291 if (
$rbacreview->isAssignable($role_id, $this->getRefId()) ==
true) {
1292 $role_Obj = &$this->
ilias->obj_factory->getInstanceByObjId($role_id);
1297 $role_name = $role_Obj->getTitle();
1300 $this->local_roles[$role_name] = $role_Obj->getId();
1305 return $this->local_roles;
1315 $q =
"SELECT obj_id FROM object_data WHERE type='rolt' AND title='il_grp_status_closed'";
1319 return $row[
"obj_id"];
1329 $q =
"SELECT obj_id FROM object_data WHERE type='rolt' AND title='il_grp_status_open'";
1333 return $row[
"obj_id"];
1346 $ilDB = $DIC[
'ilDB'];
1348 $type = self::lookupGroupTye($a_obj_id);
1350 $query =
'SELECT obj_id FROM object_data WHERE type = ' .
$ilDB->quote(
'rolt',
'text') .
' AND title = ' .
$ilDB->quote(
'il_grp_status_closed',
'text');
1352 $query =
'SELECT obj_id FROM object_data WHERE type = ' .
$ilDB->quote(
'rolt',
'text') .
' AND title = ' .
$ilDB->quote(
'il_grp_status_open',
'text');
1357 return isset(
$row[
'obj_id']) ?
$row[
'obj_id'] : 0;
1375 $logger = $DIC->logger()->grp();
1385 if ($template->isAutoGenerated()) {
1386 $logger->info(
'Appying default closed template');
1391 $logger->warning(
'No closed didactic template available.');
1425 $arr_relevantParentRoleIds = array_diff(array_keys($arr_parentRoles), $real_local_roles);
1437 foreach ($arr_relevantParentRoleIds as $parentRole) {
1438 if (
$rbacreview->isProtected($arr_parentRoles[$parentRole][
'parent'], $parentRole)) {
1442 $granted_permissions = array();
1460 foreach ($template_ops as $template_op) {
1461 if (in_array($template_op, $current_ops)) {
1462 array_push($granted_permissions, $template_op);
1465 if (!empty($granted_permissions)) {
1478 $arr_parentRoles[$parentRole][
'parent'],
1496 $this->group_status = $a_status;
1508 return $this->group_status;
1529 foreach ($arr_globalRoles as $globalRole) {
1530 if (
$rbacsystem->checkPermission($this->getRefId(), $globalRole,
"join")) {
1552 $ilBench->start(
"Group",
"getMemberRoles");
1554 $arr_assignedRoles = array();
1558 $ilBench->stop(
"Group",
"getMemberRoles");
1560 return $arr_assignedRoles;
1577 if (in_array($a_userId,
$rbacreview->assignedUsers($grp_Roles[
"grp_admin_role"]))) {
1590 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
1592 'il_grp_admin_' . $this->
getRefId(),
1593 "Groupadmin group obj_no." . $this->
getId(),
1597 $this->m_roleAdminId = $role->getId();
1600 'il_grp_member_' . $this->
getRefId(),
1601 "Groupmember of group obj_no." . $this->
getId(),
1605 $this->m_roleMemberId = $role->getId();
1624 $parent_roles =
$rbacreview->getParentRoleIds($a_parent_ref);
1625 foreach ((array) $parent_roles as $parent_role) {
1626 if ($parent_role[
'parent'] == $this->
getRefId()) {
1629 if (
$rbacreview->isProtected($parent_role[
'parent'], $parent_role[
'rol_id'])) {
1631 $parent_role[
'obj_id'],
1633 $parent_role[
'parent']
1636 $parent_role[
'obj_id'],
1645 $parent_role[
'obj_id'],
1646 $parent_role[
'parent'],
1660 parent::applyDidacticTemplate($a_tpl_id);
1673 $ilDB = $DIC[
'ilDB'];
1675 $query =
"SELECT * FROM object_data WHERE title = " .
1676 $ilDB->quote($a_title,
'text') .
" AND type = 'grp'";
1679 return $row->obj_id;
1685 public function _isMember($a_user_id, $a_ref_id, $a_field =
'')
1690 $ilObjDataCache = $DIC[
'ilObjDataCache'];
1691 $ilDB = $DIC[
'ilDB'];
1693 $local_roles =
$rbacreview->getRolesOfRoleFolder($a_ref_id,
false);
1694 $user_roles =
$rbacreview->assignedRoles($a_user_id);
1698 include_once
'./Services/User/classes/class.ilObjUser.php';
1703 $and =
"AND login = '" . $tmp_user->getLogin() .
"' ";
1706 $and =
"AND email = '" . $tmp_user->getEmail() .
"' ";
1708 case 'matriculation':
1709 $and =
"AND matriculation = '" . $tmp_user->getMatriculation() .
"' ";
1713 $and =
"AND usr_id = '" . $a_user_id .
"'";
1719 $query =
"SELECT * FROM usr_data as ud " .
1724 return $res->numRows() ? true :
false;
1727 if (!array_intersect($local_roles, $user_roles)) {
1747 foreach ($local_roles as $role_id) {
1751 return array_unique(
$users);
1763 $view = self::lookupViewMode($this->
getId());
1769 $container_ref_id =
$tree->checkForParentType($this->ref_id,
'crs');
1770 if ($container_ref_id) {
1790 $this->view_mode = $a_view_mode;
1801 $ilDB = $DIC[
'ilDB'];
1803 $query =
'SELECT view_mode FROM grp_settings ' .
1804 'WHERE obj_id = ' .
$ilDB->quote($a_obj_id,
'integer');
1825 $tree = $DIC[
'tree'];
1827 if (!$a_view_mode) {
1835 $a_ref_id = end($ref);
1838 $crs_ref =
$tree->checkForParentType($a_ref_id,
'crs');
1843 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
1855 return $a_view_mode;
1864 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
1874 $this->message = $a_message;
1879 $this->message .=
"<br /> ";
1881 $this->message .= $a_message;
1893 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentTemplate.php');
1903 $app->setSubtitle(
'grp_cal_start');
1907 $app->setFullday(
true);
1912 $app->setSubtitle(
'grp_cal_end');
1915 $app->setStart($this->
getEnd());
1916 $app->setFullday(
true);
1925 $app->setSubtitle(
'grp_cal_reg_start');
1933 $app->setSubtitle(
'grp_cal_reg_end');
1957 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
1983 $ilDB = $DIC[
'ilDB'];
1985 $query =
"SELECT obj_id FROM grp_settings " .
1986 "WHERE reg_ac_enabled = " .
$ilDB->quote(1,
'integer') .
" " .
1987 "AND reg_ac = " .
$ilDB->quote($a_code,
'text');
1992 $obj_ids[] =
$row->obj_id;
2003 public function register($a_user_id, $a_role =
IL_GRP_MEMBER, $a_force_registration =
false)
2005 include_once
'./Services/Membership/exceptions/class.ilMembershipRegistrationException.php';
2006 include_once
"./Modules/Group/classes/class.ilGroupParticipants.php";
2009 if ($part->isAssigned($a_user_id)) {
2013 if (!$a_force_registration) {
2016 include_once
'./Modules/Group/classes/class.ilObjGroupAccess.php';
2038 $free = max(0, $this->
getMaxMembers() - $part->getCountMembers());
2039 include_once(
'./Modules/Group/classes/class.ilGroupWaitingList.php');
2042 $this->lng->loadLanguageModule(
"grp");
2046 $this->lng->txt(
'grp_added_to_list'),
2051 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
2052 include_once(
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php');
2066 $part->add($a_user_id, $a_role);
2080 include_once(
'./Modules/Group/classes/class.ilGroupWaitingList.php');
2091 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
2104 public static function mayLeave($a_group_id, $a_user_id = null, &$a_date = null)
2109 $ilDB = $DIC[
'ilDB'];
2112 $a_user_id =
$ilUser->getId();
2115 $set =
$ilDB->query(
"SELECT leave_end" .
2116 " FROM grp_settings" .
2117 " WHERE obj_id = " .
$ilDB->quote($a_group_id,
"integer"));
2121 $limit = date(
"Ymd",
$row[
"leave_end"]);
2122 if ($limit < date(
"Ymd")) {
2142 $now = date(
"Y-m-d H:i:s");
2149 $set =
$ilDB->query($q =
"SELECT obj_id, registration_min_members" .
2150 " FROM grp_settings" .
2151 " WHERE registration_min_members > " .
$ilDB->quote(0,
"integer") .
2152 " AND registration_mem_limit = " .
$ilDB->quote(1,
"integer") .
2153 " AND ((leave_end IS NOT NULL" .
2154 " AND leave_end < " .
$ilDB->quote($now,
"integer") .
")" .
2155 " OR (leave_end IS NULL" .
2156 " AND registration_end IS NOT NULL" .
2157 " AND registration_end < " .
$ilDB->quote($now_date,
"text") .
"))" .
2158 " AND (grp_start IS NULL OR grp_start > " .
$ilDB->quote($now,
"integer") .
")");
2159 while (
$row =
$ilDB->fetchAssoc($set)) {
2163 if (
$tree->isDeleted($ref)) {
2168 $reci = $part->getNotificationRecipients();
2169 if (
sizeof($reci)) {
2170 $missing = (int)
$row[
"registration_min_members"] - $part->getCountMembers();
2172 $res[
$row[
"obj_id"]] = array($missing, $reci);
2183 $ilDB = $DIC[
"ilDB"];
2184 $query =
'SELECT show_members FROM grp_settings' 2185 .
' WHERE obj_id = '.
$ilDB->quote($a_obj_id,
'integer');
2191 return (
bool)
$row[
'show_members'];
static lookupTemplateId($a_ref_id)
Lookup template id ilDB $ilDB.
static lookupGroupStatusTemplateId($a_obj_id)
$ilDB $ilDB
setCancellationEnd(ilDate $a_value=null)
getMaxMembers()
get max members
static mayLeave($a_group_id, $a_user_id=null, &$a_date=null)
getDefaultAdminRole()
returns object id of created default adminstrator role public
dropDesktopItem($a_item_id, $a_type)
drop an item from user's personal desktop
cloneAutoGeneratedRoles($new_obj)
Clone group admin and member role permissions.
isRegistrationEnabled()
is registration enabled
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
getLongitude()
Get Longitude.
static _deleteAllEntries($a_obj_id)
Delete all entries Normally called for course deletion.
static lookupNumberOfMembers($a_ref_id)
Lookup number of members ilRbacReview $rbacreview <type> $ilObjDataCache.
validate()
validate group settings
isRegistrationUnlimited()
is registration unlimited
const ADDED_TO_WAITINGLIST
setEnd(ilDate $end=null)
Set end.
getDefaultMemberRole()
returns object id of created default member role public
$reg_membership_limitation
const GRP_REGISTRATION_DEACTIVATED
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const ERR_MISSING_PASSWORD
getMembersObject()
Get members objects.
isMembershipLimited()
is max member limited
getRegistrationType()
get registration type
const IL_CAL_TRANSLATION_SYSTEM
const ERR_WRONG_MAX_MEMBERS
getRegistrationEnd()
get registration end
setWaitingListAutoFill($a_value)
static _after(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is after end This method does not consider tz offsets.
setParentRolePermissions($a_parent_ref)
This method is called before "initDefaultRoles".
getGroupStatus()
get group status
setStart(ilDate $start=null)
Set start.
cloneDependencies($a_target_id, $a_copy_id)
Clone object dependencies (crs items, preconditions)
static _before(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets.
join($a_user_id, $a_mem_role="")
join Group, assigns user to role private
createMetaData()
create meta data entry
setLongitude($a_longitude)
Set Longitude.
getLatitude()
Get Latitude.
const OUT_OF_REGISTRATION_PERIOD
getRegistrationAccessCode()
get access code
const ERR_MISSING_GROUP_TYPE
Apointment templates are used for automatic generated apointments.
static _lookupViewMode($a_id)
lookup view mode of container
initGroupStatus($a_grpStatus=GRP_TYPE_PUBLIC)
set group status
getEnableMap()
Type independent wrapper.
applyDidacticTemplate($a_tpl_id)
Apply template.
const GRP_REGISTRATION_PASSWORD
enableUnlimitedRegistration($a_status)
enable unlimited registration
getRegistrationStart()
get registration start
const ERR_MISSING_MIN_MAX_MEMBERS
static _clone($a_source_id, $a_target_id)
Clone fields.
getDefaultGroupRoles($a_grp_id="")
get default group roles, returns the defaultlike create roles il_grp_member, il_grp_admin public ...
static _getAllReferences($a_id)
get all reference ids of object
getGrpStatusOpenTemplateId()
get group status open template public
static createDefaultRole($a_title, $a_description, $a_tpl_name, $a_ref_id)
updateGroupType($a_group_type=GRP_TYPE_OPEN)
Change group type.
enableWaitingList($a_status)
enable waiting list
const TYPE_NOTIFICATION_REGISTRATION
static findGroupsWithNotEnoughMembers()
Minimum members check $ilDB $ilDB.
setShowMembers($a_status)
const TYPE_WAITING_LIST_MEMBER
getGrpStatusClosedTemplateId()
get group status closed template public
appendMessage($a_message)
leave($a_user_id)
deassign member from group role private
getGroupType()
get group type
static addAdditionalSubItemInformation(array &$a_item)
Parse item data for list entries.
catch(Exception $e) $message
setLatitude($a_latitude)
Set Latitude.
static lookupShowMembersEnabled(int $a_obj_id)
foreach($_POST as $key=> $value) $res
getId()
get object id public
const ERR_WRONG_MIN_MAX_MEMBERS
Interface for all objects that offer registration with access codes.
const MAIL_ALLOWED_TUTORS
static _usingRegistrationCode()
Using Registration code.
const ERR_WRONG_REGISTRATION_LIMITED
getLocalGroupRoles($a_translate=false)
get ALL local roles of group, also those created and defined afterwards only fetch data once from dat...
prepareAppointments($a_mode='create')
Prepare calendar appointments.
const REGISTRATION_CODE_DISABLED
static _lookupObjId($a_id)
enableMembershipLimitation($a_status)
enable max member limitation
getLocationZoom()
Get LocationZoom.
setPassword($a_pass)
set password
setViewMode($a_view_mode)
Set group view mode.
setMaxMembers($a_max)
set max members
setRegistrationEnd($a_end)
set registration end
setRegistrationType($a_type)
set registration type
getTitle()
get object title public
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone group (no member data)
initParticipants()
init participants object
getMemberRoles($a_user_id)
get group member status public
$file_obj
Group file object for handling of export files.
redirection script todo: (a better solution should control the processing via a xml file) ...
cloneMetaData($target_obj)
Copy meta data.
membership registration exception
setGroupType($a_type)
set group type
getEnableGroupMap()
Get Enable Group Map.
getInformation()
get Information
setMinMembers($a_max)
set min members
leaveGroup()
is called when a member decides to leave group public
getType()
get object type public
setInformation($a_information)
set information
getGroupAdminIds($a_grpId="")
get Group Admin Id public
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
getMailToMembersType()
Get mail to members type.
static _getTranslation($a_role_title)
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
setEnableGroupMap($a_enablemap)
Set Enable Group Map.
setGroupStatus($a_status)
Set group status.
getStart()
Get group start.
update($pash, $contents, Config $config)
static _lookupIdByTitle($a_title)
static quoteArray($a_array)
Quotes all members of an array for usage in DB query statement.
getPassword()
get password
static generateCode()
Generate new registration key.
setRegistrationStart($a_start)
set registration start
enableRegistrationAccessCode($a_status)
En/disable registration access code.
isRegistrationAccessCodeEnabled()
Check if access code is enabled.
static getInstanceByObjectType($a_obj_type)
Get instance by obj type.
setLocationZoom($a_locationzoom)
Set LocationZoom.
static translateViewMode($a_obj_id, $a_view_mode, $a_ref_id=null)
translate view mode
static lookupObjectsByCode($a_code)
getGroupMemberData($a_mem_ids, $active=1)
get all group Members regardless of group role.
static cloneDependencies($a_ref_id, $a_target_id, $a_copy_id)
Clone dependencies.
static lookupGroupTye($a_id)
Lookup group type.
getLongDescription()
get object long description (stored in object_description)
getRefId()
get reference id public
addAdditionalSubItemInformation(&$a_item_data)
Add additional information to sub item, e.g.
getGroupMemberIds()
get all group Member ids regardless of role public
static getLogger($a_component_id)
Get component logger.
static _lookupSortMode($a_obj_id)
lookup sort mode
initDefaultRoles()
init default roles settings public
const TYPE_ADMISSION_MEMBER
static _getGroupings($a_course_id)
setMailToMembersType($a_type)
Set mail to members type.
const GRP_REGISTRATION_DIRECT
static lookupViewMode($a_obj_id)
lookup view mode $ilDB
getViewMode()
Get effective container view mode.
setRegistrationAccessCode($a_code)
Set refistration access code.
_isMember($a_user_id, $a_ref_id, $a_field='')
addMember($a_user_id, $a_mem_role)
add Member to Group public
readGroupStatus()
get group status, redundant method because public
getMinMembers()
get min members
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
isWaitingListEnabled()
is waiting list enabled
static _lookupViewMode($a_id)
Lookup view mode.
isAdmin($a_userId)
is Admin public
const ERR_WRONG_REG_TIME_LIMIT