24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   61                $this->lng->loadLanguageModule(
'grp');
 
   62                $this->lng->loadLanguageModule(
'crs');
 
   70                parent::__construct($a_parent_obj,
'participants');
 
   73                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'participants'));
 
   76                $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
 
   81                        $this->
addColumn($all_cols[$col][
'txt'], $col);
 
   84                $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"10%");
 
   87                        $this->
addColumn($this->lng->txt(
'subject'),
'subject',
'15%');
 
   93                        $this->
addMultiCommand(
'confirmAssignSubscribers',$this->lng->txt(
'sess_accept_request'));
 
   96                        $this->
addMultiCommand(
'confirmAssignSubscribers',$this->lng->txt(
'assign'));
 
   99                $this->
addMultiCommand(
'confirmRefuseSubscribers',$this->lng->txt(
'refuse'));
 
  100                $this->
addMultiCommand(
'sendMailToSelectedUsers',$this->lng->txt(
'crs_mem_send_mail'));
 
  105                $this->
setRowTemplate(
"tpl.show_subscribers_row.html",
"Services/Membership");
 
  112                        $this->
enable(
'select_all');
 
  125                include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
  144                if(self::$all_columns)
 
  149                include_once 
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
 
  168                include_once 
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
 
  173                        $this->tpl->setVariable(
'ALERT_MSG',
 
  180                $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
 
  181                $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
 
  188                                        $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) : 
'';
 
  189                                        $this->tpl->setCurrentBlock(
'custom_fields');
 
  190                                        $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
 
  191                                        $this->tpl->parseCurrentBlock();
 
  196                                        $this->tpl->setCurrentBlock(
'custom_fields');
 
  197                                        $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
 
  198                                        $this->tpl->parseCurrentBlock();
 
  201                                case 'odf_last_update':
 
  202                                        $this->tpl->setVariable(
'VAL_CUST',(
string) $a_set[
'odf_info_txt']);
 
  206                                        $this->tpl->setCurrentBlock(
'custom_fields');
 
  207                                        include_once 
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
 
  208                                        $this->tpl->setVariable(
'VAL_CUST', (
string) ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set[
'usr_id']));
 
  209                                        $this->tpl->parseCurrentBlock();
 
  213                                        $this->tpl->setCurrentBlock(
'custom_fields');
 
  214                                        $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] : 
'');
 
  215                                        $this->tpl->parseCurrentBlock();
 
  230                        if(strlen($a_set[
'subject']))
 
  232                                $this->tpl->setCurrentBlock(
'subject');
 
  233                                $this->tpl->setVariable(
'VAL_SUBJECT',
'"'.$a_set[
'subject'].
'"');
 
  234                                $this->tpl->parseCurrentBlock();
 
  238                                $this->tpl->touchBlock(
'subject');
 
  250                if(!self::$has_odf_definitions)
 
  252                        $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'usr_id']);
 
  253                        $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
 
  254                        $this->tpl->setVariable(
'MAIL_LINK',$link);
 
  255                        $this->tpl->setVariable(
'MAIL_TITLE',$this->lng->txt(
'crs_mem_send_mail'));
 
  260                include_once 
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
  262                $list->setSelectionHeaderClass(
'small');
 
  263                $list->setItemLinkClass(
'small');
 
  264                $list->setId(
'actl_'.$a_set[
'usr_id'].
'_'.$this->
getId());
 
  265                $list->setListTitle($this->lng->txt(
'actions'));
 
  267                $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'usr_id']);
 
  268                $this->ctrl->setParameter($this->parent_obj, 
'member_id', $a_set[
'usr_id']);
 
  270                $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
 
  271                $list->addItem($trans, 
'', $link,
'sendMailToSelectedUsers');
 
  273                $this->ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id',$a_set[
'usr_id']);
 
  275                $list->addItem($trans, 
'', $this->ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember'));
 
  277                $this->tpl->setVariable(
'ACTION_USER',$list->getHTML());
 
  291                include_once 
'./Services/Membership/classes/class.ilParticipants.php';
 
  296                foreach($sub_data as $usr_id => $usr_data)
 
  298                        $sub_ids[] = $usr_id;
 
  303                include_once 
'./Services/User/classes/class.ilUserQuery.php';
 
  306                unset($additional_fields[
"firstname"]);
 
  307                unset($additional_fields[
"lastname"]);
 
  308                unset($additional_fields[
"last_login"]);
 
  309                unset($additional_fields[
"access_until"]);
 
  310                unset($additional_fields[
'org_units']);
 
  312                $udf_ids = $usr_data_fields = $odf_ids = array();
 
  313                foreach($additional_fields as $field)
 
  315                        if(substr($field, 0, 3) == 
'udf')
 
  317                                $udf_ids[] = substr($field, 4);
 
  320                        if(substr($field, 0, 3) == 
'odf')
 
  322                                $odf_ids[] = substr($field, 4);
 
  326                        $usr_data_fields[] = $field;
 
  346                foreach((array) $usr_data[
'set'] as $user)
 
  348                        $usr_ids[] = $user[
'usr_id'];
 
  352                $course_user_data = $this->
getParentObject()->readMemberData($usr_ids, array());
 
  353                $a_user_data = array();
 
  354                foreach((array) $usr_data[
'set'] as $ud)
 
  356                        $a_user_data[$ud[
'usr_id']] = array_merge($ud,(array) $course_user_data[$ud[
'usr_id']]);
 
  362                        include_once 
'./Services/User/classes/class.ilUserDefinedData.php';
 
  364                        foreach(
$data as $usr_id => $fields)
 
  371                                foreach($fields as $field_id => $value)
 
  373                                        $a_user_data[$usr_id][
'udf_' . $field_id] = $value;
 
  380                        include_once 
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
 
  382                        foreach(
$data as $usr_id => $fields)
 
  390                                foreach($fields as $field_id => $value)
 
  392                                        $a_user_data[$usr_id][
'odf_' . $field_id] = $value;
 
  397                        include_once 
'./Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
 
  400                                if(!isset($a_user_data[$usr_id]))
 
  405                                include_once 
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
 
  406                                if($usr_id == $edit_info[
'update_user'])
 
  408                                        $a_user_data[$usr_id][
'odf_last_update'] = 
'';
 
  409                                        $a_user_data[$usr_id][
'odf_info_txt'] = 
$GLOBALS[
'lng']->txt(
'cdf_edited_by_self');
 
  412                                                $a_user_data[$usr_id][
'odf_last_update'] .= (
'_'.$edit_info[
'editing_time']->get(
IL_CAL_UNIX));
 
  413                                                $a_user_data[$usr_id][
'odf_info_txt'] .= (
', '.ilDatePresentation::formatDate($edit_info[
'editing_time']));
 
  418                                        $a_user_data[$usr_id][
'odf_last_update'] = $edit_info[
'update_user'];
 
  419                                        $a_user_data[$usr_id][
'odf_last_update'] .= (
'_'.$edit_info[
'editing_time']->get(
IL_CAL_UNIX));
 
  422                                        $a_user_data[$usr_id][
'odf_info_txt'] = ($name[
'firstname'].
' '.$name[
'lastname'].
', '.
ilDatePresentation::formatDate($edit_info[
'editing_time']));
 
  427                foreach($usr_data[
'set'] as $user)
 
  435                        foreach($usr_data_fields as $field)
 
  437                                $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] : 
'';
 
  442                foreach($sub_data as $usr_id => $usr_data)
 
  444                        if(!in_array($usr_id, $usr_ids))
 
  448                        $a_user_data[$usr_id][
'sub_time'] = $usr_data[
'time'];
 
  449                        $a_user_data[$usr_id][
'subject'] = $usr_data[
'subject'];
 
  453                return $this->
setData($a_user_data);
 
  463                $this->show_subject  = (bool)$a_value;
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static _hasFields($a_container_id)
Check if there are any define fields.
static _getValuesByObjId($a_obj_id)
Get values by obj_id (for all users)
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _getInstanceByType($a_type)
Get Singleton Instance.
static _checkGroupingDependencies(&$container_obj, $a_user_id=null)
static getAssignedObjects()
Alway call checkGroupingDependencies before.
static _lookupName($a_user_id)
lookup user name
static lookupEntriesByObjectId($a_obj_id)
Get entries by obj_id @global type $ilDB.
static _lookupTitle($a_id)
lookup object title
static lookupSubscribersData($a_obj_id)
static _getInstance()
Get instance of ilPrivacySettings.
GUI class for course/group subscriptions.
readSubscriberData()
read data
getSelectableColumns()
Get selectable columns.
showActionLinks($a_set)
Show action links (mail ; edit crs|grp data)
static $has_odf_definitions
__construct($a_parent_obj, $rep_object, $show_content=true, $show_subject=true)
Constructor.
getSelectedColumns()
Get selected columns.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
getParentObject()
Get parent object.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setExternalSegmentation($a_val)
Set external segmentation.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
getOrderDirection()
Get order direction.
setMaxCount($a_max_count)
set max.
disable($a_module_name)
diesables particular modules of table
enable($a_module_name)
enables particular modules of table
static lookupData($a_user_ids, $a_field_ids)
Lookup data.
static getUserListData($a_order_field, $a_order_dir, $a_offset, $a_limit, $a_string_filter="", $a_activation_filter="", $a_last_login_filter=null, $a_limited_access_filter=false, $a_no_courses_filter=false, $a_course_group_filter=0, $a_role_filter=0, $a_user_folder_filter=null, $a_additional_fields='', $a_user_filter=null, $a_first_letter="")
Get data for user administration list.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.