ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGroupParticipantsTableGUI Class Reference
+ Inheritance diagram for ilGroupParticipantsTableGUI:
+ Collaboration diagram for ilGroupParticipantsTableGUI:

Public Member Functions

 __construct ($a_parent_obj, $a_type= 'admin', $show_content=true, $show_learning_progress=false, $a_role_id=0)
 Constructor.
 getRole ()
 Get role.
 fillRow ($a_set)
 fill row
 parse ($a_user_data)
 Parse user data.
- Public Member Functions inherited from ilParticipantTableGUI
 getSelectableColumns ()
 Get selectable columns.
 checkAcceptance ($a_usr_id)
 Check acceptance.
- Public Member Functions inherited from ilTable2GUI
 __construct ($a_parent_obj, $a_parent_cmd="", $a_template_context="")
 Constructor.
 setOpenFormTag ($a_val)
 Set open form tag.
 getOpenFormTag ()
 Get open form tag.
 setCloseFormTag ($a_val)
 Set close form tag.
 getCloseFormTag ()
 Get close form tag.
 determineLimit ()
 Determine the limit.
 determineSelectedColumns ()
 Determine selected columns.
 isColumnSelected ($a_col)
 Is given column selected?
 getSelectedColumns ()
 Get selected columns.
executeCommand ()
 Execute command.
 resetOffset ($a_in_determination=false)
 Reset offset.
 initFilter ()
 Init filter.
 getParentObject ()
 Get parent object.
 getParentCmd ()
 Get parent command.
 setTopAnchor ($a_val)
 Set top anchor.
 getTopAnchor ()
 Get top anchor.
 setNoEntriesText ($a_text)
 Set text for an empty table.
 getNoEntriesText ()
 Get text for an empty table.
 setIsDataTable ($a_val)
 Set is data table.
 getIsDataTable ()
 Get is data table.
 setEnableTitle ($a_enabletitle)
 Set Enable Title.
 getEnableTitle ()
 Get Enable Title.
 setEnableHeader ($a_enableheader)
 Set Enable Header.
 getEnableHeader ()
 Get Enable Header.
 setEnableNumInfo ($a_val)
 Set enable num info.
 getEnableNumInfo ()
 Get enable num info.
 setTitle ($a_title, $a_icon=0, $a_icon_alt=0)
 Set title and title icon.
 setDescription ($a_val)
 Set description.
 getDescription ()
 Get description.
 setOrderField ($a_order_field)
 set order column
 getOrderField ()
 setData ($a_data)
 set table data public
 getData ()
 dataExists ()
 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 separately) public
 getPrefix ()
 addFilterItem ($a_input_item, $a_optional=false)
 Add filter item.
 addFilterItemByMetaType ($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=NULL)
 Add filter by standard type.
 getFilterItems ($a_optionals=false)
 Get filter items.
 getFilterItemByPostVar ($a_post_var)
 setFilterCols ($a_val)
 Set filter columns.
 getFilterCols ()
 Get filter columns.
 setDisableFilterHiding ($a_val=true)
 Set disable filter hiding.
 getDisableFilterHiding ()
 Get disable filter hiding.
 isFilterSelected ($a_col)
 Is given filter selected?
 getSelectedFilters ()
 Get selected filters.
 determineSelectedFilters ()
 Determine selected filters.
 setCustomPreviousNext ($a_prev_link, $a_next_link)
 Set custom previous/next links.
 setFormAction ($a_form_action, $a_multipart=false)
 Set Form action parameter.
 getFormAction ()
 Get Form action parameter.
 setFormName ($a_formname)
 Set Form name.
 getFormName ()
 Get Form name.
 setId ($a_val)
 Set id.
 getId ()
 Get element id.
 setDisplayAsBlock ($a_val)
 Set display as block.
 getDisplayAsBlock ()
 Get display as block.
 getSelectAllCheckbox ()
 Get the name of the checkbox that should be toggled with a select all button.
 setSelectAllCheckbox ($a_select_all_checkbox)
 Set the name of the checkbox that should be toggled with a select all button.
 setExternalSorting ($a_val)
 Set external sorting.
 getExternalSorting ()
 Get external sorting.
 setFilterCommand ($a_val, $a_caption=null)
 Set filter command.
 getFilterCommand ()
 Get filter command.
 setResetCommand ($a_val, $a_caption=null)
 Set reset filter command.
 getResetCommand ()
 Get reset filter command.
 setExternalSegmentation ($a_val)
 Set external segmentation.
 getExternalSegmentation ()
 Get external segmentation.
 setRowTemplate ($a_template, $a_template_dir="")
 Set row template.
 setDefaultOrderField ($a_defaultorderfield)
 Set Default order field.
 getDefaultOrderField ()
 Get Default order field.
 setDefaultOrderDirection ($a_defaultorderdirection)
 Set Default order direction.
 getDefaultOrderDirection ()
 Get Default order direction.
 clearCommandButtons ()
 addCommandButton ($a_cmd, $a_text, $a_onclick= '', $a_id="", $a_class=null)
 Add Command button.
 addCommandButtonInstance (ilButton $a_button)
 Add Command button instance.
 addSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection= '')
 Add Selection List + Command button.
 addMultiItemSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection= '')
 Add Selection List + Command button for selected items.
 setCloseCommand ($a_link)
 Add command for closing table.
 addMultiCommand ($a_cmd, $a_text)
 Add Command button.
 addHiddenInput ($a_name, $a_value)
 Add Hidden Input field.
 addHeaderCommand ($a_href, $a_text, $a_target="", $a_img="")
 Add Header Command (Link) (Image needed for now)
 setTopCommands ($a_val)
 Set top commands (display command buttons on top of table, too)
 getTopCommands ()
 Get top commands (display command buttons on top of table, too)
 addColumn ($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
 Add a column to the header.
 getNavParameter ()
 setOrderLink ($sort_field, $order_dir)
 fillHeader ()
 determineOffsetAndOrder ($a_omit_offset=false)
 Determine offset and order.
 storeNavParameter ()
 getHTML ()
 Get HTML.
 numericOrdering ($a_field)
 Should this field be sorted numeric?
 render ()
 render table public
 writeFilterToSession ()
 Write filter values to session.
 resetFilter ()
 Reset filter.
 fillFooter ()
 Fill footer row.
 getLinkbar ($a_num)
 Get previous/next linkbar.
 fillHiddenRow ()
 fillActionRow ()
 Fill Action Row.
 setHeaderHTML ($html)
 set header html
 storeProperty ($type, $value)
 Store table property.
 loadProperty ($type)
 Load table property.
 getCurrentState ()
 get current settings for order, limit, columns and filter
 setContext ($id)
 Set context.
 getContext ()
 Get context.
 setShowRowsSelector ($a_value)
 Toggle rows-per-page selector.
 getShowRowsSelector ()
 Get rows-per-page selector state.
 setShowTemplates ($a_value)
 Toggle templates.
 getShowTemplates ()
 Get template state.
 restoreTemplate ($a_name)
 Restore state from template.
 saveTemplate ($a_name)
 Save current state as template.
 deleteTemplate ($a_name)
 Delete template.
 getLimit ()
 Get limit.
 getOffset ()
 Get offset.
 setExportFormats (array $formats)
 Set available export formats.
 setPrintMode ($a_value=false)
 Toogle print mode.
 getPrintMode ()
 Get print mode.
 getExportMode ()
 Was export activated?
 exportData ($format, $send=false)
 Export and optionally send current table data.
 setEnableAllCommand ($a_value)
 Enable actions for all entries in current result.
 setRowSelectorLabel ($row_selector_label)
 getRowSelectorLabel ()
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission.
 getPreventDoubleSubmission ()
 Get prevent double submission.
- Public Member Functions inherited from ilTableGUI
 ilTableGUI ($a_data=0, $a_global_tpl=true)
 Constructor.
 setTemplate (&$a_tpl)
 set template public
getTemplateObject ()
 setHelp ($a_help_page, $a_help_icon, $a_help_icon_alt=0)
 set table help page public
 setHeaderNames ($a_header_names)
 set table header names public
 getColumnCount ()
 Returns the column count based on the number of the header row columns public.
 setHeaderVars ($a_header_vars, $a_header_params=0)
 set table header vars public
 setColumnWidth ($a_column_width)
 set table column widths public
 setOneColumnWidth ($a_column_width, $a_column_number)
 set one table column width public
 setMaxCount ($a_max_count)
 set max.
 setLimit ($a_limit=0, $a_default_limit=0)
 set max.
 setOffset ($a_offset)
 set dataset offset public
 setOrderColumn ($a_order_column=0, $a_default_column=0)
 set order column public
 getOrderColumn ()
 Get order column.
 setOrderDirection ($a_order_direction)
 set order direction public
 getOrderDirection ()
 Get order direction.
 setFooter ($a_style, $a_previous=0, $a_next=0)
 set order direction public
 enable ($a_module_name)
 enables particular modules of table
 disable ($a_module_name)
 diesables particular modules of table
 sortData ()
 renderHeader ()
 setStyle ($a_element, $a_style)
 getStyle ($a_element)
 setBase ($a_base)
 Set Base script name (deprecated, only use this for workarounds).
 getBase ()
 Get Base script name (deprecated, only use this for workarounds).
 clearActionButtons ()
 addActionButton ($btn_name, $btn_value)

Protected Attributes

 $type = 'admin'
 $role = 0
 $show_learning_progress = false
 $show_edit_link = TRUE

Additional Inherited Members

- Static Public Member Functions inherited from ilTable2GUI
static getAllCommandLimit ()
 Get maximum number of entries to enable actions for all.
- Data Fields inherited from ilTable2GUI
const FILTER_TEXT = 1
const FILTER_SELECT = 2
const FILTER_DATE = 3
const FILTER_LANGUAGE = 4
const FILTER_NUMBER_RANGE = 5
const FILTER_DATE_RANGE = 6
const FILTER_DURATION_RANGE = 7
const FILTER_DATETIME_RANGE = 8
const EXPORT_EXCEL = 1
const EXPORT_CSV = 2
const ACTION_ALL_LIMIT = 1000
- Protected Member Functions inherited from ilParticipantTableGUI
 initSettings ()
 Init acceptance.
 showActionLinks ($a_set)
 show edit links
- Static Protected Attributes inherited from ilParticipantTableGUI
static $export_allowed = false
static $confirmation_required = true
static $accepted_ids = null
static $all_columns = null
static $has_odf_definitions = false

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilGroupParticipantsTableGUI.php.

Constructor & Destructor Documentation

ilGroupParticipantsTableGUI::__construct (   $a_parent_obj,
  $a_type = 'admin',
  $show_content = true,
  $show_learning_progress = false,
  $a_role_id = 0 
)

Constructor.

public

Parameters
@return

Definition at line 28 of file class.ilGroupParticipantsTableGUI.php.

References $ilCtrl, $lng, $show_learning_progress, ilPrivacySettings\_getInstance(), ilTable2GUI\addColumn(), ilTable2GUI\addCommandButton(), ilTableGUI\disable(), ilTableGUI\enable(), ilParticipantTableGUI\getSelectableColumns(), ilTable2GUI\getSelectedColumns(), ilParticipantTableGUI\initSettings(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setPrefix(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setSelectAllCheckbox(), and ilTable2GUI\setShowRowsSelector().

{
global $lng,$ilCtrl;
$this->show_learning_progress = $show_learning_progress;
$this->lng = $lng;
$this->lng->loadLanguageModule('grp');
$this->lng->loadLanguageModule('trac');
$this->ctrl = $ilCtrl;
$this->type = $a_type;
$this->role = $a_role_id;
include_once('./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
$this->privacy = ilPrivacySettings::_getInstance();
switch($this->type)
{
case 'admin':
$this->setPrefix('admin');
break;
case 'member':
$this->setPrefix('member');
break;
default:
$this->setPrefix('role');
break;
}
$this->setId('grp_'.$a_type.'_'.$this->getRole().'_'.$a_parent_obj->object->getId());
parent::__construct($a_parent_obj,'members');
$this->initSettings();
$this->setFormName('participants');
$this->addColumn('','f',"1");
$this->addColumn($this->lng->txt('name'),'lastname','20%');
$all_cols = $this->getSelectableColumns();
foreach($this->getSelectedColumns() as $col)
{
$this->addColumn($all_cols[$col]['txt'],$col);
}
if($this->show_learning_progress)
{
$this->addColumn($this->lng->txt('learning_progress'),'progress');
}
if($this->privacy->enabledGroupAccessTimes())
{
$this->addColumn($this->lng->txt('last_access'),'access_time_unix');
}
if($this->type == 'admin')
{
$this->setSelectAllCheckbox('admins');
$this->addColumn($this->lng->txt('grp_notification'),'notification');
$this->addCommandButton('updateStatus',$this->lng->txt('save'));
}
elseif($this->type == 'member')
{
$this->setSelectAllCheckbox('members');
}
else
{
$this->setSelectAllCheckbox('roles');
}
$this->addColumn($this->lng->txt(''),'optional');
$this->setDefaultOrderField('lastname');
$this->setRowTemplate("tpl.show_participants_row.html","Modules/Group");
$this->setShowRowsSelector(true);
if($show_content)
{
$this->enable('sort');
$this->enable('header');
$this->enable('numinfo');
$this->enable('select_all');
}
else
{
$this->disable('content');
$this->disable('header');
$this->disable('footer');
$this->disable('numinfo');
$this->disable('select_all');
}
}

+ Here is the call graph for this function:

Member Function Documentation

ilGroupParticipantsTableGUI::fillRow (   $a_set)

fill row

public

Parameters
@return

Reimplemented from ilTable2GUI.

Definition at line 144 of file class.ilGroupParticipantsTableGUI.php.

References $ilUser, ilObjUser\_lookupActive(), ilDatePresentation\formatDate(), ilDatePresentation\formatPeriod(), ilUtil\getImagePath(), ilTable2GUI\getSelectedColumns(), IL_CAL_DATE, IL_CAL_UNIX, ilLPStatus\LP_STATUS_COMPLETED, ilLPStatus\LP_STATUS_FAILED, ilLPStatus\LP_STATUS_IN_PROGRESS, ilLPStatus\LP_STATUS_NOT_ATTEMPTED, and ilParticipantTableGUI\showActionLinks().

{
global $ilUser,$ilAccess;
$this->tpl->setVariable('VAL_ID',$a_set['usr_id']);
$this->tpl->setVariable('VAL_NAME',$a_set['lastname'].', '.$a_set['firstname']);
if(!$ilAccess->checkAccessOfUser($a_set['usr_id'],'read','',$this->getParentObject()->object->getRefId()) and
is_array($info = $ilAccess->getInfo()))
{
$this->tpl->setCurrentBlock('access_warning');
$this->tpl->setVariable('PARENT_ACCESS',$info[0]['text']);
$this->tpl->parseCurrentBlock();
}
if(!ilObjUser::_lookupActive($a_set['usr_id']))
{
$this->tpl->setCurrentBlock('access_warning');
$this->tpl->setVariable('PARENT_ACCESS',$this->lng->txt('usr_account_inactive'));
$this->tpl->parseCurrentBlock();
}
foreach($this->getSelectedColumns() as $field)
{
switch($field)
{
case 'gender':
$a_set['gender'] = $a_set['gender'] ? $this->lng->txt('gender_'.$a_set['gender']) : '';
$this->tpl->setCurrentBlock('custom_fields');
$this->tpl->setVariable('VAL_CUST',$a_set[$field]);
$this->tpl->parseCurrentBlock();
break;
case 'birthday':
$a_set['birthday'] = $a_set['birthday'] ? ilDatePresentation::formatDate(new ilDate($a_set['birthday'],IL_CAL_DATE)) : $this->lng->txt('no_date');
$this->tpl->setCurrentBlock('custom_fields');
$this->tpl->setVariable('VAL_CUST',$a_set[$field]);
$this->tpl->parseCurrentBlock();
break;
case 'consultation_hour':
$this->tpl->setCurrentBlock('custom_field');
$dts = array();
foreach((array) $a_set['consultation_hours'] as $ch)
{
new ilDateTime($ch['dt'],IL_CAL_UNIX),
new ilDateTime($ch['dtend'],IL_CAL_UNIX)
);
if($ch['explanation'])
{
$tmp .= ' ' . $ch['explanation'];
}
$dts[] = $tmp;
}
$dt_string = implode('<br />', $dts);
$this->tpl->setVariable('VAL_CUST',$dt_string) ;
$this->tpl->parseCurrentBlock();
break;
case 'prtf':
$tmp = array();
if(is_array($a_set['prtf']))
{
foreach($a_set['prtf'] as $prtf_url => $prtf_txt)
{
$tmp[] = '<a href="'.$prtf_url.'">'.$prtf_txt.'</a>';
}
}
$this->tpl->setVariable('VAL_CUST', implode('<br />', $tmp)) ;
break;
case 'odf_last_update':
$this->tpl->setVariable('VAL_EDIT_INFO',(string) $a_set['odf_info_txt']);
break;
default:
$this->tpl->setCurrentBlock('custom_fields');
$this->tpl->setVariable('VAL_CUST',isset($a_set[$field]) ? (string) $a_set[$field] : '');
$this->tpl->parseCurrentBlock();
break;
}
}
if($this->privacy->enabledGroupAccessTimes())
{
$this->tpl->setVariable('VAL_ACCESS',$a_set['access_time']);
}
if($this->show_learning_progress)
{
$this->tpl->setCurrentBlock('lp');
switch($a_set['progress'])
{
$this->tpl->setVariable('LP_STATUS_ALT',$this->lng->txt($a_set['progress']));
$this->tpl->setVariable('LP_STATUS_PATH',ilUtil::getImagePath('scorm/complete.svg'));
break;
$this->tpl->setVariable('LP_STATUS_ALT',$this->lng->txt($a_set['progress']));
$this->tpl->setVariable('LP_STATUS_PATH',ilUtil::getImagePath('scorm/incomplete.svg'));
break;
$this->tpl->setVariable('LP_STATUS_ALT',$this->lng->txt($a_set['progress']));
$this->tpl->setVariable('LP_STATUS_PATH',ilUtil::getImagePath('scorm/not_attempted.svg'));
break;
$this->tpl->setVariable('LP_STATUS_ALT',$this->lng->txt($a_set['progress']));
$this->tpl->setVariable('LP_STATUS_PATH',ilUtil::getImagePath('scorm/failed.svg'));
break;
}
$this->tpl->parseCurrentBlock();
}
if($this->type == 'admin')
{
$this->tpl->setVariable('VAL_POSTNAME','admins');
$this->tpl->setVariable('VAL_NOTIFICATION_ID',$a_set['usr_id']);
$this->tpl->setVariable('VAL_NOTIFICATION_CHECKED',$a_set['notification'] ? 'checked="checked"' : '');
}
elseif($this->type == 'member')
{
$this->tpl->setVariable('VAL_POSTNAME','members');
}
else
{
$this->tpl->setVariable('VAL_POSTNAME','roles');
}
$this->showActionLinks($a_set);
$this->tpl->setVariable('VAL_LOGIN',$a_set['login']);
}

+ Here is the call graph for this function:

ilGroupParticipantsTableGUI::getRole ( )

Get role.

Returns
type

Definition at line 130 of file class.ilGroupParticipantsTableGUI.php.

References $role.

Referenced by parse().

{
return $this->role;
}

+ Here is the caller graph for this function:

ilGroupParticipantsTableGUI::parse (   $a_user_data)

Parse user data.

Parameters
array$a_user_data
Returns

Definition at line 289 of file class.ilGroupParticipantsTableGUI.php.

References ilTableGUI\$data, $GLOBALS, ilPrivacySettings\_getInstance(), ilGroupParticipants\_getInstanceByObjId(), ilCourseUserData\_getValuesByObjId(), ilObjUser\_lookupName(), ilParticipantTableGUI\checkAcceptance(), ilDatePresentation\formatDate(), ilTable2GUI\getParentObject(), getRole(), ilTable2GUI\getSelectedColumns(), ilUserQuery\getUserListData(), IL_CAL_UNIX, ilTable2GUI\isColumnSelected(), ilUserDefinedData\lookupData(), ilObjectCustomUserFieldHistory\lookupEntriesByObjectId(), ilBookingEntry\lookupManagedBookingsForObject(), and ilTable2GUI\setData().

{
include_once './Services/User/classes/class.ilUserQuery.php';
$additional_fields = $this->getSelectedColumns();
unset($additional_fields["firstname"]);
unset($additional_fields["lastname"]);
unset($additional_fields["last_login"]);
unset($additional_fields["access_until"]);
unset($additional_fields['consultation_hour']);
unset($additional_fields['prtf']);
switch($this->type)
{
case 'admin':
$part = ilGroupParticipants::_getInstanceByObjId($this->getParentObject()->object->getId())->getAdmins();
break;
case 'member':
$part = $GLOBALS['rbacreview']->assignedUsers($this->getRole());
break;
case 'role':
$part = $GLOBALS['rbacreview']->assignedUsers($this->getRole());
break;
}
$udf_ids = $usr_data_fields = $odf_ids = array();
foreach($additional_fields as $field)
{
if(substr($field,0,3) == 'udf')
{
$udf_ids[] = substr($field,4);
continue;
}
if(substr($field,0,3) == 'odf')
{
$odf_ids[] = substr($field,4);
continue;
}
$usr_data_fields[] = $field;
}
'login',
'ASC',
0,
9999,
'',
'',
null,
false,
false,
0,
0,
null,
$usr_data_fields,
$part
);
// Custom user data fields
if($udf_ids)
{
include_once './Services/User/classes/class.ilUserDefinedData.php';
foreach($data as $usr_id => $fields)
{
if(!$this->checkAcceptance($usr_id))
{
continue;
}
foreach($fields as $field_id => $value)
{
$a_user_data[$usr_id]['udf_'.$field_id] = $value;
}
}
}
// Object specific user data fields
if($odf_ids)
{
include_once './Modules/Course/classes/Export/class.ilCourseUserData.php';
foreach($data as $usr_id => $fields)
{
if(!$this->checkAcceptance($usr_id))
{
continue;
}
foreach($fields as $field_id => $value)
{
if($a_user_data[$usr_id])
{
$a_user_data[$usr_id]['odf_'.$field_id] = $value;
}
}
}
// add last edit date
include_once './Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
foreach(ilObjectCustomUserFieldHistory::lookupEntriesByObjectId($this->getParentObject()->object->getId()) as $usr_id => $edit_info)
{
if(!isset($a_user_data[$usr_id]))
{
continue;
}
include_once './Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
if($usr_id == $edit_info['update_user'])
{
$a_user_data[$usr_id]['odf_last_update'] = '';
$a_user_data[$usr_id]['odf_info_txt'] = $GLOBALS['lng']->txt('cdf_edited_by_self');
if(ilPrivacySettings::_getInstance()->enabledAccessTimesByType($this->getParentObject()->object->getType()))
{
$a_user_data[$usr_id]['odf_last_update'] .= ('_'.$edit_info['editing_time']->get(IL_CAL_UNIX));
$a_user_data[$usr_id]['odf_info_txt'] .= (', '.ilDatePresentation::formatDate($edit_info['editing_time']));
}
}
else
{
$a_user_data[$usr_id]['odf_last_update'] = $edit_info['edit_user'];
$a_user_data[$usr_id]['odf_last_update'] .= ('_'.$edit_info['editing_time']->get(IL_CAL_UNIX));
$name = ilObjUser::_lookupName($edit_info['update_user']);
$a_user_data[$usr_id]['odf_info_txt'] = ($name['firstname'].' '.$name['lastname'].', '.ilDatePresentation::formatDate($edit_info['editing_time']));
}
}
}
foreach($usr_data['set'] as $user)
{
// Check acceptance
if(!$this->checkAcceptance($user['usr_id']))
{
continue;
}
// DONE: accepted
foreach($usr_data_fields as $field)
{
$a_user_data[$user['usr_id']][$field] = $user[$field] ? $user[$field] : '';
}
}
// consultation hours
if($this->isColumnSelected('consultation_hour'))
{
include_once './Services/Booking/classes/class.ilBookingEntry.php';
foreach(ilBookingEntry::lookupManagedBookingsForObject($this->getParentObject()->object->getId(), $GLOBALS['ilUser']->getId()) as $buser => $booking)
{
if(isset($a_user_data[$buser]))
{
$a_user_data[$buser]['consultation_hour'] = $booking[0]['dt'];
$a_user_data[$buser]['consultation_hour_end'] = $booking[0]['dtend'];
$a_user_data[$buser]['consultation_hours'] = $booking;
}
}
}
return $this->setData($a_user_data);
}

+ Here is the call graph for this function:

Field Documentation

ilGroupParticipantsTableGUI::$role = 0
protected

Definition at line 16 of file class.ilGroupParticipantsTableGUI.php.

Referenced by getRole().

ilGroupParticipantsTableGUI::$show_edit_link = TRUE
protected

Definition at line 18 of file class.ilGroupParticipantsTableGUI.php.

ilGroupParticipantsTableGUI::$show_learning_progress = false
protected

Definition at line 17 of file class.ilGroupParticipantsTableGUI.php.

Referenced by __construct().

ilGroupParticipantsTableGUI::$type = 'admin'
protected

Definition at line 15 of file class.ilGroupParticipantsTableGUI.php.


The documentation for this class was generated from the following file: