ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilTable2GUI Class Reference

Class ilTable2GUI. More...

+ Inheritance diagram for ilTable2GUI:
+ Collaboration diagram for ilTable2GUI:

Public Member Functions

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

Static Public Member Functions

static getAllCommandLimit ()
 Get maximum number of entries to enable actions for all. More...
 

Data Fields

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
 
- Data Fields inherited from ilTableGUI
 $title
 
 $icon
 
 $icon_alt
 
 $help_page
 
 $help_icon
 
 $help_icon_alt
 
 $header_names
 
 $header_vars
 
 $linkbar_vars
 
 $data
 
 $column_count
 
 $column_width
 
 $max_count
 
 $limit
 
 $max_limit = false
 
 $offset
 
 $order_column
 
 $order_direction
 
 $footer_style
 
 $footer_previous
 
 $footer_next
 
 $lang_support = true
 
 $global_tpl
 
 $form_name
 
 $select_all_checkbox
 
 $action_buttons
 
 $prefix
 
 $base = ""
 
 $enabled
 
 $styles
 

Protected Member Functions

 prepareOutput ()
 Anything that must be done before HTML is generated. More...
 
 isFilterVisible ()
 Check if filter is visible: manually shown (session, db) or default value set. More...
 
 isAdvMDFilter (ilAdvancedMDRecordGUI $a_gui, $a_element)
 Check if filter element is based on adv md. More...
 
 fillRow ($a_set)
 Standard Version of Fill Row. More...
 
 getFilterValue (ilFormPropertyGUI $a_item)
 Get current filter value. More...
 
 SetFilterValue (ilFormPropertyGUI $a_item, $a_value)
 Set current filter value. More...
 
 fillMetaExcel (ilExcel $a_excel, &$a_row)
 Add meta information to excel export. More...
 
 fillHeaderExcel (ilExcel $a_excel, &$a_row)
 Excel Version of Fill Header. More...
 
 fillRowExcel (ilExcel $a_excel, &$a_row, $a_set)
 Excel Version of Fill Row. More...
 
 fillMetaCSV ($a_csv)
 Add meta information to csv export. More...
 
 fillHeaderCSV ($a_csv)
 CSV Version of Fill Header. More...
 
 fillRowCSV ($a_csv, $a_set)
 CSV Version of Fill Row. More...
 

Protected Attributes

 $close_command = ""
 
 $top_anchor = "il_table_top"
 
 $filters = array()
 
 $optional_filters = array()
 
 $filter_cmd = 'applyFilter'
 
 $reset_cmd = 'resetFilter'
 
 $filter_cols = 5
 
 $ext_sort = false
 
 $ext_seg = false
 
 $context = ""
 
 $mi_sel_buttons = null
 
 $disable_filter_hiding = false
 
 $selected_filter = false
 
 $top_commands = true
 
 $selectable_columns = array()
 
 $selected_column = array()
 
 $show_templates = false
 
 $show_rows_selector = true
 
 $rows_selector_off = false
 
 $nav_determined = false
 
 $limit_determined = false
 
 $filters_determined = false
 
 $columns_determined = false
 
 $open_form_tag = true
 
 $close_form_tag = true
 
 $export_formats
 
 $export_mode
 
 $print_mode
 
 $enable_command_for_all
 
 $restore_filter
 
 $restore_filter_values
 
 $default_filter_visibility = false
 
 $sortable_fields = array()
 
 $prevent_double_submission = true
 
 $row_selector_label
 

Private Member Functions

 renderFilter ()
 Render Filter section. More...
 

Private Attributes

 $unique_id
 
 $headerHTML
 

Detailed Description

Class ilTable2GUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
Id
class.ilTableGUI.php 12818 2006-12-10 13:14:43Z akill

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

Constructor & Destructor Documentation

◆ __construct()

ilTable2GUI::__construct (   $a_parent_obj,
  $a_parent_cmd = "",
  $a_template_context = "" 
)

Constructor.

Definition at line 89 of file class.ilTable2GUI.php.

References $_GET, $lng, $unique_id, array, determineLimit(), determineSelectedColumns(), getId(), restoreTemplate(), setContext(), setEnableNumInfo(), and setIsDataTable().

90  {
91  global $lng;
92 
93  parent::__construct(0, false);
94  $this->unique_id = md5(uniqid());
95  $this->parent_obj = $a_parent_obj;
96  $this->parent_cmd = $a_parent_cmd;
97  $this->buttons = array();
98  $this->header_commands = array();
99  $this->multi = array();
100  $this->hidden_inputs = array();
101  $this->formname = "table_" . $this->unique_id;
102  $this->tpl = new ilTemplate("tpl.table2.html", true, true, "Services/Table");
103 
104  $lng->loadLanguageModule('tbl');
105 
106  if(!$a_template_context)
107  {
108  $a_template_context = $this->getId();
109  }
110  $this->setContext($a_template_context);
111 
112  // activate export mode
113  if(isset($_GET[$this->prefix."_xpt"]))
114  {
115  $this->export_mode = (int)$_GET[$this->prefix."_xpt"];
116  }
117 
118  // template handling
119  if(isset($_GET[$this->prefix."_tpl"]))
120  {
121  $this->restoreTemplate($_GET[$this->prefix."_tpl"]);
122  }
123 
124  $this->determineLimit();
125  $this->setIsDataTable(true);
126  $this->setEnableNumInfo(true);
127  $this->determineSelectedColumns();
128  }
$_GET["client_id"]
setEnableNumInfo($a_val)
Set enable num info.
determineSelectedColumns()
Determine selected columns.
setIsDataTable($a_val)
Set is data table.
determineLimit()
Determine the limit.
restoreTemplate($a_name)
Restore state from template.
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
setContext($id)
Set context.
global $lng
Definition: privfeed.php:17
getId()
Get element id.
+ Here is the call graph for this function:

Member Function Documentation

◆ addColumn()

ilTable2GUI::addColumn (   $a_text,
  $a_sort_field = "",
  $a_width = "",
  $a_is_checkbox_action_column = false,
  $a_class = "",
  $a_tooltip = "",
  $a_tooltip_with_html = false 
)
final

Add a column to the header.

Parameters
stringText
stringSort field name (corresponds to data array field)
stringWidth string

Definition at line 1328 of file class.ilTable2GUI.php.

References array, and column.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilNotificationSettingsTable\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilLDAPServerTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilNewsForContextTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilObjWorkspaceFolderTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilObjClipboardTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilExerciseVerificationTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTestVerificationTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilCourseVerificationTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilSCORMVerificationTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilStudyProgrammeAcknowledgeCompletedCoursesTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilSurveySkillAssignmentTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilModulesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilStyleTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilBookingSchedulesTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilContributorTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilRendererTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilUserTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilTermListTableGUI\__construct(), ilOrgUnitTypeTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilStudyProgrammeTypeTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilLinksTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilSpecialUsersTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSystemStylesTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSystemStylesTableGUI\addActions(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\addColumns(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), ilExportTableGUI\addCustomColumn(), arIndexTableGUI\addMultipleSelectionColumn(), ilSCTreeDuplicatesTableGUI\init(), ilDidacticTemplateSettingsTableGUI\init(), ilSCGroupTableGUI\init(), ilLogComponentTableGUI\init(), ilUserClipboardTableGUI\init(), ilSCTaskTableGUI\init(), ilObjectCopyProgressTableGUI\init(), ilListOfQuestionsTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilObjectTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilSessionParticipantsTableGUI\init(), ilAssQuestionHintsTableGUI\initAdministrationColumns(), ilQuestionPoolImportVerificationTableGUI\initColumns(), ilTestPersonalDefaultSettingsTableGUI\initColumns(), ilTestPassManualScoringOverviewTableGUI\initColumns(), ilQuestionInternalLinkSelectionTableGUI\initColumns(), ilMailingListsTableGUI\initColumns(), ilImageMapTableGUI\initColumns(), ilExportTableGUI\initColumns(), ilMailingListsMembersTableGUI\initColumns(), ilQuestionUsagesTableGUI\initColumns(), ilQuestionCumulatedStatisticsTableGUI\initColumns(), ilTestManScoringParticipantsTableGUI\initColumns(), ilQuestionPoolPrintViewTableGUI\initColumns(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initColumns(), ilPCIIMTriggerTableGUI\initColumns(), ilOrgUnitTypeTableGUI\initColumns(), ilTestSkillLevelThresholdsTableGUI\initColumns(), ilTestExportTableGUI\initColumns(), ilMarkSchemaTableGUI\initColumns(), ilWorkflowEngineDefinitionsTableGUI\initColumns(), ilMemcacheServerTableGUI\initColumns(), ilTestPassDetailsOverviewTableGUI\initColumns(), ilRepositoryObjectSearchResultTableGUI\initColumns(), ilTestDynamicQuestionSetStatisticTableGUI\initColumns(), ilAssQuestionSkillAssignmentsTableGUI\initColumns(), ilStudyProgrammeTypeTableGUI\initColumns(), ilAssQuestionSkillUsagesTableGUI\initColumns(), ilTestPassOverviewTableGUI\initColumns(), ilObjectRolePermissionTableGUI\initColumns(), ilForumTopicTableGUI\initMergeThreadsTable(), ilECSServerTableGUI\initTable(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilHistoryTableGUI\initTable(), ilSCORMTrackingItemsPerScoTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingItemsPerUserTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilSCORMTrackingItemsScoTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilSCORMTrackingItemPerUserTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), ilForumDraftsTableGUI\initTableColumns(), arIndexTableGUI\initTableRowTemplate(), ilAssQuestionHintsTableGUI\initTestoutputColumns(), ilMailFolderTableGUI\prepareHTML(), ilLinkCheckerTableGUI\prepareHTML(), ilExportTableGUI\prepareOutput(), ilTestToplistGUI\prepareTable(), ilOrgUnitOtherRolesTableGUI\setTableHeaders(), and ilOrgUnitStaffTableGUI\setTableHeaders().

1330  {
1331  $this->column[] = array(
1332  "text" => $a_text,
1333  "sort_field" => $a_sort_field,
1334  "width" => $a_width,
1335  "is_checkbox_action_column" => $a_is_checkbox_action_column,
1336  "class" => $a_class,
1337  "tooltip" => $a_tooltip,
1338  "tooltip_html" => (bool)$a_tooltip_with_html
1339  );
1340  if ($a_sort_field != "")
1341  {
1342  $this->sortable_fields[] = $a_sort_field;
1343  }
1344  $this->column_count = count($this->column);
1345  }
Create styles array
The data for the language used.
Set thin black border outline around column
+ Here is the caller graph for this function:

◆ addCommandButton()

ilTable2GUI::addCommandButton (   $a_cmd,
  $a_text,
  $a_onclick = '',
  $a_id = "",
  $a_class = null 
)

Add Command button.

Parameters
stringCommand
stringText

Definition at line 1207 of file class.ilTable2GUI.php.

References array.

Referenced by ilQuestionPoolImportVerificationTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilSystemStylesTableGUI\addActions(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addCommands(), ilObjStudyProgrammeIndividualPlanGUI\appendIndividualPlanActions(), ilSCTreeDuplicatesTableGUI\init(), ilLogComponentTableGUI\init(), ilObjectCopyCourseGroupSelectionTableGUI\init(), ilUserClipboardTableGUI\init(), ilListOfQuestionsTableGUI\init(), ilAssQuestionSkillAssignmentsTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilImageMapTableGUI\initActions(), ilPCIIMTriggerTableGUI\initActions(), ilAssQuestionHintsTableGUI\initAdministrationCommands(), arDeleteGUI\initCommandButtons(), ilMailFolderTableGUI\initCommandButtons(), ilForumTopicTableGUI\initMergeThreadsTable(), ilConditionHandlerTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), ilAssQuestionHintsTableGUI\initTestoutputCommands(), ilLPCollectionSettingsTableGUI\parse(), ilExParticipantTableGUI\parseData(), ilExerciseMemberTableGUI\parseData(), ilLinkCheckerTableGUI\prepareHTML(), ilObjectTranslationTableGUI\prepareOutput(), ilObjectTranslation2TableGUI\prepareOutput(), ilMultilingualismTableGUI\prepareOutput(), and ilMediaPoolTableGUI\prepareOutput().

1208  {
1209  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, 'onclick' => $a_onclick,
1210  "id" => $a_id, "class" => $a_class);
1211  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ addCommandButtonInstance()

ilTable2GUI::addCommandButtonInstance ( ilButtonBase  $a_button)

Add Command button instance.

Parameters
ilButtonBase$a_button

Definition at line 1218 of file class.ilTable2GUI.php.

Referenced by ilAccountCodesTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilListOfQuestionsTableGUI\init(), and assFileUploadFileTableGUI\initCommand().

1219  {
1220  $this->buttons[] = $a_button;
1221  }
+ Here is the caller graph for this function:

◆ addFilterItem()

ilTable2GUI::addFilterItem (   $a_input_item,
  $a_optional = false 
)
final

Add filter item.

Filter items are property form inputs that implement the ilTableFilterItem interface

Definition at line 616 of file class.ilTable2GUI.php.

References $restore_filter_values.

Referenced by arIndexTableGUI\addFilterField(), addFilterItemByMetaType(), ilLPTableBaseGUI\initBaseFilter(), ilRoleAssignmentTableGUI\initFilter(), ilWorkflowEngineDefinitionsTableGUI\initFilter(), ilPDNewsTableGUI\initFilter(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilLPObjectStatisticsDailyTableGUI\initFilter(), ilTestManScoringParticipantsTableGUI\initFilter(), ilLPObjectStatisticsTableGUI\initFilter(), ilLPObjectStatisticsTypesTableGUI\initFilter(), ilLanguageExtTableGUI\initFilter(), ilTestDynamicQuestionSetStatisticTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilBuddySystemRelationsTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilPresentationListTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilTestPassDetailsOverviewTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilTestParticipantsTableGUI\initFilter(), ilRoleTableGUI\initFilter(), ilTermsOfServiceAcceptanceHistoryTableGUI\initFilter(), ilTermListTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilTrUserObjectsPropsTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), and ilMailFolderTableGUI\initFilter().

617  {
618  $a_input_item->setParent($this);
619  if (!$a_optional)
620  {
621  $this->filters[] = $a_input_item;
622  }
623  else
624  {
625  $this->optional_filters[] = $a_input_item;
626  }
627 
628  // restore filter values (from stored view)
629  if($this->restore_filter)
630  {
631  if(array_key_exists($a_input_item->getFieldId(), $this->restore_filter_values))
632  {
633  $this->setFilterValue($a_input_item, $this->restore_filter_values[$a_input_item->getFieldId()]);
634  }
635  else
636  {
637  $this->setFilterValue($a_input_item, null); // #14949
638  }
639  }
640  }
+ Here is the caller graph for this function:

◆ addFilterItemByMetaType()

ilTable2GUI::addFilterItemByMetaType (   $id,
  $type = self::FILTER_TEXT,
  $a_optional = false,
  $caption = NULL 
)

Add filter by standard type.

Parameters
string$id
int$type
bool$a_optional
string$caption
Returns
object

Definition at line 651 of file class.ilTable2GUI.php.

References $lng, $options, addFilterItem(), array, and ilCombinationInputGUI\COMPARISON_ASCENDING.

Referenced by arIndexTableGUI\addFilterField(), ilDclTextFieldRepresentation\addFilterInputFieldToTable(), ilDclDatetimeFieldRepresentation\addFilterInputFieldToTable(), ilDclBooleanFieldRepresentation\addFilterInputFieldToTable(), ilDclNumberFieldRepresentation\addFilterInputFieldToTable(), ilDclRatingFieldRepresentation\addFilterInputFieldToTable(), ilDclIliasReferenceFieldRepresentation\addFilterInputFieldToTable(), ilDclMobFieldRepresentation\addFilterInputFieldToTable(), ilDclFileuploadFieldRepresentation\addFilterInputFieldToTable(), ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilParticipantTableGUI\initFilter(), ilRbacLogTableGUI\initFilter(), ilObjectBadgeTableGUI\initFilter(), ilBadgeTableGUI\initFilter(), ilSCORMTrackingUsersTableGUI\initFilter(), ilBookingObjectsTableGUI\initFilter(), ilBadgeUserTableGUI\initFilter(), ilCourseParticipantsGroupsTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilExerciseSubmissionTableGUI\initFilter(), ilTrMatrixTableGUI\initFilter(), ilObjectRolePermissionTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), and ilBadgePersonalTableGUI\initFilters().

652  {
653  global $lng;
654 
655  if(!$caption)
656  {
657  $caption = $lng->txt($id);
658  }
659 
660  include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
661 
662  switch($type)
663  {
664  case self::FILTER_SELECT:
665  include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
666  $item = new ilSelectInputGUI($caption, $id);
667  break;
668 
669  case self::FILTER_DATE:
670  include_once("./Services/Form/classes/class.ilDateTimeInputGUI.php");
671  $item = new ilDateTimeInputGUI($caption, $id);
672  break;
673 
674  case self::FILTER_TEXT:
675  include_once("./Services/Form/classes/class.ilTextInputGUI.php");
676  $item = new ilTextInputGUI($caption, $id);
677  $item->setMaxLength(64);
678  $item->setSize(20);
679  // $item->setSubmitFormOnEnter(true);
680  break;
681 
682  case self::FILTER_LANGUAGE:
683  $lng->loadLanguageModule("meta");
684  include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
685  $item = new ilSelectInputGUI($caption, $id);
686  $options = array("" => $lng->txt("trac_all"));
687  foreach ($lng->getInstalledLanguages() as $lang_key)
688  {
689  $options[$lang_key] = $lng->txt("meta_l_".$lang_key);
690  }
691  $item->setOptions($options);
692  break;
693 
694  case self::FILTER_NUMBER_RANGE:
695  include_once("./Services/Form/classes/class.ilCombinationInputGUI.php");
696  include_once("./Services/Form/classes/class.ilNumberInputGUI.php");
697  $item = new ilCombinationInputGUI($caption, $id);
698  $combi_item = new ilNumberInputGUI("", $id."_from");
699  $item->addCombinationItem("from", $combi_item, $lng->txt("from"));
700  $combi_item = new ilNumberInputGUI("", $id."_to");
701  $item->addCombinationItem("to", $combi_item, $lng->txt("to"));
702  $item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
703  $item->setMaxLength(7);
704  $item->setSize(20);
705  break;
706 
707  case self::FILTER_DATE_RANGE:
708  include_once("./Services/Form/classes/class.ilCombinationInputGUI.php");
709  include_once("./Services/Form/classes/class.ilDateTimeInputGUI.php");
710  $item = new ilCombinationInputGUI($caption, $id);
711  $combi_item = new ilDateTimeInputGUI("", $id."_from");
712  $item->addCombinationItem("from", $combi_item, $lng->txt("from"));
713  $combi_item = new ilDateTimeInputGUI("", $id."_to");
714  $item->addCombinationItem("to", $combi_item, $lng->txt("to"));
715  $item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
716  break;
717 
718  case self::FILTER_DATETIME_RANGE:
719  include_once("./Services/Form/classes/class.ilCombinationInputGUI.php");
720  include_once("./Services/Form/classes/class.ilDateTimeInputGUI.php");
721  $item = new ilCombinationInputGUI($caption, $id);
722  $combi_item = new ilDateTimeInputGUI("", $id."_from");
723  $combi_item->setShowTime(true);
724  $item->addCombinationItem("from", $combi_item, $lng->txt("from"));
725  $combi_item = new ilDateTimeInputGUI("", $id."_to");
726  $combi_item->setShowTime(true);
727  $item->addCombinationItem("to", $combi_item, $lng->txt("to"));
728  $item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
729  break;
730 
731  case self::FILTER_DURATION_RANGE:
732  $lng->loadLanguageModule("form");
733  include_once("./Services/Form/classes/class.ilCombinationInputGUI.php");
734  include_once("./Services/Form/classes/class.ilDurationInputGUI.php");
735  $item = new ilCombinationInputGUI($caption, $id);
736  $combi_item = new ilDurationInputGUI("", $id."_from");
737  $combi_item->setShowMonths(false);
738  $combi_item->setShowDays(true);
739  $combi_item->setShowSeconds(true);
740  $item->addCombinationItem("from", $combi_item, $lng->txt("from"));
741  $combi_item = new ilDurationInputGUI("", $id."_to");
742  $combi_item->setShowMonths(false);
743  $combi_item->setShowDays(true);
744  $combi_item->setShowSeconds(true);
745  $item->addCombinationItem("to", $combi_item, $lng->txt("to"));
746  $item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
747  break;
748 
749  default:
750  return false;
751  }
752 
753  $this->addFilterItem($item, $a_optional);
754  $item->readFromSession();
755  return $item;
756  }
This class represents a duration (typical hh:mm:ss) property in a property form.
This class represents a selection list property in a property form.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
This class represents a date/time property in a property form.
if(!is_array($argv)) $options
This class represents a number property in a property form.
This class represents a text property in a property form.
Create styles array
The data for the language used.
This class represents a number property in a property form.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addHeaderCommand()

ilTable2GUI::addHeaderCommand (   $a_href,
  $a_text,
  $a_target = "",
  $a_img = "" 
)

Add Header Command (Link) (Image needed for now)

Parameters
stringhref
stringtext

Definition at line 1295 of file class.ilTable2GUI.php.

References array.

1296  {
1297  $this->header_commands[] = array("href" => $a_href, "text" => $a_text,
1298  "target" => $a_target, "img" => $a_img);
1299  }
Create styles array
The data for the language used.

◆ addHiddenInput()

ilTable2GUI::addHiddenInput (   $a_name,
  $a_value 
)

Add Hidden Input field.

Parameters
stringName
stringValue

Definition at line 1284 of file class.ilTable2GUI.php.

References array.

Referenced by ilPasteStyleCharacteristicTableGUI\__construct(), addMultiItemSelectionButton(), ilTestQuestionBrowserTableGUI\handleParameters(), and arDeleteGUI\initCommandButtons().

1285  {
1286  $this->hidden_inputs[] = array("name" => $a_name, "value" => $a_value);
1287  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ addMultiCommand()

ilTable2GUI::addMultiCommand (   $a_cmd,
  $a_text 
)

Add Command button.

Parameters
stringCommand
stringText

Definition at line 1273 of file class.ilTable2GUI.php.

References array.

Referenced by ilQuestionPoolImportVerificationTableGUI\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilClientListTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilStyleTableGUI\__construct(), ilTrashTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilContributorTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilUserTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSystemStylesTableGUI\addActions(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addCommands(), ilExportTableGUI\addCustomMultiCommand(), ilDidacticTemplateSettingsTableGUI\init(), ilUserClipboardTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilTestQuestionBrowserTableGUI\init(), ilImageMapTableGUI\initActions(), ilPCIIMTriggerTableGUI\initActions(), ilAssQuestionHintsTableGUI\initAdministrationCommands(), ilTestExportTableGUI\initMultiCommands(), ilQuestionPoolExportTableGUI\initMultiCommands(), ilExportTableGUI\initMultiCommands(), ilRepositoryUserResultTableGUI\initMultiCommands(), ilMailFolderTableGUI\initMultiCommands(), ilConsultationHourBookingTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), ilForumDraftsTableGUI\initTableColumns(), ilLPCollectionSettingsTableGUI\parse(), ilObjectTranslationTableGUI\prepareOutput(), ilMultilingualismTableGUI\prepareOutput(), ilObjectTranslation2TableGUI\prepareOutput(), and ilMediaPoolTableGUI\prepareOutput().

1274  {
1275  $this->multi[] = array("cmd" => $a_cmd, "text" => $a_text);
1276  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ addMultiItemSelectionButton()

ilTable2GUI::addMultiItemSelectionButton (   $a_sel_var,
  $a_options,
  $a_cmd,
  $a_text,
  $a_default_selection = '' 
)

Add Selection List + Command button for selected items.

Parameters
stringselection input variable name
arrayselection options ("value" => text")
stringcommand
stringbutton text

Definition at line 1248 of file class.ilTable2GUI.php.

References addHiddenInput(), and array.

Referenced by ilCourseParticipantsGroupsTableGUI\__construct(), ilRepositoryUserResultTableGUI\initMultiCommands(), and arIndexTableGUI\initMultiItemActionsButton().

1249  {
1250  $this->mi_sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
1251  $this->addHiddenInput("cmd_sv[".$a_cmd."]", $a_sel_var);
1252  }
addHiddenInput($a_name, $a_value)
Add Hidden Input field.
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSelectionButton()

ilTable2GUI::addSelectionButton (   $a_sel_var,
  $a_options,
  $a_cmd,
  $a_text,
  $a_default_selection = '' 
)

Add Selection List + Command button.

Parameters
stringselection input variable name
arrayselection options ("value" => text")
stringcommand
stringbutton text
Deprecated:

Definition at line 1233 of file class.ilTable2GUI.php.

1234  {
1235 echo "ilTabl2GUI->addSelectionButton() has been deprecated with 4.2. Please try to move the drop-down to ilToolbarGUI.";
1236 // $this->sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
1237  }

◆ clearCommandButtons()

ilTable2GUI::clearCommandButtons ( )

Definition at line 1196 of file class.ilTable2GUI.php.

References array.

Referenced by ilObjectCustomUserFieldsTableGUI\parse().

1197  {
1198  $this->buttons = array();
1199  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ dataExists()

ilTable2GUI::dataExists ( )
final

Definition at line 590 of file class.ilTable2GUI.php.

Referenced by ilDclRecordListTableGUI\exportData(), exportData(), fillActionRow(), fillFooter(), getHTML(), ilObjectTranslationTableGUI\prepareOutput(), ilObjectTranslation2TableGUI\prepareOutput(), and ilMultilingualismTableGUI\prepareOutput().

591  {
592  if (is_array($this->row_data))
593  {
594  if (count($this->row_data) > 0)
595  {
596  return true;
597  }
598  }
599  return false;
600  }
+ Here is the caller graph for this function:

◆ deleteTemplate()

ilTable2GUI::deleteTemplate (   $a_name)

Delete template.

Parameters
string$a_name
Returns
bool

Definition at line 3109 of file class.ilTable2GUI.php.

References $ilUser, getContext(), and ilUtil\prepareFormOutput().

Referenced by fillFooter().

3110  {
3111  global $ilUser;
3112 
3113  $a_name = ilUtil::prepareFormOutput($a_name, true);
3114 
3115  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3116  {
3117  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3118  $storage = new ilTableTemplatesStorage();
3119  $storage->delete($this->getContext(), $ilUser->getId(), $a_name);
3120  return true;
3121  }
3122  return false;
3123  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getContext()
Get context.
Saves (mostly asynchronously) user properties of tables (e.g.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineLimit()

ilTable2GUI::determineLimit ( )

Determine the limit.

Definition at line 173 of file class.ilTable2GUI.php.

References $_GET, $ilUser, ilTableGUI\$limit, loadProperty(), resetOffset(), setLimit(), and storeProperty().

Referenced by ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), __construct(), getCurrentState(), and arIndexTableGUI\setOrderAndSegmentation().

174  {
175  global $ilUser;
176 
177  if ($this->limit_determined)
178  {
179  return;
180  }
181 
182  $limit = 0;
183  if (isset($_GET[$this->prefix."_trows"]))
184  {
185  $this->storeProperty("rows", $_GET[$this->prefix."_trows"]);
186  $limit = $_GET[$this->prefix."_trows"];
187  $this->resetOffset();
188  }
189 
190  if ($limit == 0)
191  {
192  $rows = $this->loadProperty("rows");
193  if ($rows > 0)
194  {
195  $limit = $rows;
196  }
197  else
198  {
199  if (is_object($ilUser))
200  {
201  $limit = $ilUser->getPref("hits_per_page");
202  }
203  else
204  {
205  $limit = 40;
206  }
207  }
208  }
209 
210  $this->setLimit($limit);
211  $this->limit_determined = true;
212  }
$_GET["client_id"]
storeProperty($type, $value)
Store table property.
resetOffset($a_in_determination=false)
Reset offset.
$ilUser
Definition: imgupload.php:18
loadProperty($type)
Load table property.
setLimit($a_limit=0, $a_default_limit=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineOffsetAndOrder()

ilTable2GUI::determineOffsetAndOrder (   $a_omit_offset = false)

Determine offset and order.

Definition at line 1510 of file class.ilTable2GUI.php.

References $_GET, $_POST, $_SESSION, $ilUser, getDefaultOrderDirection(), getDefaultOrderField(), getExternalSegmentation(), getId(), getNavParameter(), loadProperty(), resetOffset(), ilTableGUI\setOffset(), ilTableGUI\setOrderDirection(), and setOrderField().

Referenced by ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilLPTableBaseGUI\executeCommand(), exportData(), getCurrentState(), getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilTermsOfServiceTableGUI\populate(), ilFileSystemTableGUI\prepareOutput(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), resetOffset(), and arIndexTableGUI\setOrderAndSegmentation().

1511  {
1512  global $ilUser;
1513 
1514  if ($this->nav_determined)
1515  {
1516  return true;
1517  }
1518 
1519  if ($_POST[$this->getNavParameter()."1"] != "")
1520  {
1521  if ($_POST[$this->getNavParameter()."1"] != $_POST[$this->getNavParameter()])
1522  {
1523  $this->nav_value = $_POST[$this->getNavParameter()."1"];
1524  }
1525  else if ($_POST[$this->getNavParameter()."2"] != $_POST[$this->getNavParameter()])
1526  {
1527  $this->nav_value = $_POST[$this->getNavParameter()."2"];
1528  }
1529  }
1530  elseif($_GET[$this->getNavParameter()])
1531  {
1532  $this->nav_value = $_GET[$this->getNavParameter()];
1533  }
1534  elseif($_SESSION[$this->getNavParameter()] != "")
1535  {
1536  $this->nav_value = $_SESSION[$this->getNavParameter()];
1537  }
1538 
1539  if ($this->nav_value == "" && $this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID)
1540  {
1541  $order = $this->loadProperty("order");
1542  if (in_array($order, $this->sortable_fields))
1543  {
1544  $direction = $this->loadProperty("direction");
1545  }
1546  else
1547  {
1548  $direction = $this->getDefaultOrderDirection();
1549  }
1550  // get order and direction from db
1551  $this->nav_value =
1552  $order.":".
1553  $direction.":".
1554  $this->loadProperty("offset");
1555  }
1556  $nav = explode(":", $this->nav_value);
1557 
1558  // $nav[0] is order by
1559  $this->setOrderField(($nav[0] != "") ? $nav[0] : $this->getDefaultOrderField());
1560  $this->setOrderDirection(($nav[1] != "") ? $nav[1] : $this->getDefaultOrderDirection());
1561 
1562  if (!$a_omit_offset)
1563  {
1564  // #8904: offset must be discarded when no limit is given
1565  if(!$this->getExternalSegmentation() && $this->limit_determined && $this->limit == 9999)
1566  {
1567  $this->resetOffset(true);
1568  }
1569  else if (!$this->getExternalSegmentation() && $nav[2] >= $this->max_count)
1570  {
1571  $this->resetOffset(true);
1572  }
1573  else
1574  {
1575  $this->setOffset($nav[2]);
1576  }
1577  }
1578 
1579  if (!$a_omit_offset)
1580  {
1581  $this->nav_determined = true;
1582  }
1583  }
getDefaultOrderField()
Get Default order field.
$_SESSION["AccountId"]
setOffset($a_offset)
set dataset offset public
$_GET["client_id"]
resetOffset($a_in_determination=false)
Reset offset.
getDefaultOrderDirection()
Get Default order direction.
setOrderDirection($a_order_direction)
set order direction public
setOrderField($a_order_field)
set order column
getExternalSegmentation()
Get external segmentation.
$ilUser
Definition: imgupload.php:18
loadProperty($type)
Load table property.
getId()
Get element id.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineSelectedColumns()

ilTable2GUI::determineSelectedColumns ( )

Determine selected columns.

Definition at line 227 of file class.ilTable2GUI.php.

References $_POST, array, getId(), getSelectableColumns(), loadProperty(), and storeProperty().

Referenced by __construct(), and getCurrentState().

228  {
229  if ($this->columns_determined)
230  {
231  return;
232  }
233 
234  $old_sel = $this->loadProperty("selfields");
235 
236  $stored = false;
237  if ($old_sel != "")
238  {
239  $sel_fields =
240  @unserialize($old_sel);
241  $stored = true;
242  }
243  if(!is_array($sel_fields))
244  {
245  $stored = false;
246  $sel_fields = array();
247  }
248 
249  $this->selected_columns = array();
250  $set = false;
251  foreach ($this->getSelectableColumns() as $k => $c)
252  {
253  $this->selected_column[$k] = false;
254 
255  $new_column = ($sel_fields[$k] === NULL);
256 
257  if ($_POST["tblfsh".$this->getId()])
258  {
259  $set = true;
260  if (is_array($_POST["tblfs".$this->getId()]) && in_array($k, $_POST["tblfs".$this->getId()]))
261  {
262  $this->selected_column[$k] = true;
263  }
264  }
265  else if ($stored && !$new_column) // take stored values
266  {
267  $this->selected_column[$k] = $sel_fields[$k];
268  }
269  else // take default values
270  {
271  if ($new_column)
272  {
273  $set = true;
274  }
275  if ($c["default"])
276  {
277  $this->selected_column[$k] = true;
278  }
279  }
280  }
281 
282  if ($old_sel != serialize($this->selected_column) && $set)
283  {
284  $this->storeProperty("selfields", serialize($this->selected_column));
285  }
286 
287  $this->columns_determined = true;
288  }
getSelectableColumns()
Get selectable columns.
storeProperty($type, $value)
Store table property.
Create styles array
The data for the language used.
loadProperty($type)
Load table property.
getId()
Get element id.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineSelectedFilters()

ilTable2GUI::determineSelectedFilters ( )

Determine selected filters.

Parameters

Definition at line 865 of file class.ilTable2GUI.php.

References $_POST, array, getFilterItems(), getId(), loadProperty(), and storeProperty().

Referenced by ilLPTableBaseGUI\executeCommand(), getCurrentState(), ilTermsOfServiceTableGUI\populate(), and renderFilter().

866  {
867  if ($this->filters_determined)
868  {
869  return;
870  }
871 
872  $old_sel = $this->loadProperty("selfilters");
873  $stored = false;
874  if ($old_sel != "")
875  {
876  $sel_filters =
877  @unserialize($old_sel);
878  $stored = true;
879  }
880  if(!is_array($sel_filters))
881  {
882  $stored = false;
883  $sel_filters = array();
884  }
885 
886  $this->selected_filter = array();
887  $set = false;
888  foreach ($this->getFilterItems(true) as $item)
889  {
890  $k = $item->getPostVar();
891 
892  $this->selected_filter[$k] = false;
893 
894  if ($_POST["tblfsf".$this->getId()])
895  {
896  $set = true;
897  if (is_array($_POST["tblff".$this->getId()]) && in_array($k, $_POST["tblff".$this->getId()]))
898  {
899  $this->selected_filter[$k] = true;
900  }
901  else
902  {
903  $item->setValue(NULL);
904  $item->writeToSession();
905  }
906  }
907  else if ($stored) // take stored values
908  {
909  $this->selected_filter[$k] = $sel_filters[$k];
910  }
911  }
912 
913  if ($old_sel != serialize($this->selected_filter) && $set)
914  {
915  $this->storeProperty("selfilters", serialize($this->selected_filter));
916  }
917 
918  $this->filters_determined = true;
919  }
storeProperty($type, $value)
Store table property.
Create styles array
The data for the language used.
loadProperty($type)
Load table property.
getId()
Get element id.
getFilterItems($a_optionals=false)
Get filter items.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilTable2GUI::executeCommand ( )

Execute command.

Definition at line 323 of file class.ilTable2GUI.php.

References $_GET, $cmd, $ilCtrl, getFilterItemByPostVar(), and initFilter().

324  {
325  global $ilCtrl;
326 
327  $next_class = $ilCtrl->getNextClass($this);
328  $cmd = $ilCtrl->getCmd();
329 
330  switch($next_class)
331  {
332  case 'ilformpropertydispatchgui':
333  include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
334  $form_prop_dispatch = new ilFormPropertyDispatchGUI();
335  $this->initFilter();
336  $item = $this->getFilterItemByPostVar($_GET["postvar"]);
337  $form_prop_dispatch->setItem($item);
338  return $ilCtrl->forwardCommand($form_prop_dispatch);
339  break;
340 
341  }
342  return false;
343  }
initFilter()
Init filter.
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
getFilterItemByPostVar($a_post_var)
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ exportData()

ilTable2GUI::exportData (   $format,
  $send = false 
)

Export and optionally send current table data.

Parameters
int$format

Definition at line 3204 of file class.ilTable2GUI.php.

References $filename, $row, dataExists(), determineOffsetAndOrder(), exit, fillHeaderCSV(), fillHeaderExcel(), fillMetaCSV(), fillMetaExcel(), fillRowCSV(), fillRowExcel(), getExternalSorting(), ilTableGUI\getOrderDirection(), getOrderField(), header, numericOrdering(), and ilUtil\sortArray().

Referenced by getHTML().

3205  {
3206  if($this->dataExists())
3207  {
3208  // #9640: sort
3209  if (!$this->getExternalSorting() && $this->enabled["sort"])
3210  {
3211  $this->determineOffsetAndOrder(true);
3212 
3213  $this->row_data = ilUtil::sortArray($this->row_data, $this->getOrderField(),
3214  $this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
3215  }
3216 
3217  $filename = "export";
3218 
3219  switch($format)
3220  {
3221  case self::EXPORT_EXCEL:
3222  include_once "./Services/Excel/classes/class.ilExcel.php";
3223  $excel = new ilExcel();
3224  $excel->addSheet($this->title
3225  ? $this->title
3226  : $this->lng->txt("export"));
3227  $row = 1;
3228 
3229  ob_start();
3230  $this->fillMetaExcel($excel, $row); // row must be increment in fillMetaExcel()! (optional method)
3231 
3232  // #14813
3233  $pre = $row;
3234  $this->fillHeaderExcel($excel, $row); // row should NOT be incremented in fillHeaderExcel()! (required method)
3235  if($pre == $row)
3236  {
3237  $row++;
3238  }
3239 
3240  foreach($this->row_data as $set)
3241  {
3242  $this->fillRowExcel($excel, $row, $set);
3243  $row++; // #14760
3244  }
3245  ob_end_clean();
3246 
3247  if($send)
3248  {
3249  $excel->sendToClient($filename);
3250  }
3251  else
3252  {
3253  $excel->writeToFile($filename);
3254  }
3255  break;
3256 
3257  case self::EXPORT_CSV:
3258  include_once "./Services/Utilities/classes/class.ilCSVWriter.php";
3259  $csv = new ilCSVWriter();
3260  $csv->setSeparator(";");
3261 
3262  ob_start();
3263  $this->fillMetaCSV($csv);
3264  $this->fillHeaderCSV($csv);
3265  foreach($this->row_data as $set)
3266  {
3267  $this->fillRowCSV($csv, $set);
3268  }
3269  ob_end_clean();
3270 
3271  if($send)
3272  {
3273  $filename .= ".csv";
3274  header("Content-type: text/comma-separated-values");
3275  header("Content-Disposition: attachment; filename=\"".$filename."\"");
3276  header("Expires: 0");
3277  header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
3278  header("Pragma: public");
3279  echo $csv->getCSVString();
3280 
3281  }
3282  else
3283  {
3284  file_put_contents($filename, $csv->getCSVString());
3285  }
3286  break;
3287  }
3288 
3289  if($send)
3290  {
3291  exit();
3292  }
3293  }
3294  }
getExternalSorting()
Get external sorting.
fillHeaderExcel(ilExcel $a_excel, &$a_row)
Excel Version of Fill Header.
Helper class to generate CSV files.
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
Excel Version of Fill Row.
getOrderDirection()
Get order direction.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
fillMetaCSV($a_csv)
Add meta information to csv export.
numericOrdering($a_field)
Should this field be sorted numeric?
Add a drawing to the header
Definition: 04printing.php:69
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
fillMetaExcel(ilExcel $a_excel, &$a_row)
Add meta information to excel export.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillActionRow()

ilTable2GUI::fillActionRow ( )

Fill Action Row.

Definition at line 2603 of file class.ilTable2GUI.php.

References $cmd, $lng, $txt, array, dataExists(), ilUtil\formSelect(), ilUtil\getImagePath(), and getTopCommands().

Referenced by getHTML().

2604  {
2605  global $lng;
2606 
2607  // action row
2608  $action_row = false;
2609  $arrow = false;
2610 
2611  // add selection buttons
2612  if (count($this->sel_buttons) > 0)
2613  {
2614  foreach ($this->sel_buttons as $button)
2615  {
2616  $this->tpl->setCurrentBlock("sel_button");
2617  $this->tpl->setVariable("SBUTTON_SELECT",
2618  ilUtil::formSelect($button["selected"], $button["sel_var"],
2619  $button["options"], false, true));
2620  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2621  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2622  $this->tpl->parseCurrentBlock();
2623 
2624  if ($this->getTopCommands())
2625  {
2626  $this->tpl->setCurrentBlock("sel_top_button");
2627  $this->tpl->setVariable("SBUTTON_SELECT",
2628  ilUtil::formSelect($button["selected"], $button["sel_var"],
2629  $button["options"], false, true));
2630  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2631  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2632  $this->tpl->parseCurrentBlock();
2633  }
2634  }
2635  $buttons = true;
2636  $action_row = true;
2637  }
2638  $this->sel_buttons[] = array("options" => $a_options, "cmd" => $a_cmd, "text" => $a_text);
2639 
2640  // add buttons
2641  if (count($this->buttons) > 0)
2642  {
2643  foreach ($this->buttons as $button)
2644  {
2645  if(!is_array($button))
2646  {
2647  if($button instanceof ilButtonBase)
2648  {
2649  $this->tpl->setVariable('BUTTON_OBJ', $button->render());
2650 
2651  // this will remove id - should be unique
2652  $button = clone $button;
2653 
2654  $this->tpl->setVariable('BUTTON_TOP_OBJ', $button->render());
2655  }
2656  continue;
2657  }
2658 
2659  if (strlen($button['onclick']))
2660  {
2661  $this->tpl->setCurrentBlock('cmdonclick');
2662  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2663  $this->tpl->parseCurrentBlock();
2664  }
2665  $this->tpl->setCurrentBlock("plain_button");
2666  if ($button["id"] != "")
2667  {
2668  $this->tpl->setVariable("PBID", ' id="'.$button["id"].'" ');
2669  }
2670  if ($button["class"] != "")
2671  {
2672  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2673  }
2674  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2675  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2676  $this->tpl->parseCurrentBlock();
2677 
2678  if ($this->getTopCommands())
2679  {
2680  if (strlen($button['onclick']))
2681  {
2682  $this->tpl->setCurrentBlock('top_cmdonclick');
2683  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2684  $this->tpl->parseCurrentBlock();
2685  }
2686  $this->tpl->setCurrentBlock("plain_top_button");
2687  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2688  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2689  if ($button["class"] != "")
2690  {
2691  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2692  }
2693  $this->tpl->parseCurrentBlock();
2694  }
2695  }
2696 
2697  $buttons = true;
2698  $action_row = true;
2699  }
2700 
2701  // multi selection
2702  if(count($this->mi_sel_buttons))
2703  {
2704  foreach ($this->mi_sel_buttons as $button)
2705  {
2706  $this->tpl->setCurrentBlock("mi_sel_button");
2707  $this->tpl->setVariable("MI_BUTTON_SELECT",
2708  ilUtil::formSelect($button["selected"], $button["sel_var"],
2709  $button["options"], false, true));
2710  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2711  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2712  $this->tpl->parseCurrentBlock();
2713 
2714  if ($this->getTopCommands())
2715  {
2716  $this->tpl->setCurrentBlock("mi_top_sel_button");
2717  $this->tpl->setVariable("MI_BUTTON_SELECT",
2718  ilUtil::formSelect($button["selected"], $button["sel_var"]."_2",
2719  $button["options"], false, true));
2720  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2721  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2722  $this->tpl->parseCurrentBlock();
2723  }
2724 
2725  }
2726  $arrow = true;
2727  $action_row = true;
2728  }
2729 
2730 
2731  if (count($this->multi) > 1 && $this->dataExists())
2732  {
2733  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2734  {
2735  $this->tpl->setCurrentBlock("tbl_cmd_select_all");
2736  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2737  $this->tpl->parseCurrentBlock();
2738  }
2739 
2740  $this->tpl->setCurrentBlock("tbl_cmd_select");
2741  $sel = array();
2742  foreach ($this->multi as $mc)
2743  {
2744  $sel[$mc["cmd"]] = $mc["text"];
2745  }
2746  $this->tpl->setVariable("SELECT_CMDS",
2747  ilUtil::formSelect("", "selected_cmd", $sel, false, true));
2748  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2749  $this->tpl->parseCurrentBlock();
2750  $arrow = true;
2751  $action_row = true;
2752 
2753  if ($this->getTopCommands())
2754  {
2755  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2756  {
2757  $this->tpl->setCurrentBlock("tbl_top_cmd_select_all");
2758  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2759  $this->tpl->parseCurrentBlock();
2760  }
2761 
2762  $this->tpl->setCurrentBlock("tbl_top_cmd_select");
2763  $sel = array();
2764  foreach ($this->multi as $mc)
2765  {
2766  $sel[$mc["cmd"]] = $mc["text"];
2767  }
2768  $this->tpl->setVariable("SELECT_CMDS",
2769  ilUtil::formSelect("", "selected_cmd2", $sel, false, true));
2770  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2771  $this->tpl->parseCurrentBlock();
2772  }
2773  }
2774  elseif(count($this->multi) == 1 && $this->dataExists())
2775  {
2776  $this->tpl->setCurrentBlock("tbl_single_cmd");
2777  $sel = array();
2778  foreach ($this->multi as $mc)
2779  {
2780  $cmd = $mc['cmd'];
2781  $txt = $mc['text'];
2782  }
2783  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2784  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2785  $this->tpl->parseCurrentBlock();
2786  $arrow = true;
2787  $action_row = true;
2788 
2789  if ($this->getTopCommands())
2790  {
2791  $this->tpl->setCurrentBlock("tbl_top_single_cmd");
2792  $sel = array();
2793  foreach ($this->multi as $mc)
2794  {
2795  $cmd = $mc['cmd'];
2796  $txt = $mc['text'];
2797  }
2798  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2799  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2800  $this->tpl->parseCurrentBlock();
2801  }
2802  }
2803 
2804  if ($arrow)
2805  {
2806  $this->tpl->setCurrentBlock("tbl_action_img_arrow");
2807  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
2808  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2809  $this->tpl->parseCurrentBlock();
2810 
2811  if ($this->getTopCommands())
2812  {
2813  $this->tpl->setCurrentBlock("tbl_top_action_img_arrow");
2814  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_upright.svg"));
2815  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2816  $this->tpl->parseCurrentBlock();
2817  }
2818  }
2819 
2820  if ($action_row)
2821  {
2822  $this->tpl->setCurrentBlock("tbl_action_row");
2823  $this->tpl->parseCurrentBlock();
2824  if ($this->getTopCommands())
2825  {
2826  $this->tpl->setCurrentBlock("tbl_top_action_row");
2827  $this->tpl->parseCurrentBlock();
2828  }
2829  }
2830  }
getTopCommands()
Get top commands (display command buttons on top of table, too)
$cmd
Definition: sahs_server.php:35
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
$txt
Definition: error.php:12
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillFooter()

ilTable2GUI::fillFooter ( )

Fill footer row.

Definition at line 2152 of file class.ilTable2GUI.php.

References $ilCtrl, $ilUser, $layout, ilTableGUI\$limit, $lng, ilTableGUI\$max_count, $options, $start, $url, array, dataExists(), deleteTemplate(), ilTableGUI\getColumnCount(), getContext(), getDisableFilterHiding(), getDisplayAsBlock(), getEnableNumInfo(), getFormName(), getId(), getLinkbar(), getParentCmd(), getRowSelectorLabel(), getSelectableColumns(), getSelectAllCheckbox(), getShowRowsSelector(), getShowTemplates(), isColumnSelected(), saveTemplate(), ilUtil\sendSuccess(), and ilAdvancedSelectionListGUI\STYLE_LINK_BUTTON.

Referenced by getHTML().

2153  {
2154  global $lng, $ilCtrl, $ilUser;
2155 
2156  $footer = false;
2157 
2158  // select all checkbox
2159  if ((strlen($this->getFormName())) && (strlen($this->getSelectAllCheckbox())) && $this->dataExists())
2160  {
2161  $this->tpl->setCurrentBlock("select_all_checkbox");
2162  $this->tpl->setVariable("SELECT_ALL_TXT_SELECT_ALL", $lng->txt("select_all"));
2163  $this->tpl->setVariable("SELECT_ALL_CHECKBOX_NAME", $this->getSelectAllCheckbox());
2164  $this->tpl->setVariable("SELECT_ALL_FORM_NAME", $this->getFormName());
2165  $this->tpl->setVariable("CHECKBOXNAME", "chb_select_all_" . $this->unique_id);
2166  $this->tpl->parseCurrentBlock();
2167  }
2168 
2169  // table footer numinfo
2170  if ($this->enabled["numinfo"] && $this->enabled["footer"])
2171  {
2172  $start = $this->offset + 1; // compute num info
2173  if (!$this->dataExists())
2174  {
2175  $start = 0;
2176  }
2177  $end = $this->offset + $this->limit;
2178 
2179  if ($end > $this->max_count or $this->limit == 0)
2180  {
2181  $end = $this->max_count;
2182  }
2183 
2184  if ($this->max_count > 0)
2185  {
2186  if ($this->lang_support)
2187  {
2188  $numinfo = "(".$start." - ".$end." ".strtolower($this->lng->txt("of"))." ".$this->max_count.")";
2189  }
2190  else
2191  {
2192  $numinfo = "(".$start." - ".$end." of ".$this->max_count.")";
2193  }
2194  }
2195  if ($this->max_count > 0)
2196  {
2197  if ($this->getEnableNumInfo())
2198  {
2199  $this->tpl->setCurrentBlock("tbl_footer_numinfo");
2200  $this->tpl->setVariable("NUMINFO", $numinfo);
2201  $this->tpl->parseCurrentBlock();
2202  }
2203  }
2204  $footer = true;
2205  }
2206 
2207  // table footer linkbar
2208  if ($this->enabled["linkbar"] && $this->enabled["footer"] && $this->limit != 0
2209  && $this->max_count > 0)
2210  {
2211  $layout = array(
2212  "link" => $this->footer_style,
2213  "prev" => $this->footer_previous,
2214  "next" => $this->footer_next,
2215  );
2216  //if (!$this->getDisplayAsBlock())
2217  //{
2218  $linkbar = $this->getLinkbar("1");
2219  $this->tpl->setCurrentBlock("tbl_footer_linkbar");
2220  $this->tpl->setVariable("LINKBAR", $linkbar);
2221  $this->tpl->parseCurrentBlock();
2222  $linkbar = true;
2223  //}
2224  $footer = true;
2225  }
2226 
2227  // column selector
2228  if (count($this->getSelectableColumns()) > 0)
2229  {
2230  $items = array();
2231  foreach ($this->getSelectableColumns() as $k => $c)
2232  {
2233  $items[$k] = array("txt" => $c["txt"],
2234  "selected" => $this->isColumnSelected($k));
2235  }
2236  include_once("./Services/UIComponent/CheckboxListOverlay/classes/class.ilCheckboxListOverlayGUI.php");
2237  $cb_over = new ilCheckboxListOverlayGUI("tbl_".$this->getId());
2238  $cb_over->setLinkTitle($lng->txt("columns"));
2239  $cb_over->setItems($items);
2240  //$cb_over->setUrl("./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2241  // $this->getId()."&cmd=saveSelectedFields&user_id=".$ilUser->getId());
2242  $cb_over->setFormCmd($this->getParentCmd());
2243  $cb_over->setFieldVar("tblfs".$this->getId());
2244  $cb_over->setHiddenVar("tblfsh".$this->getId());
2245  $cb_over->setSelectionHeaderClass("ilTableMenuItem");
2246  $column_selector = $cb_over->getHTML();
2247  $footer = true;
2248  }
2249 
2250  if($this->getShowTemplates() && is_object($ilUser))
2251  {
2252  // template handling
2253  if(isset($_REQUEST["tbltplcrt"]) && $_REQUEST["tbltplcrt"])
2254  {
2255  if($this->saveTemplate($_REQUEST["tbltplcrt"]))
2256  {
2257  ilUtil::sendSuccess($lng->txt("tbl_template_created"));
2258  }
2259  }
2260  else if(isset($_REQUEST["tbltpldel"]) && $_REQUEST["tbltpldel"])
2261  {
2262  if($this->deleteTemplate($_REQUEST["tbltpldel"]))
2263  {
2264  ilUtil::sendSuccess($lng->txt("tbl_template_deleted"));
2265  }
2266  }
2267 
2268  $create_id = "template_create_overlay_".$this->getId();
2269  $delete_id = "template_delete_overlay_".$this->getId();
2270  $list_id = "template_stg_".$this->getId();
2271 
2272  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
2273  $storage = new ilTableTemplatesStorage();
2274  $templates = $storage->getNames($this->getContext(), $ilUser->getId());
2275 
2276  include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
2277 
2278  // form to delete template
2279  if(sizeof($templates))
2280  {
2281  $overlay = new ilOverlayGUI($delete_id);
2282  $overlay->setTrigger($list_id."_delete");
2283  $overlay->setAnchor("ilAdvSelListAnchorElement_".$list_id);
2284  $overlay->setAutoHide(false);
2285  $overlay->add();
2286 
2287  $lng->loadLanguageModule("form");
2288  $this->tpl->setCurrentBlock("template_editor_delete_item");
2289  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION_VALUE", "");
2290  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION", "- ".$lng->txt("form_please_select")." -");
2291  $this->tpl->parseCurrentBlock();
2292  foreach($templates as $name)
2293  {
2294  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION_VALUE", $name);
2295  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION", $name);
2296  $this->tpl->parseCurrentBlock();
2297  }
2298 
2299  $this->tpl->setCurrentBlock("template_editor_delete");
2300  $this->tpl->setVariable("TEMPLATE_DELETE_ID", $delete_id);
2301  $this->tpl->setVariable("TXT_TEMPLATE_DELETE", $lng->txt("tbl_template_delete"));
2302  $this->tpl->setVariable("TXT_TEMPLATE_DELETE_SUBMIT", $lng->txt("delete"));
2303  $this->tpl->setVariable("TEMPLATE_DELETE_CMD", $this->parent_cmd);
2304  $this->tpl->parseCurrentBlock();
2305  }
2306 
2307 
2308  // form to save new template
2309  $overlay = new ilOverlayGUI($create_id);
2310  $overlay->setTrigger($list_id."_create");
2311  $overlay->setAnchor("ilAdvSelListAnchorElement_".$list_id);
2312  $overlay->setAutoHide(false);
2313  $overlay->add();
2314 
2315  $this->tpl->setCurrentBlock("template_editor");
2316  $this->tpl->setVariable("TEMPLATE_CREATE_ID", $create_id);
2317  $this->tpl->setVariable("TXT_TEMPLATE_CREATE", $lng->txt("tbl_template_create"));
2318  $this->tpl->setVariable("TXT_TEMPLATE_CREATE_SUBMIT", $lng->txt("save"));
2319  $this->tpl->setVariable("TEMPLATE_CREATE_CMD", $this->parent_cmd);
2320  $this->tpl->parseCurrentBlock();
2321 
2322  // load saved template
2323  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2324  $alist = new ilAdvancedSelectionListGUI();
2325  $alist->setId($list_id);
2326  $alist->addItem($lng->txt("tbl_template_create"), "create", "#");
2327  if(sizeof($templates))
2328  {
2329  $alist->addItem($lng->txt("tbl_template_delete"), "delete", "#");
2330  foreach($templates as $name)
2331  {
2332  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_tpl", urlencode($name));
2333  $alist->addItem($name, $name, $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
2334  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_tpl", "");
2335  }
2336  }
2337  $alist->setListTitle($lng->txt("tbl_templates"));
2339  $this->tpl->setVariable("TEMPLATE_SELECTOR", "&nbsp;".$alist->getHTML());
2340  }
2341 
2342  if ($footer)
2343  {
2344  $this->tpl->setCurrentBlock("tbl_footer");
2345  $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
2346  if ($this->getDisplayAsBlock())
2347  {
2348  $this->tpl->setVariable("BLK_CLASS", "Block");
2349  }
2350  $this->tpl->parseCurrentBlock();
2351 
2352  // top navigation, if number info or linkbar given
2353  if ($numinfo != "" || $linkbar != "" || $column_selector != "" ||
2354  count($this->filters) > 0 || count($this->optional_filters) > 0)
2355  {
2356  if (is_object($ilUser) && (count($this->filters) || count($this->optional_filters)))
2357  {
2358  $this->tpl->setCurrentBlock("filter_activation");
2359  $this->tpl->setVariable("TXT_ACTIVATE_FILTER", $lng->txt("show_filter"));
2360  $this->tpl->setVariable("FILA_ID", $this->getId());
2361  if ($this->getId() != "")
2362  {
2363  $this->tpl->setVariable("SAVE_URLA", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2364  $this->getId()."&cmd=showFilter&user_id=".$ilUser->getId());
2365  }
2366  $this->tpl->parseCurrentBlock();
2367 
2368 
2369  if (!$this->getDisableFilterHiding())
2370  {
2371  $this->tpl->setCurrentBlock("filter_deactivation");
2372  $this->tpl->setVariable("TXT_HIDE", $lng->txt("hide_filter"));
2373  if ($this->getId() != "")
2374  {
2375  $this->tpl->setVariable("SAVE_URL", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2376  $this->getId()."&cmd=hideFilter&user_id=".$ilUser->getId());
2377  $this->tpl->setVariable("FILD_ID", $this->getId());
2378  }
2379  $this->tpl->parseCurrentBlock();
2380  }
2381 
2382  }
2383 
2384  if ($numinfo != "" && $this->getEnableNumInfo())
2385  {
2386  $this->tpl->setCurrentBlock("top_numinfo");
2387  $this->tpl->setVariable("NUMINFO", $numinfo);
2388  $this->tpl->parseCurrentBlock();
2389  }
2390  if ($linkbar != "" && !$this->getDisplayAsBlock())
2391  {
2392  $linkbar = $this->getLinkbar("2");
2393  $this->tpl->setCurrentBlock("top_linkbar");
2394  $this->tpl->setVariable("LINKBAR", $linkbar);
2395  $this->tpl->parseCurrentBlock();
2396  }
2397 
2398  // column selector
2399  $this->tpl->setVariable("COLUMN_SELECTOR", $column_selector);
2400 
2401  // row selector
2402  if ($this->getShowRowsSelector() &&
2403  is_object($ilUser) &&
2404  $this->getId() &&
2405  !$this->rows_selector_off) // JF, 2014-10-27
2406  {
2407  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2408  $alist = new ilAdvancedSelectionListGUI();
2410  $alist->setId("sellst_rows_".$this->getId());
2411  $hpp = ($ilUser->getPref("hits_per_page") != 9999)
2412  ? $ilUser->getPref("hits_per_page")
2413  : $lng->txt("no_limit");
2414 
2415  $options = array(0 => $lng->txt("default")." (".$hpp.")",5 => 5, 10 => 10, 15 => 15, 20 => 20,
2416  30 => 30, 40 => 40, 50 => 50,
2417  100 => 100, 200 => 200, 400 => 400, 800 => 800);
2418  foreach ($options as $k => $v)
2419  {
2420  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_trows", $k);
2421  $alist->addItem($v, $k, $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
2422  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_trows", "");
2423  }
2424  $alist->setListTitle($this->getRowSelectorLabel() ? $this->getRowSelectorLabel() : $lng->txt("rows"));
2425  $this->tpl->setVariable("ROW_SELECTOR", $alist->getHTML());
2426  }
2427 
2428  // export
2429  if(sizeof($this->export_formats) && $this->dataExists())
2430  {
2431  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2432  $alist = new ilAdvancedSelectionListGUI();
2434  $alist->setId("sellst_xpt");
2435  foreach($this->export_formats as $format => $caption_lng_id)
2436  {
2437  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_xpt", $format);
2438  $url = $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd);
2439  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_xpt", "");
2440  $alist->addItem($lng->txt($caption_lng_id), $format, $url);
2441  }
2442  $alist->setListTitle($lng->txt("export"));
2443  $this->tpl->setVariable("EXPORT_SELECTOR", "&nbsp;".$alist->getHTML());
2444  }
2445 
2446  $this->tpl->setCurrentBlock("top_navigation");
2447  $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
2448  if ($this->getDisplayAsBlock())
2449  {
2450  $this->tpl->setVariable("BLK_CLASS", "Block");
2451  }
2452  $this->tpl->parseCurrentBlock();
2453  }
2454  }
2455  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getContext()
Get context.
getColumnCount()
Returns the column count based on the number of the header row columns public.
getSelectAllCheckbox()
Get the name of the checkbox that should be toggled with a select all button.
getSelectableColumns()
Get selectable columns.
getFormName()
Get Form name.
$url
Definition: shib_logout.php:72
deleteTemplate($a_name)
Delete template.
getParentCmd()
Get parent command.
getLinkbar($a_num)
Get previous/next linkbar.
saveTemplate($a_name)
Save current state as template.
getDisplayAsBlock()
Get display as block.
Saves (mostly asynchronously) user properties of tables (e.g.
global $ilCtrl
Definition: ilias.php:18
getShowRowsSelector()
Get rows-per-page selector state.
getShowTemplates()
Get template state.
if(!is_array($argv)) $options
getDisableFilterHiding()
Get disable filter hiding.
This is a utility class for the yui overlays.
$ilUser
Definition: imgupload.php:18
User interface class for a checkbox list overlay.
Create styles array
The data for the language used.
isColumnSelected($a_col)
Is given column selected?
User interface class for advanced drop-down selection lists.
getEnableNumInfo()
Get enable num info.
global $lng
Definition: privfeed.php:17
getId()
Get element id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeader()

ilTable2GUI::fillHeader ( )

Definition at line 1377 of file class.ilTable2GUI.php.

References $column, $lng, ilTooltipGUI\addTooltip(), array, column, getId(), ilUtil\getImagePath(), ilUtil\img(), and setOrderLink().

Referenced by render().

1378  {
1379  global $lng;
1380 
1381  $allcolumnswithwidth = true;
1382  foreach ((array) $this->column as $idx => $column)
1383  {
1384  if (!strlen($column["width"]))
1385  {
1386  $allcolumnswithwidth = false;
1387  }
1388  else if($column["width"] == "1")
1389  {
1390  // IE does not like 1 but seems to work with 1%
1391  $this->column[$idx]["width"] = "1%";
1392  }
1393  }
1394  if ($allcolumnswithwidth)
1395  {
1396  foreach ((array) $this->column as $column)
1397  {
1398  $this->tpl->setCurrentBlock("tbl_colgroup_column");
1399  $this->tpl->setVariable("COLGROUP_COLUMN_WIDTH", $column["width"]);
1400  $this->tpl->parseCurrentBlock();
1401  }
1402  }
1403  $ccnt = 0;
1404  foreach ((array) $this->column as $column)
1405  {
1406  $ccnt++;
1407  //tooltip
1408  if ($column["tooltip"] != "")
1409  {
1410  include_once("./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1411  ilTooltipGUI::addTooltip("thc_".$this->getId()."_".$ccnt, $column["tooltip"],
1412  "", "bottom center", "top center", !$column["tooltip_html"]);
1413  }
1414  if (!$this->enabled["sort"] || $column["sort_field"] == "" || $column["is_checkbox_action_column"])
1415  {
1416  $this->tpl->setCurrentBlock("tbl_header_no_link");
1417  if ($column["width"] != "")
1418  {
1419  $this->tpl->setVariable("TBL_COLUMN_WIDTH_NO_LINK"," width=\"".$column["width"]."\"");
1420  }
1421  if ($column["class"] != "")
1422  {
1423  $this->tpl->setVariable("TBL_COLUMN_CLASS_NO_LINK"," class=\"".$column["class"]."\"");
1424  }
1425  if (!$column["is_checkbox_action_column"])
1426  {
1427  $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
1428  $column["text"]);
1429  }
1430  else
1431  {
1432  $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
1433  ilUtil::img(ilUtil::getImagePath("spacer.png"), $lng->txt("action")));
1434  }
1435  $this->tpl->setVariable("HEAD_CELL_NL_ID", "thc_".$this->getId()."_".$ccnt);
1436  if ($column["class"] != "")
1437  {
1438  $this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
1439  }
1440  $this->tpl->parseCurrentBlock();
1441  $this->tpl->touchBlock("tbl_header_th");
1442  continue;
1443  }
1444  if (($column["sort_field"] == $this->order_field) && ($this->order_direction != ""))
1445  {
1446  $this->tpl->setCurrentBlock("tbl_order_image");
1447  if ($this->order_direction == "asc")
1448  {
1449  $this->tpl->setVariable("ORDER_CLASS", "glyphicon glyphicon-arrow-up");
1450  }
1451  else
1452  {
1453  $this->tpl->setVariable("ORDER_CLASS", "glyphicon glyphicon-arrow-down");
1454  }
1455  $this->tpl->setVariable("IMG_ORDER_ALT", $this->lng->txt("change_sort_direction"));
1456  $this->tpl->parseCurrentBlock();
1457  }
1458 
1459  $this->tpl->setCurrentBlock("tbl_header_cell");
1460  $this->tpl->setVariable("TBL_HEADER_CELL", $column["text"]);
1461  $this->tpl->setVariable("HEAD_CELL_ID", "thc_".$this->getId()."_".$ccnt);
1462 
1463  // only set width if a value is given for that column
1464  if ($column["width"] != "")
1465  {
1466  $this->tpl->setVariable("TBL_COLUMN_WIDTH"," width=\"".$column["width"]."\"");
1467  }
1468  if ($column["class"] != "")
1469  {
1470  $this->tpl->setVariable("TBL_COLUMN_CLASS"," class=\"".$column["class"]."\"");
1471  }
1472 
1473  $lng_sort_column = $this->lng->txt("sort_by_this_column");
1474  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_sort_column);
1475 
1476  $order_dir = "asc";
1477 
1478  if ($column["sort_field"] == $this->order_field)
1479  {
1480  $order_dir = $this->sort_order;
1481 
1482  $lng_change_sort = $this->lng->txt("change_sort_direction");
1483  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_change_sort);
1484  }
1485 
1486  if ($column["class"] != "")
1487  {
1488  $this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
1489  }
1490  $this->setOrderLink($column["sort_field"], $order_dir);
1491  $this->tpl->parseCurrentBlock();
1492  $this->tpl->touchBlock("tbl_header_th");
1493  }
1494 
1495  $this->tpl->setCurrentBlock("tbl_header");
1496  $this->tpl->parseCurrentBlock();
1497  }
setOrderLink($sort_field, $order_dir)
static addTooltip($a_el_id, $a_text, $a_container="", $a_my="bottom center", $a_at="top center", $a_use_htmlspecialchars=true)
Adds a tooltip to an HTML element.
$column
Definition: 39dropdown.php:62
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Create styles array
The data for the language used.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
global $lng
Definition: privfeed.php:17
Set thin black border outline around column
getId()
Get element id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeaderCSV()

ilTable2GUI::fillHeaderCSV (   $a_csv)
protected

CSV Version of Fill Header.

Likely to be overwritten by derived class.

Parameters
object$a_csvcurrent file

Definition at line 3367 of file class.ilTable2GUI.php.

References $column, ilTableGUI\$title, and column.

Referenced by exportData().

3368  {
3369  foreach ($this->column as $column)
3370  {
3371  $title = strip_tags($column["text"]);
3372  if($title)
3373  {
3374  $a_csv->addColumn($title);
3375  }
3376  }
3377  $a_csv->addRow();
3378  }
$column
Definition: 39dropdown.php:62
Set thin black border outline around column
+ Here is the caller graph for this function:

◆ fillHeaderExcel()

ilTable2GUI::fillHeaderExcel ( ilExcel  $a_excel,
$a_row 
)
protected

Excel Version of Fill Header.

Likely to be overwritten by derived class.

Parameters
ilExcel$a_excelexcel wrapper
int$a_rowrow counter

Definition at line 3315 of file class.ilTable2GUI.php.

References $column, ilTableGUI\$title, column, ilExcel\getColumnCoord(), ilExcel\setBold(), and ilExcel\setCell().

Referenced by exportData().

3316  {
3317  $col = 0;
3318  foreach ($this->column as $column)
3319  {
3320  $title = strip_tags($column["text"]);
3321  if($title)
3322  {
3323  $a_excel->setCell($a_row, $col++, $title);
3324  }
3325  }
3326  $a_excel->setBold("A".$a_row.":".$a_excel->getColumnCoord($col-1).$a_row);
3327  }
$column
Definition: 39dropdown.php:62
getColumnCoord($a_col)
Get column "name" from number.
setBold($a_coords)
Set cell(s) to bold.
setCell($a_row, $a_col, $a_value)
Set cell value.
Set thin black border outline around column
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHiddenRow()

ilTable2GUI::fillHiddenRow ( )

Definition at line 2582 of file class.ilTable2GUI.php.

Referenced by getHTML().

2583  {
2584  $hidden_row = false;
2585  if(count($this->hidden_inputs))
2586  {
2587  foreach ($this->hidden_inputs as $hidden_input)
2588  {
2589  $this->tpl->setCurrentBlock("tbl_hidden_field");
2590  $this->tpl->setVariable("FIELD_NAME", $hidden_input["name"]);
2591  $this->tpl->setVariable("FIELD_VALUE", $hidden_input["value"]);
2592  $this->tpl->parseCurrentBlock();
2593  }
2594 
2595  $this->tpl->setCurrentBlock("tbl_hidden_row");
2596  $this->tpl->parseCurrentBlock();
2597  }
2598  }
+ Here is the caller graph for this function:

◆ fillMetaCSV()

ilTable2GUI::fillMetaCSV (   $a_csv)
protected

Add meta information to csv export.

Likely to be overwritten by derived class.

Parameters
object$a_csvcurrent file

Definition at line 3356 of file class.ilTable2GUI.php.

Referenced by exportData().

3357  {
3358 
3359  }
+ Here is the caller graph for this function:

◆ fillMetaExcel()

ilTable2GUI::fillMetaExcel ( ilExcel  $a_excel,
$a_row 
)
protected

Add meta information to excel export.

Likely to be overwritten by derived class.

Parameters
ilExcel$a_excelexcel wrapper
int$a_rowrow counter

Definition at line 3303 of file class.ilTable2GUI.php.

Referenced by exportData().

3304  {
3305 
3306  }
+ Here is the caller graph for this function:

◆ fillRow()

ilTable2GUI::fillRow (   $a_set)
protected

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
array$a_setdata array

Definition at line 2141 of file class.ilTable2GUI.php.

Referenced by ilMemcacheServerTableGUI\__construct(), ilDclRecordListTableGUI\buildData(), getHTML(), ilQuestionUsagesTableGUI\initColumns(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilForumTopicTableGUI\initMergeThreadsTable(), and ilRepositoryUserResultTableGUI\initMultiCommands().

2142  {
2143  foreach ($a_set as $key => $value)
2144  {
2145  $this->tpl->setVariable("VAL_".strtoupper($key), $value);
2146  }
2147  }
+ Here is the caller graph for this function:

◆ fillRowCSV()

ilTable2GUI::fillRowCSV (   $a_csv,
  $a_set 
)
protected

CSV Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
object$a_csvcurrent file
array$a_setdata array

Definition at line 3387 of file class.ilTable2GUI.php.

Referenced by exportData().

3388  {
3389  foreach ($a_set as $key => $value)
3390  {
3391  if(is_array($value))
3392  {
3393  $value = implode(', ', $value);
3394  }
3395  $a_csv->addColumn(strip_tags($value));
3396  }
3397  $a_csv->addRow();
3398  }
+ Here is the caller graph for this function:

◆ fillRowExcel()

ilTable2GUI::fillRowExcel ( ilExcel  $a_excel,
$a_row,
  $a_set 
)
protected

Excel Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
ilExcel$a_excelexcel wrapper
int$a_rowrow counter
array$a_setdata array

Definition at line 3337 of file class.ilTable2GUI.php.

References ilExcel\setCell().

Referenced by exportData().

3338  {
3339  $col = 0;
3340  foreach ($a_set as $value)
3341  {
3342  if(is_array($value))
3343  {
3344  $value = implode(', ', $value);
3345  }
3346  $a_excel->setCell($a_row, $col++, $value);
3347  }
3348  }
setCell($a_row, $a_col, $a_value)
Set cell value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllCommandLimit()

static ilTable2GUI::getAllCommandLimit ( )
static

Get maximum number of entries to enable actions for all.

Returns
int

Definition at line 3415 of file class.ilTable2GUI.php.

References ilTableGUI\$limit.

3416  {
3417  global $ilClientIniFile;
3418 
3419  $limit = $ilClientIniFile->readVariable("system", "TABLE_ACTION_ALL_LIMIT");
3420  if(!$limit)
3421  {
3422  $limit = self::ACTION_ALL_LIMIT;
3423  }
3424 
3425  return $limit;
3426  }

◆ getCloseFormTag()

ilTable2GUI::getCloseFormTag ( )

Get close form tag.

Returns
boolean close form tag

Definition at line 165 of file class.ilTable2GUI.php.

References $close_form_tag.

Referenced by getHTML().

166  {
167  return $this->close_form_tag;
168  }
+ Here is the caller graph for this function:

◆ getContext()

ilTable2GUI::getContext ( )

Get context.

Returns
string

Definition at line 2991 of file class.ilTable2GUI.php.

References $context.

Referenced by deleteTemplate(), fillFooter(), restoreTemplate(), and saveTemplate().

2992  {
2993  return $this->context;
2994  }
+ Here is the caller graph for this function:

◆ getCurrentState()

ilTable2GUI::getCurrentState ( )

get current settings for order, limit, columns and filter

Returns
array

Definition at line 2886 of file class.ilTable2GUI.php.

References $result, $selected_column, array, determineLimit(), determineOffsetAndOrder(), determineSelectedColumns(), determineSelectedFilters(), getFilterValue(), getLimit(), getOffset(), ilTableGUI\getOrderDirection(), getOrderField(), and getSelectedFilters().

Referenced by saveTemplate().

2887  {
2888  $this->determineOffsetAndOrder();
2889  $this->determineLimit();
2890  $this->determineSelectedColumns();
2891  $this->determineSelectedFilters();
2892 
2893  // "filter" show/hide is not saved
2894 
2895  $result = array();
2896  $result["order"] = $this->getOrderField();
2897  $result["direction"] = $this->getOrderDirection();
2898  $result["offset"] = $this->getOffset();
2899  $result["rows"] = $this->getLimit();
2900  $result["selfilters"] = $this->getSelectedFilters();
2901 
2902  // #9514 - $this->getSelectedColumns() will omit deselected, leading to
2903  // confusion on restoring template
2904  $result["selfields"] = $this->selected_column;
2905 
2906  // gather filter values
2907  if($this->filters)
2908  {
2909  foreach($this->filters as $item)
2910  {
2911  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2912  }
2913  }
2914  if($this->optional_filters && $result["selfilters"])
2915  {
2916  foreach($this->optional_filters as $item)
2917  {
2918  if(in_array($item->getFieldId(), $result["selfilters"]))
2919  {
2920  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2921  }
2922  }
2923  }
2924 
2925  return $result;
2926  }
$result
getFilterValue(ilFormPropertyGUI $a_item)
Get current filter value.
determineSelectedColumns()
Determine selected columns.
determineLimit()
Determine the limit.
getOrderDirection()
Get order direction.
getOffset()
Get offset.
Create styles array
The data for the language used.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
determineSelectedFilters()
Determine selected filters.
getSelectedFilters()
Get selected filters.
getLimit()
Get limit.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getData()

◆ getDefaultFilterVisibility()

ilTable2GUI::getDefaultFilterVisibility ( )

Get default filter visibility.

Returns
bool

Definition at line 1186 of file class.ilTable2GUI.php.

References $default_filter_visibility.

Referenced by isFilterVisible().

1187  {
1189  }
+ Here is the caller graph for this function:

◆ getDefaultOrderDirection()

ilTable2GUI::getDefaultOrderDirection ( )

Get Default order direction.

Returns
string Default order direction

Definition at line 1168 of file class.ilTable2GUI.php.

Referenced by determineOffsetAndOrder().

1169  {
1170  return $this->defaultorderdirection;
1171  }
+ Here is the caller graph for this function:

◆ getDefaultOrderField()

ilTable2GUI::getDefaultOrderField ( )

Get Default order field.

Returns
string Default order field

Definition at line 1148 of file class.ilTable2GUI.php.

Referenced by determineOffsetAndOrder(), ilRegistrationCodesTableGUI\getItems(), and arIndexTableGUI\setOrderAndSegmentation().

1149  {
1150  return $this->defaultorderfield;
1151  }
+ Here is the caller graph for this function:

◆ getDescription()

ilTable2GUI::getDescription ( )

Get description.

Returns
string description

Definition at line 533 of file class.ilTable2GUI.php.

Referenced by render().

534  {
535  return $this->description;
536  }
+ Here is the caller graph for this function:

◆ getDisableFilterHiding()

ilTable2GUI::getDisableFilterHiding ( )

Get disable filter hiding.

Returns
boolean

Definition at line 824 of file class.ilTable2GUI.php.

References $disable_filter_hiding.

Referenced by fillFooter(), and renderFilter().

825  {
827  }
+ Here is the caller graph for this function:

◆ getDisplayAsBlock()

ilTable2GUI::getDisplayAsBlock ( )

Get display as block.

Returns
boolean display as block

Definition at line 1012 of file class.ilTable2GUI.php.

Referenced by fillFooter(), getLinkbar(), and render().

1013  {
1014  return $this->display_as_block;
1015  }
+ Here is the caller graph for this function:

◆ getEnableHeader()

ilTable2GUI::getEnableHeader ( )

Get Enable Header.

Returns
boolean Enable Header

Definition at line 485 of file class.ilTable2GUI.php.

486  {
487  return $this->enabled["header"];
488  }

◆ getEnableNumInfo()

ilTable2GUI::getEnableNumInfo ( )

Get enable num info.

Returns
boolean enable number of records info

Definition at line 505 of file class.ilTable2GUI.php.

Referenced by fillFooter().

506  {
507  return $this->num_info;
508  }
+ Here is the caller graph for this function:

◆ getEnableTitle()

ilTable2GUI::getEnableTitle ( )

Get Enable Title.

Returns
boolean Enable Title

Definition at line 465 of file class.ilTable2GUI.php.

466  {
467  return $this->enabled["title"];
468  }

◆ getExportMode()

ilTable2GUI::getExportMode ( )

Was export activated?

Returns
int

Definition at line 3194 of file class.ilTable2GUI.php.

References $export_mode.

Referenced by getHTML(), getLimit(), and getOffset().

3195  {
3196  return $this->export_mode;
3197  }
+ Here is the caller graph for this function:

◆ getExternalSegmentation()

ilTable2GUI::getExternalSegmentation ( )

Get external segmentation.

Returns
boolean data is segmented externally

Definition at line 1116 of file class.ilTable2GUI.php.

References $ext_seg.

Referenced by determineOffsetAndOrder(), getHTML(), and ilTermsOfServiceTableGUI\populate().

1117  {
1118  return $this->ext_seg;
1119  }
+ Here is the caller graph for this function:

◆ getExternalSorting()

ilTable2GUI::getExternalSorting ( )

Get external sorting.

Returns
boolean data is sorted externally

Definition at line 1052 of file class.ilTable2GUI.php.

References $ext_sort.

Referenced by exportData(), getHTML(), ilTermsOfServiceTableGUI\populate(), and setData().

1053  {
1054  return $this->ext_sort;
1055  }
+ Here is the caller graph for this function:

◆ getFilterCols()

ilTable2GUI::getFilterCols ( )

Get filter columns.

Returns
int number of filter columns

Definition at line 804 of file class.ilTable2GUI.php.

References $filter_cols.

Referenced by renderFilter().

805  {
806  return $this->filter_cols;
807  }
+ Here is the caller graph for this function:

◆ getFilterCommand()

ilTable2GUI::getFilterCommand ( )

Get filter command.

Returns
string filter command

Definition at line 1074 of file class.ilTable2GUI.php.

References $filter_cmd.

1075  {
1076  return $this->filter_cmd;
1077  }

◆ getFilterItemByPostVar()

ilTable2GUI::getFilterItemByPostVar (   $a_post_var)
final

Definition at line 770 of file class.ilTable2GUI.php.

References getFilterItems().

Referenced by ilLanguageExtTableGUI\__construct(), ilLPTableBaseGUI\executeCommand(), executeCommand(), ilLPTableBaseGUI\getCurrentFilter(), ilObjectRolePermissionTableGUI\initColumns(), ilWorkflowEngineDefinitionsTableGUI\isFiltered(), and ilRoleTableGUI\parse().

771  {
772  foreach ($this->getFilterItems() as $item)
773  {
774  if ($item->getPostVar() == $a_post_var)
775  {
776  return $item;
777  }
778  }
779  foreach ($this->getFilterItems(true) as $item)
780  {
781  if ($item->getPostVar() == $a_post_var)
782  {
783  return $item;
784  }
785  }
786  return false;
787  }
getFilterItems($a_optionals=false)
Get filter items.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFilterItems()

ilTable2GUI::getFilterItems (   $a_optionals = false)
final

◆ getFilterValue()

ilTable2GUI::getFilterValue ( ilFormPropertyGUI  $a_item)
protected

Get current filter value.

Parameters
ilFormPropertyGUI$a_item
Returns
mixed

Definition at line 2934 of file class.ilTable2GUI.php.

References IL_CAL_DATE.

Referenced by getCurrentState().

2935  {
2936  if(method_exists($a_item, "getChecked"))
2937  {
2938  return $a_item->getChecked();
2939  }
2940  else if(method_exists($a_item, "getValue"))
2941  {
2942  return $a_item->getValue();
2943  }
2944  else if(method_exists($a_item, "getDate"))
2945  {
2946  return $a_item->getDate()->get(IL_CAL_DATE);
2947  }
2948  }
const IL_CAL_DATE
+ Here is the caller graph for this function:

◆ getFormAction()

ilTable2GUI::getFormAction ( )
final

Get Form action parameter.

Returns
string Form action

Definition at line 948 of file class.ilTable2GUI.php.

Referenced by getHTML(), ilSCTreeDuplicatesTableGUI\init(), ilObjectCopyCourseGroupSelectionTableGUI\init(), ilObjectCopyProgressTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilConsultationHourGroupTableGUI\initTable(), and ilConsultationHourBookingTableGUI\initTable().

949  {
950  return $this->form_action;
951  }
+ Here is the caller graph for this function:

◆ getFormName()

ilTable2GUI::getFormName ( )

Get Form name.

Returns
string Form name

Definition at line 968 of file class.ilTable2GUI.php.

Referenced by fillFooter(), ilObjectRolePermissionTableGUI\fillRow(), and getHTML().

969  {
970  return $this->formname;
971  }
+ Here is the caller graph for this function:

◆ getHTML()

ilTable2GUI::getHTML ( )

Get HTML.

Definition at line 1606 of file class.ilTable2GUI.php.

References ilTableGUI\$data, $ilCtrl, $ilUser, $lng, dataExists(), determineOffsetAndOrder(), exportData(), fillActionRow(), fillFooter(), fillHiddenRow(), fillRow(), getCloseFormTag(), getData(), getExportMode(), getExternalSegmentation(), getExternalSorting(), getFormAction(), getFormName(), getId(), getLimit(), getNavParameter(), getNoEntriesText(), getOffset(), getOpenFormTag(), ilTableGUI\getOrderDirection(), getOrderField(), getParentObject(), getPreventDoubleSubmission(), getPrintMode(), numericOrdering(), prepareOutput(), render(), ilTableGUI\setFooter(), ilTableGUI\setMaxCount(), ilDatePresentation\setUseRelativeDates(), ilUtil\sortArray(), and storeNavParameter().

Referenced by ilBadgeTableGUI\fillRow(), ilObjectBadgeTableGUI\fillRow(), ilBadgePersonalTableGUI\fillRow(), and arIndexTableGUI\render().

1607  {
1608  global $lng, $ilCtrl, $ilUser;
1609 
1610  if($this->getExportMode())
1611  {
1612  $this->exportData($this->getExportMode(), true);
1613  }
1614 
1615  $this->prepareOutput();
1616 
1617  if (is_object($ilCtrl) && $this->getId() == "")
1618  {
1619  $ilCtrl->saveParameter($this->getParentObject(), $this->getNavParameter());
1620  }
1621 
1622  if(!$this->getPrintMode())
1623  {
1624  // set form action
1625  if ($this->form_action != "" && $this->getOpenFormTag())
1626  {
1627  $hash = "";
1628  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
1629  {
1630  $hash = "#".$this->getTopAnchor();
1631  }
1632 
1633  if((bool)$this->form_multipart)
1634  {
1635  $this->tpl->touchBlock("form_multipart_bl");
1636  }
1637 
1638  if($this->getPreventDoubleSubmission())
1639  {
1640  $this->tpl->touchBlock("pdfs");
1641  }
1642 
1643  $this->tpl->setCurrentBlock("tbl_form_header");
1644  $this->tpl->setVariable("FORMACTION", $this->getFormAction().$hash);
1645  $this->tpl->setVariable("FORMNAME", $this->getFormName());
1646  $this->tpl->parseCurrentBlock();
1647  }
1648 
1649  if ($this->form_action != "" && $this->getCloseFormTag())
1650  {
1651  $this->tpl->touchBlock("tbl_form_footer");
1652  }
1653  }
1654 
1655  if(!$this->enabled['content'])
1656  {
1657  return $this->render();
1658  }
1659 
1660  if (!$this->getExternalSegmentation())
1661  {
1662  $this->setMaxCount(count($this->row_data));
1663  }
1664 
1665  $this->determineOffsetAndOrder();
1666 
1667  $this->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
1668 
1669  $data = $this->getData();
1670  if($this->dataExists())
1671  {
1672  // sort
1673  if (!$this->getExternalSorting() && $this->enabled["sort"])
1674  {
1675  $data = ilUtil::sortArray($data, $this->getOrderField(),
1676  $this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
1677  }
1678 
1679  // slice
1680  if (!$this->getExternalSegmentation())
1681  {
1682  $data = array_slice($data, $this->getOffset(), $this->getLimit());
1683  }
1684  }
1685 
1686  // fill rows
1687  if($this->dataExists())
1688  {
1689  if($this->getPrintMode())
1690  {
1692  }
1693 
1694  $this->tpl->addBlockFile("TBL_CONTENT", "tbl_content", $this->row_template,
1695  $this->row_template_dir);
1696 
1697  foreach($data as $set)
1698  {
1699  $this->tpl->setCurrentBlock("tbl_content");
1700  $this->css_row = ($this->css_row != "tblrow1")
1701  ? "tblrow1"
1702  : "tblrow2";
1703  $this->tpl->setVariable("CSS_ROW", $this->css_row);
1704 
1705  $this->fillRow($set);
1706  $this->tpl->setCurrentBlock("tbl_content");
1707  $this->tpl->parseCurrentBlock();
1708  }
1709  }
1710  else
1711  {
1712  // add standard no items text (please tell me, if it messes something up, alex, 29.8.2008)
1713  $no_items_text = (trim($this->getNoEntriesText()) != '')
1714  ? $this->getNoEntriesText()
1715  : $lng->txt("no_items");
1716 
1717  $this->css_row = ($this->css_row != "tblrow1")
1718  ? "tblrow1"
1719  : "tblrow2";
1720 
1721  $this->tpl->setCurrentBlock("tbl_no_entries");
1722  $this->tpl->setVariable('TBL_NO_ENTRY_CSS_ROW', $this->css_row);
1723  $this->tpl->setVariable('TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
1724  $this->tpl->setVariable('TBL_NO_ENTRY_TEXT', trim($no_items_text));
1725  $this->tpl->parseCurrentBlock();
1726  }
1727 
1728 
1729  if(!$this->getPrintMode())
1730  {
1731  $this->fillFooter();
1732 
1733  $this->fillHiddenRow();
1734 
1735  $this->fillActionRow();
1736 
1737  $this->storeNavParameter();
1738  }
1739 
1740  return $this->render();
1741  }
getExternalSorting()
Get external sorting.
prepareOutput()
Anything that must be done before HTML is generated.
exportData($format, $send=false)
Export and optionally send current table data.
static setUseRelativeDates($a_status)
set use relative dates
getFormName()
Get Form name.
setFooter($a_style, $a_previous=0, $a_next=0)
set order direction public
getOpenFormTag()
Get open form tag.
getOrderDirection()
Get order direction.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
fillFooter()
Fill footer row.
getParentObject()
Get parent object.
global $ilCtrl
Definition: ilias.php:18
fillActionRow()
Fill Action Row.
getOffset()
Get offset.
numericOrdering($a_field)
Should this field be sorted numeric?
getExternalSegmentation()
Get external segmentation.
$ilUser
Definition: imgupload.php:18
getFormAction()
Get Form action parameter.
getPreventDoubleSubmission()
Get prevent double submission.
getNoEntriesText()
Get text for an empty table.
render()
render table public
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
global $lng
Definition: privfeed.php:17
getPrintMode()
Get print mode.
fillRow($a_set)
Standard Version of Fill Row.
getLimit()
Get limit.
setMaxCount($a_max_count)
set max.
getCloseFormTag()
Get close form tag.
getId()
Get element id.
getExportMode()
Was export activated?
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getId()

ilTable2GUI::getId ( )

Get element id.

Returns
string id

Definition at line 992 of file class.ilTable2GUI.php.

Referenced by ilSearchResultTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), __construct(), ilLPTableBaseGUI\addToClipboard(), ilTestSkillLevelThresholdsTableGUI\completeCompetenceTitles(), ilLOMemberTestResultTableGUI\createTestResultLink(), determineOffsetAndOrder(), determineSelectedColumns(), determineSelectedFilters(), fillFooter(), fillHeader(), ilSCORMTrackingItemsScoTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), getHTML(), ilParticipantTableGUI\getSelectableColumns(), ilSubscriberTableGUI\getSelectableColumns(), ilWaitingListTableGUI\getSelectableColumns(), ilWorkspaceShareTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilParticipantTableGUI\initSettings(), arIndexTableGUI\initTitle(), ilDclRecordListTableGUI\loadProperty(), loadProperty(), ilSCORMTrackingItemsScoTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilLOMemberTestResultTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilBuddySystemRelationsTableGUI\render(), render(), renderFilter(), ilParticipantTableGUI\showActionLinks(), ilSubscriberTableGUI\showActionLinks(), ilWaitingListTableGUI\showActionLinks(), and storeProperty().

993  {
994  return $this->id;
995  }
+ Here is the caller graph for this function:

◆ getIsDataTable()

ilTable2GUI::getIsDataTable ( )

Get is data table.

Returns
boolean is data table

Definition at line 445 of file class.ilTable2GUI.php.

Referenced by render().

446  {
447  return $this->datatable;
448  }
+ Here is the caller graph for this function:

◆ getLimit()

◆ getLinkbar()

ilTable2GUI::getLinkbar (   $a_num)

Get previous/next linkbar.

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Returns
array linkbar or false on error

Definition at line 2464 of file class.ilTable2GUI.php.

References $ilCtrl, $ilUser, $lng, array, ilUtil\formSelect(), getDisplayAsBlock(), getLimit(), getNavParameter(), getOffset(), ilTableGUI\getOrderDirection(), and getOrderField().

Referenced by fillFooter().

2465  {
2466  global $ilCtrl, $lng, $ilUser;
2467 
2468  $hash = "";
2469  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
2470  {
2471  $hash = "#".$this->getTopAnchor();
2472  }
2473 
2474  $link = $ilCtrl->getLinkTargetByClass(get_class($this->parent_obj), $this->parent_cmd).
2475  "&".$this->getNavParameter()."=".
2476  $this->getOrderField().":".$this->getOrderDirection().":";
2477 
2478  $LinkBar = "";
2479  $layout_prev = $lng->txt("previous");
2480  $layout_next = $lng->txt("next");
2481 
2482  // if more entries then entries per page -> show link bar
2483  if ($this->max_count > $this->getLimit() || $this->custom_prev_next)
2484  {
2485  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2486 
2487  // calculate number of pages
2488  $pages = intval($this->max_count / $this->getLimit());
2489 
2490  // add a page if a rest remains
2491  if (($this->max_count % $this->getLimit()))
2492  $pages++;
2493 
2494  // links to other pages
2495  $offset_arr = array();
2496  for ($i = 1 ;$i <= $pages ; $i++)
2497  {
2498  $newoffset = $this->getLimit() * ($i-1);
2499 
2500  $nav_value = $this->getOrderField().":".$this->getOrderDirection().":".$newoffset;
2501  $offset_arr[$nav_value] = $i;
2502  }
2503 
2504  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2505 
2506  // previous link
2507  if ($this->custom_prev_next && $this->custom_prev != "")
2508  {
2509  if ($LinkBar != "")
2510  $LinkBar .= $sep;
2511  $LinkBar .= "<a href=\"".$this->custom_prev.$hash."\">".$layout_prev."</a>";
2512  }
2513  else if ($this->getOffset() >= 1 && !$this->custom_prev_next)
2514  {
2515  if ($LinkBar != "")
2516  $LinkBar .= $sep;
2517  $prevoffset = $this->getOffset() - $this->getLimit();
2518  $LinkBar .= "<a href=\"".$link.$prevoffset.$hash."\">".$layout_prev."</a>";
2519  }
2520  else
2521  {
2522  if ($LinkBar != "")
2523  $LinkBar .= $sep;
2524  $LinkBar .= '<span class="ilTableFootLight">'.$layout_prev."</span>";
2525  }
2526 
2527  // current value
2528  if ($a_num == "1")
2529  {
2530  $LinkBar .= '<input type="hidden" name="'.$this->getNavParameter().
2531  '" value="'.$this->getOrderField().":".$this->getOrderDirection().":".$this->getOffset().'" />';
2532  }
2533 
2534  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2535 
2536  // show next link (if not last page)
2537  if ($this->custom_prev_next && $this->custom_next != "")
2538  {
2539  if ($LinkBar != "")
2540  $LinkBar .= $sep;
2541  $LinkBar .= "<a href=\"".$this->custom_next.$hash."\">".$layout_next."</a>";
2542  }
2543  else if (! ( ($this->getOffset() / $this->getLimit())==($pages-1) ) && ($pages!=1) &&
2544  !$this->custom_prev_next)
2545  {
2546  if ($LinkBar != "")
2547  $LinkBar .= $sep;
2548  $newoffset = $this->getOffset() + $this->getLimit();
2549  $LinkBar .= "<a href=\"".$link.$newoffset.$hash."\">".$layout_next."</a>";
2550  }
2551  else
2552  {
2553  if ($LinkBar != "")
2554  $LinkBar .= $sep;
2555  $LinkBar .= '<span class="ilTableFootLight">'.$layout_next."</span>";
2556  }
2557 
2558  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2559 
2560  if (count($offset_arr) && !$this->getDisplayAsBlock() && !$this->custom_prev_next)
2561  {
2562  if ($LinkBar != "")
2563  $LinkBar .= $sep;
2564  $LinkBar .= "".
2565  '<label for="tab_page_sel_'.$a_num.'">'.$lng->txt("page").'</label> '.
2566  ilUtil::formSelect($this->nav_value,
2567  $this->getNavParameter().$a_num, $offset_arr, false, true, 0, "small",
2568  array("id" => "tab_page_sel_".$a_num,
2569  "onchange" => "ilTablePageSelection(this, 'cmd[".$this->parent_cmd."]')"));
2570  //' <input class="submit" type="submit" name="cmd['.$this->parent_cmd.']" value="'.
2571  //$lng->txt("ok").'" />';
2572  }
2573 
2574  return $LinkBar;
2575  }
2576  else
2577  {
2578  return false;
2579  }
2580  }
getOrderDirection()
Get order direction.
getDisplayAsBlock()
Get display as block.
global $ilCtrl
Definition: ilias.php:18
getOffset()
Get offset.
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
getLimit()
Get limit.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNavParameter()

ilTable2GUI::getNavParameter ( )
final

Definition at line 1348 of file class.ilTable2GUI.php.

Referenced by determineOffsetAndOrder(), getHTML(), getLinkbar(), resetOffset(), and setOrderLink().

1349  {
1350  return $this->prefix."_table_nav";
1351  }
+ Here is the caller graph for this function:

◆ getNoEntriesText()

ilTable2GUI::getNoEntriesText ( )

Get text for an empty table.

Returns
string Text

Definition at line 425 of file class.ilTable2GUI.php.

Referenced by getHTML(), and ilBuddySystemRelationsTableGUI\render().

426  {
427  return $this->noentriestext;
428  }
+ Here is the caller graph for this function:

◆ getOffset()

◆ getOpenFormTag()

ilTable2GUI::getOpenFormTag ( )

Get open form tag.

Returns
boolean open form tag

Definition at line 145 of file class.ilTable2GUI.php.

References $open_form_tag.

Referenced by getHTML().

146  {
147  return $this->open_form_tag;
148  }
+ Here is the caller graph for this function:

◆ getOrderField()

◆ getParentCmd()

◆ getParentObject()

ilTable2GUI::getParentObject ( )

Get parent object.

Returns
object parent GUI object

Definition at line 375 of file class.ilTable2GUI.php.

Referenced by ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilConditionHandlerTableGUI\fillRow(), ilLDAPServerTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilSCGroupTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilObjectCustomUserFieldsTableGUI\fillRow(), ilConsultationHourGroupTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilSCORMTrackingItemsPerScoTableGUI\fillRow(), SurveyMaterialsSourceTableGUI\fillRow(), ilForumDraftsTableGUI\fillRow(), ilMemberExportFileTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilObjectCopyProgressTableGUI\fillRow(), ilECSCategoryMappingTableGUI\fillRow(), ilExcDeliveredFilesTableGUI\fillRow(), ilConsultationHourBookingTableGUI\fillRow(), ilSCORMOfflineModeUsersTableGUI\fillRow(), ilECSNodeMappingTreeTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilDclExportTableGUI\fillRow(), ilBadgeImageTemplateTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilSCORMTrackingItemsPerUserTableGUI\fillRow(), ilExcCriteriaTableGUI\fillRow(), ilMDCopyrightTableGUI\fillRow(), ilSCORMTrackingItemsScoTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilConsultationHoursTableGUI\fillRow(), ilMailTemplateTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilTestPassOverviewTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilExcCriteriaCatalogueTableGUI\fillRow(), ilBadgeTableGUI\fillRow(), ilSurveyAppraiseesTableGUI\fillRow(), ilExportTableGUI\fillRow(), ilAssignedUsersTableGUI\fillRow(), ilWebResourceLinkTableGUI\fillRow(), ilObjectBadgeTableGUI\fillRow(), SurveyConstraintsTableGUI\fillRow(), ilBadgePersonalTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilRoleTableGUI\fillRow(), ilCronManagerTableGUI\fillRow(), ilUserTableGUI\fillRow(), getHTML(), ilContainerStartObjectsContentTableGUI\getItems(), ilPollUserTableGUI\getItems(), ilStudyProgrammeMembersTableGUI\getLinkTargetForAction(), ilStudyProgrammeIndividualPlanTableGUI\getManualStatusSelect(), ilStudyProgrammeIndividualPlanTableGUI\getRequiredPointsInput(), ilSCTreeDuplicatesTableGUI\init(), ilObjectCopyCourseGroupSelectionTableGUI\init(), ilObjectCopyProgressTableGUI\init(), ilRoleTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilTestPassOverviewTableGUI\initColumns(), ilObjectRolePermissionTableGUI\initColumns(), ilParticipantTableGUI\initFilter(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilForumTopicTableGUI\initMergeThreadsTable(), ilWebResourceLinkTableGUI\initSorting(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilSCORMTrackingItemsPerScoTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilSCORMTrackingItemsPerUserTableGUI\parse(), ilSCORMTrackingItemsScoTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExParticipantTableGUI\parseData(), ilExerciseSubmissionTableGUI\parseRow(), ilLocalUnitCategoryTableGUI\populateTitle(), ilLinkCheckerTableGUI\prepareHTML(), ilTermsOfServiceAgreementByLanguageTableGUI\prepareRow(), ilTermsOfServiceAcceptanceHistoryTableGUI\prepareRow(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilExerciseSubmissionTableGUI\render(), ilParticipantTableGUI\showActionLinks(), ilSubscriberTableGUI\showActionLinks(), and ilWaitingListTableGUI\showActionLinks().

376  {
377  return $this->parent_obj;
378  }
+ Here is the caller graph for this function:

◆ getPrefix()

ilTable2GUI::getPrefix ( )
final

Definition at line 607 of file class.ilTable2GUI.php.

References ilTableGUI\$prefix.

Referenced by ilAssQuestionSkillAssignmentsTableGUI\__construct(), and setId().

608  {
609  return $this->prefix;
610  }
+ Here is the caller graph for this function:

◆ getPreventDoubleSubmission()

ilTable2GUI::getPreventDoubleSubmission ( )

Get prevent double submission.

Returns
bool prevent double submission

Definition at line 3460 of file class.ilTable2GUI.php.

References $prevent_double_submission.

Referenced by getHTML().

3461  {
3463  }
+ Here is the caller graph for this function:

◆ getPrintMode()

ilTable2GUI::getPrintMode ( )

Get print mode.

Returns
bool $a_value

Definition at line 3184 of file class.ilTable2GUI.php.

References $print_mode.

Referenced by ilTrUserObjectsPropsTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), getHTML(), getLimit(), getOffset(), and render().

3185  {
3186  return $this->print_mode;
3187  }
+ Here is the caller graph for this function:

◆ getResetCommand()

ilTable2GUI::getResetCommand ( )

Get reset filter command.

Returns
string reset command

Definition at line 1096 of file class.ilTable2GUI.php.

References $reset_cmd.

1097  {
1098  return $this->reset_cmd;
1099  }

◆ getRowSelectorLabel()

ilTable2GUI::getRowSelectorLabel ( )
Returns
string

Definition at line 3440 of file class.ilTable2GUI.php.

References $row_selector_label.

Referenced by fillFooter().

3441  {
3443  }
+ Here is the caller graph for this function:

◆ getSelectableColumns()

ilTable2GUI::getSelectableColumns ( )

Get selectable columns.

Returns
array key: column id, val: true/false -> default on/off

Definition at line 219 of file class.ilTable2GUI.php.

References array.

Referenced by ilBookingReservationsTableGUI\__construct(), determineSelectedColumns(), fillFooter(), ilBookingReservationsTableGUI\fillHeaderCSV(), and ilBookingReservationsTableGUI\fillHeaderExcel().

220  {
221  return array();
222  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getSelectAllCheckbox()

ilTable2GUI::getSelectAllCheckbox ( )

Get the name of the checkbox that should be toggled with a select all button.

Returns
string name of the checkbox

Definition at line 1022 of file class.ilTable2GUI.php.

References ilTableGUI\$select_all_checkbox.

Referenced by fillFooter().

1023  {
1025  }
+ Here is the caller graph for this function:

◆ getSelectedColumns()

ilTable2GUI::getSelectedColumns ( )

Get selected columns.

Parameters

Definition at line 307 of file class.ilTable2GUI.php.

References array.

Referenced by ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\fillHeaderCSV(), ilSCORMTrackingItemsTableGUI\fillHeaderCSV(), ilTrObjectUsersPropsTableGUI\fillHeaderCSV(), ilTrUserObjectsPropsTableGUI\fillHeaderCSV(), ilTrMatrixTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderCSV(), ilSCORM2004TrackingItemsTableGUI\fillHeaderExcel(), ilSCORMTrackingItemsTableGUI\fillHeaderExcel(), ilTrObjectUsersPropsTableGUI\fillHeaderExcel(), ilTrUserObjectsPropsTableGUI\fillHeaderExcel(), ilTrMatrixTableGUI\fillHeaderExcel(), ilTrSummaryTableGUI\fillHeaderExcel(), ilStudyProgrammeMembersTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilSurveyResultsCumulatedTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilWorkflowEngineDefinitionsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilBookingObjectsTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilUserTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRowCSV(), ilSCORMTrackingItemsTableGUI\fillRowCSV(), ilTrObjectUsersPropsTableGUI\fillRowCSV(), ilTrUserObjectsPropsTableGUI\fillRowCSV(), ilTrMatrixTableGUI\fillRowCSV(), ilTrSummaryTableGUI\fillRowCSV(), ilSCORMTrackingItemsTableGUI\fillRowExcel(), ilSCORM2004TrackingItemsTableGUI\fillRowExcel(), ilTrObjectUsersPropsTableGUI\fillRowExcel(), ilTrUserObjectsPropsTableGUI\fillRowExcel(), ilTrMatrixTableGUI\fillRowExcel(), ilTrSummaryTableGUI\fillRowExcel(), ilTrUserObjectsPropsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilExerciseMemberTableGUI\getModeColumns(), ilQuestionPoolPrintViewTableGUI\initColumns(), ilWorkflowEngineDefinitionsTableGUI\initColumns(), ilRepositoryUserResultTableGUI\initMultiCommands(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExerciseSubmissionTableGUI\parseRow(), ilRepositoryUserResultTableGUI\parseUserIds(), ilSubscriberTableGUI\readSubscriberData(), and ilWaitingListTableGUI\readUserData().

308  {
309  $scol = array();
310  foreach ($this->selected_column as $k => $v)
311  {
312  if ($v)
313  {
314  $scol[$k] = $k;
315  }
316  }
317  return $scol;
318  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getSelectedFilters()

ilTable2GUI::getSelectedFilters ( )

Get selected filters.

Parameters

Definition at line 846 of file class.ilTable2GUI.php.

References array.

Referenced by getCurrentState().

847  {
848  $sfil = array();
849  foreach ($this->selected_filter as $k => $v)
850  {
851  if ($v)
852  {
853  $sfil[$k] = $k;
854  }
855  }
856  return $sfil;
857  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getShowRowsSelector()

ilTable2GUI::getShowRowsSelector ( )

Get rows-per-page selector state.

Returns
bool

Definition at line 3011 of file class.ilTable2GUI.php.

References $show_rows_selector.

Referenced by fillFooter().

3012  {
3014  }
+ Here is the caller graph for this function:

◆ getShowTemplates()

ilTable2GUI::getShowTemplates ( )

Get template state.

Returns
bool

Definition at line 3031 of file class.ilTable2GUI.php.

References $show_templates.

Referenced by fillFooter().

3032  {
3033  return $this->show_templates;
3034  }
+ Here is the caller graph for this function:

◆ getTopAnchor()

ilTable2GUI::getTopAnchor ( )

Get top anchor.

Returns
string top anchor

Definition at line 405 of file class.ilTable2GUI.php.

References $top_anchor.

Referenced by render().

406  {
407  return $this->top_anchor;
408  }
+ Here is the caller graph for this function:

◆ getTopCommands()

ilTable2GUI::getTopCommands ( )

Get top commands (display command buttons on top of table, too)

Returns
boolean top commands true/false

Definition at line 1316 of file class.ilTable2GUI.php.

References $top_commands.

Referenced by fillActionRow().

1317  {
1318  return $this->top_commands;
1319  }
+ Here is the caller graph for this function:

◆ initFilter()

ilTable2GUI::initFilter ( )

Init filter.

Overwrite this to initialize all filter input property objects.

Definition at line 366 of file class.ilTable2GUI.php.

Referenced by ilBookingReservationsTableGUI\__construct(), and executeCommand().

367  {
368  }
+ Here is the caller graph for this function:

◆ isAdvMDFilter()

ilTable2GUI::isAdvMDFilter ( ilAdvancedMDRecordGUI  $a_gui,
  $a_element 
)
protected

Check if filter element is based on adv md.

Parameters
ilAdvancedMDRecordGUI$a_gui
type$a_element
Returns
boolean

Definition at line 2041 of file class.ilTable2GUI.php.

References ilAdvancedMDRecordGUI\getFilterElements().

Referenced by writeFilterToSession().

2042  {
2043  foreach($a_gui->getFilterElements(false) as $item)
2044  {
2045  if($item === $a_element)
2046  {
2047  return true;
2048  }
2049  }
2050  return false;
2051  }
getFilterElements($a_only_non_empty=true)
Get SQL conditions for current filter value(s)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isColumnSelected()

ilTable2GUI::isColumnSelected (   $a_col)

Is given column selected?

Parameters
stringcolumn name
Returns
boolean

Definition at line 296 of file class.ilTable2GUI.php.

Referenced by arIndexTableGUI\checkColumnVisibile(), fillFooter(), ilParticipantTableGUI\initFilter(), ilGroupParticipantsTableGUI\parse(), and ilCourseParticipantsTableGUI\parse().

297  {
298  return $this->selected_column[$a_col];
299  }
+ Here is the caller graph for this function:

◆ isFilterSelected()

ilTable2GUI::isFilterSelected (   $a_col)

Is given filter selected?

Parameters
stringcolumn name
Returns
boolean

Definition at line 835 of file class.ilTable2GUI.php.

Referenced by ilTermsOfServiceTableGUI\populate(), and renderFilter().

836  {
837  return $this->selected_filter[$a_col];
838  }
+ Here is the caller graph for this function:

◆ isFilterVisible()

ilTable2GUI::isFilterVisible ( )
protected

Check if filter is visible: manually shown (session, db) or default value set.

Returns
bool

Definition at line 2024 of file class.ilTable2GUI.php.

References getDefaultFilterVisibility(), and loadProperty().

Referenced by renderFilter().

2025  {
2026  $prop = $this->loadProperty('filter');
2027  if($prop === '0' || $prop === '1')
2028  {
2029  return (bool) $prop;
2030  }
2031  return $this->getDefaultFilterVisibility();
2032  }
loadProperty($type)
Load table property.
getDefaultFilterVisibility()
Get default filter visibility.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadProperty()

ilTable2GUI::loadProperty (   $type)

Load table property.

Parameters
string$type
Returns
mixed

Definition at line 2867 of file class.ilTable2GUI.php.

References $ilUser, and getId().

Referenced by determineLimit(), determineOffsetAndOrder(), determineSelectedColumns(), determineSelectedFilters(), and isFilterVisible().

2868  {
2869  global $ilUser;
2870 
2871  if(is_object($ilUser) && $this->getId() != "")
2872  {
2873  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2874  $tab_prop = new ilTablePropertiesStorage();
2875 
2876  return $tab_prop->getProperty($this->getId(), $ilUser->getId(), $type);
2877  }
2878  return null;
2879  }
Saves (mostly asynchronously) user properties of tables (e.g.
$ilUser
Definition: imgupload.php:18
getId()
Get element id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numericOrdering()

ilTable2GUI::numericOrdering (   $a_field)

Should this field be sorted numeric?

Returns
boolean numeric ordering; default is false

Definition at line 1748 of file class.ilTable2GUI.php.

Referenced by exportData(), getHTML(), and ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues().

1749  {
1750  return false;
1751  }
+ Here is the caller graph for this function:

◆ prepareOutput()

ilTable2GUI::prepareOutput ( )
protected

Anything that must be done before HTML is generated.

Definition at line 1502 of file class.ilTable2GUI.php.

Referenced by getHTML().

1503  {
1504  }
+ Here is the caller graph for this function:

◆ render()

ilTable2GUI::render ( )

render table public

Definition at line 1757 of file class.ilTable2GUI.php.

References $ilCtrl, $lng, fillHeader(), getDescription(), getDisplayAsBlock(), getId(), ilUtil\getImagePath(), getIsDataTable(), getPrintMode(), ilTableGUI\getStyle(), getTopAnchor(), and renderFilter().

Referenced by ilTestSkillLevelThresholdsTableGUI\fillRow(), and getHTML().

1758  {
1759  global $lng, $ilCtrl;
1760 
1761  $this->tpl->setVariable("CSS_TABLE",$this->getStyle("table"));
1762  $this->tpl->setVariable("DATA_TABLE", (int) $this->getIsDataTable());
1763  if ($this->getId() != "")
1764  {
1765  $this->tpl->setVariable("ID", 'id="'.$this->getId().'"');
1766  }
1767 
1768  // description
1769  if ($this->getDescription() != "")
1770  {
1771  $this->tpl->setCurrentBlock("tbl_header_description");
1772  $this->tpl->setVariable("TBL_DESCRIPTION", $this->getDescription());
1773  $this->tpl->parseCurrentBlock();
1774  }
1775 
1776  if(!$this->getPrintMode())
1777  {
1778  $this->renderFilter();
1779  }
1780 
1781  if ($this->getDisplayAsBlock())
1782  {
1783  $this->tpl->touchBlock("outer_start_1");
1784  $this->tpl->touchBlock("outer_end_1");
1785  }
1786  else
1787  {
1788  $this->tpl->touchBlock("outer_start_2");
1789  $this->tpl->touchBlock("outer_end_2");
1790  }
1791 
1792  // table title and icon
1793  if ($this->enabled["title"] && ($this->title != ""
1794  || $this->icon != "" || count($this->header_commands) > 0 ||
1795  $this->headerHTML != "" || $this->close_command != ""))
1796  {
1797  if ($this->enabled["icon"])
1798  {
1799  $this->tpl->setCurrentBlock("tbl_header_title_icon");
1800  $this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath($this->icon));
1801  $this->tpl->setVariable("TBL_TITLE_IMG_ALT",$this->icon_alt);
1802  $this->tpl->parseCurrentBlock();
1803  }
1804 
1805  if(!$this->getPrintMode())
1806  {
1807  foreach($this->header_commands as $command)
1808  {
1809  if ($command["img"] != "")
1810  {
1811  $this->tpl->setCurrentBlock("tbl_header_img_link");
1812  if ($command["target"] != "")
1813  {
1814  $this->tpl->setVariable("TARGET_IMG_LINK",
1815  'target="'.$command["target"].'"');
1816  }
1817  $this->tpl->setVariable("ALT_IMG_LINK", $command["text"]);
1818  $this->tpl->setVariable("HREF_IMG_LINK", $command["href"]);
1819  $this->tpl->setVariable("SRC_IMG_LINK",
1820  $command["img"]);
1821  $this->tpl->parseCurrentBlock();
1822  }
1823  else
1824  {
1825  $this->tpl->setCurrentBlock("head_cmd");
1826  $this->tpl->setVariable("TXT_HEAD_CMD", $command["text"]);
1827  $this->tpl->setVariable("HREF_HEAD_CMD", $command["href"]);
1828  $this->tpl->parseCurrentBlock();
1829  }
1830  }
1831  }
1832 
1833  if (isset ($this->headerHTML)) {
1834  $this->tpl->setCurrentBlock("tbl_header_html");
1835  $this->tpl->setVariable ("HEADER_HTML", $this->headerHTML);
1836  $this->tpl->parseCurrentBlock();
1837  }
1838 
1839  // close command
1840  if ($this->close_command != "")
1841  {
1842  $this->tpl->setCurrentBlock("tbl_header_img_link");
1843  $this->tpl->setVariable("ALT_IMG_LINK",$lng->txt("close"));
1844  $this->tpl->setVariable("HREF_IMG_LINK",$this->close_command);
1845  $this->tpl->parseCurrentBlock();
1846  }
1847 
1848  $this->tpl->setCurrentBlock("tbl_header_title");
1849  $this->tpl->setVariable("TBL_TITLE",$this->title);
1850  $this->tpl->setVariable("TOP_ANCHOR",$this->getTopAnchor());
1851  if ($this->getDisplayAsBlock())
1852  {
1853  $this->tpl->setVariable("BLK_CLASS", "Block");
1854  }
1855  $this->tpl->parseCurrentBlock();
1856  }
1857 
1858  // table header
1859  if ($this->enabled["header"])
1860  {
1861  $this->fillHeader();
1862  }
1863 
1864  $this->tpl->touchBlock("tbl_table_end");
1865 
1866  return $this->tpl->get();
1867  }
getTopAnchor()
Get top anchor.
renderFilter()
Render Filter section.
getIsDataTable()
Get is data table.
getDescription()
Get description.
getDisplayAsBlock()
Get display as block.
global $ilCtrl
Definition: ilias.php:18
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
global $lng
Definition: privfeed.php:17
getPrintMode()
Get print mode.
getId()
Get element id.
getStyle($a_element)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderFilter()

ilTable2GUI::renderFilter ( )
private

Render Filter section.

Definition at line 1872 of file class.ilTable2GUI.php.

References $lng, $tpl, array, determineSelectedFilters(), getDisableFilterHiding(), getFilterCols(), getFilterItems(), getId(), getParentCmd(), ilYuiUtil\initConnection(), isFilterSelected(), and isFilterVisible().

Referenced by render().

1873  {
1874  global $lng, $tpl;
1875 
1876  $filter = $this->getFilterItems();
1877  $opt_filter = $this->getFilterItems(true);
1878 
1879  $tpl->addJavascript("./Services/Table/js/ServiceTable.js");
1880 
1881  if (count($filter) == 0 && count($opt_filter) == 0)
1882  {
1883  return;
1884  }
1885 
1886  include_once("./Services/YUI/classes/class.ilYuiUtil.php");
1888 
1889  $ccnt = 0;
1890 
1891  // render standard filter
1892  if (count($filter) > 0)
1893  {
1894  foreach ($filter as $item)
1895  {
1896  if ($ccnt >= $this->getFilterCols())
1897  {
1898  $this->tpl->setCurrentBlock("filter_row");
1899  $this->tpl->parseCurrentBlock();
1900  $ccnt = 0;
1901  }
1902  $this->tpl->setCurrentBlock("filter_item");
1903  $this->tpl->setVariable("OPTION_NAME",
1904  $item->getTitle());
1905  $this->tpl->setVariable("F_INPUT_ID",
1906  $item->getFieldId());
1907  $this->tpl->setVariable("INPUT_HTML",
1908  $item->getTableFilterHTML());
1909  $this->tpl->parseCurrentBlock();
1910  $ccnt++;
1911  }
1912  }
1913 
1914  // render optional filter
1915  if (count($opt_filter) > 0)
1916  {
1917  $this->determineSelectedFilters();
1918 
1919  foreach ($opt_filter as $item)
1920  {
1921  if($this->isFilterSelected($item->getPostVar()))
1922  {
1923  if ($ccnt >= $this->getFilterCols())
1924  {
1925  $this->tpl->setCurrentBlock("filter_row");
1926  $this->tpl->parseCurrentBlock();
1927  $ccnt = 0;
1928  }
1929  $this->tpl->setCurrentBlock("filter_item");
1930  $this->tpl->setVariable("OPTION_NAME",
1931  $item->getTitle());
1932  $this->tpl->setVariable("F_INPUT_ID",
1933  $item->getFieldId());
1934  $this->tpl->setVariable("INPUT_HTML",
1935  $item->getTableFilterHTML());
1936  $this->tpl->parseCurrentBlock();
1937  $ccnt++;
1938  }
1939  }
1940 
1941  // filter selection
1942  $items = array();
1943  foreach ($opt_filter as $item)
1944  {
1945  $k = $item->getPostVar();
1946  $items[$k] = array("txt" => $item->getTitle(),
1947  "selected" => $this->isFilterSelected($k));
1948  }
1949 
1950  include_once("./Services/UIComponent/CheckboxListOverlay/classes/class.ilCheckboxListOverlayGUI.php");
1951  $cb_over = new ilCheckboxListOverlayGUI("tbl_filters_".$this->getId());
1952  $cb_over->setLinkTitle($lng->txt("optional_filters"));
1953  $cb_over->setItems($items);
1954 
1955  $cb_over->setFormCmd($this->getParentCmd());
1956  $cb_over->setFieldVar("tblff".$this->getId());
1957  $cb_over->setHiddenVar("tblfsf".$this->getId());
1958 
1959  $cb_over->setSelectionHeaderClass("ilTableMenuItem");
1960  $this->tpl->setCurrentBlock("filter_select");
1961 
1962  // apply should be the first submit because of enter/return, inserting hidden submit
1963  $this->tpl->setVariable("HIDDEN_CMD_APPLY", $this->filter_cmd);
1964 
1965  $this->tpl->setVariable("FILTER_SELECTOR", $cb_over->getHTML());
1966  $this->tpl->parseCurrentBlock();
1967  }
1968 
1969  // if any filter
1970  if($ccnt > 0 || count($opt_filter) > 0)
1971  {
1972  $this->tpl->setVariable("TXT_FILTER", $lng->txt("filter"));
1973 
1974  if($ccnt > 0)
1975  {
1976  if ($ccnt < $this->getFilterCols())
1977  {
1978  for($i = $ccnt; $i<=$this->getFilterCols(); $i++)
1979  {
1980  $this->tpl->touchBlock("filter_empty_cell");
1981  }
1982  }
1983  $this->tpl->setCurrentBlock("filter_row");
1984  $this->tpl->parseCurrentBlock();
1985 
1986  $this->tpl->setCurrentBlock("filter_buttons");
1987  $this->tpl->setVariable("CMD_APPLY", $this->filter_cmd);
1988  $this->tpl->setVariable("TXT_APPLY", $this->filter_cmd_txt
1989  ? $this->filter_cmd_txt
1990  : $lng->txt("apply_filter"));
1991  $this->tpl->setVariable("CMD_RESET", $this->reset_cmd);
1992  $this->tpl->setVariable("TXT_RESET", $this->reset_cmd_txt
1993  ? $this->reset_cmd_txt
1994  : $lng->txt("reset_filter"));
1995  }
1996  else if(count($opt_filter) > 0)
1997  {
1998  $this->tpl->setCurrentBlock("optional_filter_hint");
1999  $this->tpl->setVariable('TXT_OPT_HINT', $lng->txt('optional_filter_hint'));
2000  $this->tpl->parseCurrentBlock();
2001  }
2002 
2003  $this->tpl->setCurrentBlock("filter_section");
2004  $this->tpl->setVariable("FIL_ID", $this->getId());
2005  $this->tpl->parseCurrentBlock();
2006 
2007  // (keep) filter hidden?
2008  if(!$this->isFilterVisible())
2009  {
2010  if (!$this->getDisableFilterHiding())
2011  {
2012  $this->tpl->setCurrentBlock("filter_hidden");
2013  $this->tpl->setVariable("FI_ID", $this->getId());
2014  $this->tpl->parseCurrentBlock();
2015  }
2016  }
2017  }
2018  }
static initConnection()
Init YUI Connection module.
getParentCmd()
Get parent command.
global $tpl
Definition: ilias.php:8
isFilterVisible()
Check if filter is visible: manually shown (session, db) or default value set.
getDisableFilterHiding()
Get disable filter hiding.
User interface class for a checkbox list overlay.
Create styles array
The data for the language used.
isFilterSelected($a_col)
Is given filter selected?
determineSelectedFilters()
Determine selected filters.
getFilterCols()
Get filter columns.
global $lng
Definition: privfeed.php:17
getId()
Get element id.
getFilterItems($a_optionals=false)
Get filter items.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetFilter()

ilTable2GUI::resetFilter ( )

Reset filter.

Definition at line 2106 of file class.ilTable2GUI.php.

References $_POST, $lng, and getFilterItems().

Referenced by ilLPTableBaseGUI\executeCommand(), ilObjTestGUI\fpResetFilterObject(), ilObjTestGUI\npResetFilterObject(), and ilTestQuestionBrowserTableGUI\resetFilterCmd().

2107  {
2108  global $lng;
2109 
2110  $filter = $this->getFilterItems();
2111  $opt_filter = $this->getFilterItems(true);
2112 
2113  foreach ($filter as $item)
2114  {
2115  if ($item->checkInput())
2116  {
2117  $item->setValueByArray($_POST);
2118  $item->clearFromSession();
2119  }
2120  }
2121  foreach ($opt_filter as $item)
2122  {
2123  if ($item->checkInput())
2124  {
2125  $item->setValueByArray($_POST);
2126  $item->clearFromSession();
2127  }
2128  }
2129 
2130  // #13209
2131  unset($_REQUEST["tbltplcrt"]);
2132  unset($_REQUEST["tbltpldel"]);
2133  }
global $lng
Definition: privfeed.php:17
getFilterItems($a_optionals=false)
Get filter items.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetOffset()

ilTable2GUI::resetOffset (   $a_in_determination = false)

Reset offset.

Definition at line 348 of file class.ilTable2GUI.php.

References $_GET, $_POST, determineOffsetAndOrder(), getNavParameter(), ilTableGUI\getOrderDirection(), getOrderField(), and ilTableGUI\setOffset().

Referenced by arIndexTableGUI\applyFilter(), ilPermission2GUI\applyLogFilter(), determineLimit(), determineOffsetAndOrder(), ilLPTableBaseGUI\executeCommand(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilExerciseManagementGUI\membersApplyObject(), ilExerciseManagementGUI\membersResetObject(), ilForumTopicTableGUI\numericOrdering(), ilTermsOfServiceTableGUI\populate(), arIndexTableGUI\resetFilter(), ilPermission2GUI\resetLogFilter(), and ilCalendarManageTableGUI\resetToDefaults().

349  {
350  if (!$this->nav_determined && !$a_in_determination)
351  {
352  $this->determineOffsetAndOrder();
353  }
354  $this->nav_value = $this->getOrderField().":".$this->getOrderDirection().":0";
355  $_GET[$this->getNavParameter()] =
356  $_POST[$this->getNavParameter()."1"] =
357  $this->nav_value;
358 //echo $this->nav_value;
359  $this->setOffset(0);
360  }
setOffset($a_offset)
set dataset offset public
$_GET["client_id"]
getOrderDirection()
Get order direction.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ restoreTemplate()

ilTable2GUI::restoreTemplate (   $a_name)

Restore state from template.

Parameters
string$a_name
Returns
bool

Definition at line 3042 of file class.ilTable2GUI.php.

References ilTableGUI\$data, $ilUser, getContext(), storeProperty(), and ilUtil\stripSlashes().

Referenced by __construct().

3043  {
3044  global $ilUser;
3045 
3046  $a_name = ilUtil::stripSlashes($a_name);
3047 
3048  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3049  {
3050  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3051  $storage = new ilTableTemplatesStorage();
3052 
3053  $data = $storage->load($this->getContext(), $ilUser->getId(), $a_name);
3054  if(is_array($data))
3055  {
3056  foreach($data as $property => $value)
3057  {
3058  $this->storeProperty($property, $value);
3059  }
3060  }
3061 
3062  $data["filter_values"] = unserialize($data["filter_values"]);
3063  if($data["filter_values"])
3064  {
3065  $this->restore_filter_values = $data["filter_values"];
3066  }
3067 
3068  $this->restore_filter = true;
3069 
3070  return true;
3071  }
3072  return false;
3073  }
getContext()
Get context.
storeProperty($type, $value)
Store table property.
Saves (mostly asynchronously) user properties of tables (e.g.
$ilUser
Definition: imgupload.php:18
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveTemplate()

ilTable2GUI::saveTemplate (   $a_name)

Save current state as template.

Parameters
string$a_name
Returns
bool

Definition at line 3081 of file class.ilTable2GUI.php.

References $ilUser, getContext(), getCurrentState(), and ilUtil\prepareFormOutput().

Referenced by fillFooter().

3082  {
3083  global $ilUser;
3084 
3085  $a_name = ilUtil::prepareFormOutput($a_name, true);
3086 
3087  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3088  {
3089  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3090  $storage = new ilTableTemplatesStorage();
3091 
3092  $state = $this->getCurrentState();
3093  $state["filter_values"] = serialize($state["filter_values"]);
3094  $state["selfields"] = serialize($state["selfields"]);
3095  $state["selfilters"] = serialize($state["selfilters"]);
3096 
3097  $storage->store($this->getContext(), $ilUser->getId(), $a_name, $state);
3098  return true;
3099  }
3100  return false;
3101  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getContext()
Get context.
Saves (mostly asynchronously) user properties of tables (e.g.
$ilUser
Definition: imgupload.php:18
getCurrentState()
get current settings for order, limit, columns and filter
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCloseCommand()

ilTable2GUI::setCloseCommand (   $a_link)

Add command for closing table.

Parameters
string$a_linkclosing link
Deprecated:

Definition at line 1262 of file class.ilTable2GUI.php.

1263  {
1264  $this->close_command = $a_link;
1265  }

◆ setCloseFormTag()

ilTable2GUI::setCloseFormTag (   $a_val)

Set close form tag.

Parameters
booleanclose form tag

Definition at line 155 of file class.ilTable2GUI.php.

Referenced by ilQuestionPoolImportVerificationTableGUI\__construct().

156  {
157  $this->close_form_tag = $a_val;
158  }
+ Here is the caller graph for this function:

◆ setContext()

ilTable2GUI::setContext (   $id)

Set context.

Parameters
string$id

Definition at line 2978 of file class.ilTable2GUI.php.

Referenced by __construct().

2979  {
2980  if(trim($id))
2981  {
2982  $this->context = $id;
2983  }
2984  }
+ Here is the caller graph for this function:

◆ setCustomPreviousNext()

ilTable2GUI::setCustomPreviousNext (   $a_prev_link,
  $a_next_link 
)

Set custom previous/next links.

Definition at line 924 of file class.ilTable2GUI.php.

925  {
926  $this->custom_prev_next = true;
927  $this->custom_prev = $a_prev_link;
928  $this->custom_next = $a_next_link;
929  }

◆ setData()

ilTable2GUI::setData (   $a_data)
final

Definition at line 553 of file class.ilTable2GUI.php.

References column, and getExternalSorting().

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilStudyProgrammeAcknowledgeCompletedCoursesTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilExportTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilTermListTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\addColumns(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), ilTestQuestionBrowserTableGUI\browseQuestionsCmd(), ilDclRecordListTableGUI\buildData(), arIndexTableGUI\checkColumnVisibile(), ilSurveyEvaluationGUI\evaluationuser(), ilHelpMappingTableGUI\getChapters(), ilClientListTableGUI\getClients(), ilComponentsTableGUI\getComponents(), ilPluginsOverviewTableGUI\getComponents(), ilModulesTableGUI\getComponents(), ilWikiContributorsTableGUI\getContributors(), ilHistoryTableGUI\getDataFromDb(), ilSessionMaterialsTableGUI\getDataFromDb(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilLMDownloadTableGUI\getDownloadFiles(), ilFileSystemTableGUI\getEntries(), ilMemberExportFileTableGUI\getFiles(), ilNewItemGroupTableGUI\getGroups(), ilHelpModuleTableGUI\getHelpModules(), ilPCImageMapTableGUI\getItems(), ilSurveyParticipantsTableGUI\getItems(), ilTermUsagesTableGUI\getItems(), ilMediaPoolPageUsagesTableGUI\getItems(), ilRoleDesktopItemsTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilSCORMVerificationTableGUI\getItems(), ilTestVerificationTableGUI\getItems(), ilObjWorkspaceFolderTableGUI\getItems(), ilMediaObjectUsagesTableGUI\getItems(), ilUserLPTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilContainerStartObjectsContentTableGUI\getItems(), ilCourseGroupingAssignmentTableGUI\getItems(), ilLPObjectStatisticsAdminTableGUI\getItems(), ilPollUserTableGUI\getItems(), ilRatingCategoryTableGUI\getItems(), ilExAssignmentTeamLogTableGUI\getItems(), ilCourseGroupingTableGUI\getItems(), ilPortfolioTableGUI\getItems(), ilExcCriteriaTableGUI\getItems(), ilBadgeTypesTableGUI\getItems(), ilExcCriteriaCatalogueTableGUI\getItems(), ilBadgeImageTemplateTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilStyleImageTableGUI\getItems(), ilContributorTableGUI\getItems(), ilLicenseOverviewTableGUI\getItems(), ilPortfolioPageTableGUI\getItems(), ilLanguageTableGUI\getItems(), ilPollAnswerTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilWikiExportOrderTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilStyleMediaQueryTableGUI\getItems(), ilLDAPRoleMappingTableGUI\getItems(), ilStyleColorTableGUI\getItems(), ilExAssignmentPeerReviewOverviewTableGUI\getItems(), ilExAssignmentPeerReviewTableGUI\getItems(), ilTableTemplatesTableGUI\getItems(), ilAdminSubItemsTableGUI\getItems(), ilImageMapTableGUI\getItems(), ilBadgePersonalTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilObjectBadgeTableGUI\getItems(), ilBadgeTableGUI\getItems(), ilSessionOverviewTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilSurveyResultsCumulatedTableGUI\getItems(), ilCourseParticipantsGroupsTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilLPProgressTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilCronManagerTableGUI\getItems(), ilMediaPoolTableGUI\getItems(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilLinksTableGUI\getLinks(), ilItemGroupItemsTableGUI\getMaterials(), ilPageLayoutTableGUI\getPageLayouts(), ilWikiPagesTableGUI\getPages(), ilMilestoneResponsiblesTableGUI\getParticipantsAndResponsibles(), ilWorkflowEngineDefinitionsTableGUI\getProcessesForDisplay(), ilSurveySkillAssignmentTableGUI\getQuestions(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilSurveySkillChangesTableGUI\getSkillLevelsForAppraisee(), ilSurveySkillTableGUI\getSkills(), ilSysStyleCatAssignmentTableGUI\getStyleCatAssignments(), ilSystemStylesTableGUI\getStyles(), ilLDAPServerTableGUI\importData(), ilSurveySyncTableGUI\importData(), ilWorkspaceAccessTableGUI\importData(), ilSurveyQuestionTableGUI\importData(), ilWorkspaceShareTableGUI\importData(), ilQuestionUsagesTableGUI\initColumns(), ilOrgUnitTypeTableGUI\initColumns(), ilStudyProgrammeTypeTableGUI\initColumns(), ilQuestionCumulatedStatisticsTableGUI\initData(), ilDataBibliographicRecordListTableGUI\initData(), ilSurveyQuestionblockbrowserTableGUI\initData(), ilMarkSchemaTableGUI\initData(), ilSurveyQuestionbrowserTableGUI\initData(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilObjectOwnershipManagementTableGUI\initItems(), SurveyConstraintsTableGUI\initItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilObjWikiSearchResultTableGUI\parse(), ilAuthLoginPageEditorTableGUI\parse(), ilSCORMTrackingItemsPerScoTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilSCTreeDuplicatesTableGUI\parse(), ilSCORMOfflineModeUsersTableGUI\parse(), ilLPCollectionSettingsTableGUI\parse(), ilSCORMTrackingItemsPerUserTableGUI\parse(), ilSCORMTrackingItemsScoTableGUI\parse(), ilDidacticTemplateSettingsTableGUI\parse(), ilLogComponentTableGUI\parse(), ilObjectCustomUserFieldsTableGUI\parse(), ilLuceneAdvancedSearchActivationTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilExAssignmentListTextTableGUI\parse(), ilUserClipboardTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedUserListTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilSCGroupTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilConsultationHourGroupTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilWebResourceLinkTableGUI\parse(), ilConsultationHourBookingTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilLDAPRoleAssignmentTableGUI\parse(), ilECSNodeMappingTreeTableGUI\parse(), ilObjectRoleTemplateOptionsTableGUI\parse(), ilSCTaskTableGUI\parse(), ilCalendarInboxSharedTableGUI\parse(), ilECSServerTableGUI\parse(), ilWebResourceEditableLinkTableGUI\parse(), ilCalendarCategoryTableGUI\parse(), ilCourseObjectiveMaterialAssignmentTableGUI\parse(), ilECSReleasedContentTableGUI\parse(), ilLOMemberTestResultTableGUI\parse(), ilObjectTableGUI\parse(), ilSessionParticipantsTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilECSImportedContentTableGUI\parse(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilECSCommunityTableGUI\parse(), ilLOTestAssignmentTableGUI\parse(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilRoleTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilExportSelectionTableGUI\parseContainer(), ilDclTableViewEditFieldsTableGUI\parseData(), ilOrgUnitOtherRolesTableGUI\parseData(), ilOrgUnitStaffTableGUI\parseData(), ilMemcacheServerTableGUI\parseData(), ilAdvancedMDFieldTableGUI\parseDefinitions(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilLOTestAssignmentTableGUI\parseMultipleAssignments(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilWebResourceEditableLinkTableGUI\parseSelectedLinks(), ilMDCopyrightTableGUI\parseSelections(), ilObjectCopySelectionTableGUI\parseSource(), ilRepositoryUserResultTableGUI\parseUserIds(), ilBuddySystemRelationsTableGUI\populate(), ilTermsOfServiceTableGUI\populate(), ilLinkCheckerTableGUI\prepareHTML(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilTestEvaluationGUI\resetfilterEvaluation(), ilCalendarAppointmentsTableGUI\setAppointments(), ilCalendarChangedAppointmentsTableGUI\setAppointments(), ilConditionHandlerTableGUI\setConditions(), ilAssQuestionSkillUsagesTableGUI\showCmd(), and ilWebResourceEditableLinkTableGUI\updateFromPost().

554  {
555  // check column names against given data (to ensure proper sorting)
556  if(DEVMODE &&
557  $this->enabled["header"] && $this->enabled["sort"] &&
558  $this->columns_determined && is_array($this->column) &&
559  is_array($a_data) && sizeof($a_data) && !$this->getExternalSorting())
560  {
561  $check = $a_data;
562  $check = array_keys(array_shift($check));
563  foreach($this->column as $col)
564  {
565  if($col["sort_field"] && !in_array($col["sort_field"], $check))
566  {
567  $invalid[] = $col["sort_field"];
568  }
569  }
570 
571  // this triggers an error, if some columns are not set for some rows
572  // which may just be a representation of "null" values, e.g.
573  // ilAdvancedMDValues:queryForRecords works that way.
574 /* if(sizeof($invalid))
575  {
576  trigger_error("The following columns are defined as sortable but".
577  " cannot be found in the given data: ".implode(", ", $invalid).
578  ". Sorting will not work properly.", E_USER_WARNING);
579  }*/
580  }
581 
582  $this->row_data = $a_data;
583  }
getExternalSorting()
Get external sorting.
Set thin black border outline around column
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDefaultFilterVisiblity()

ilTable2GUI::setDefaultFilterVisiblity (   $a_status)

Set default filter visiblity.

Parameters
bool$a_status

Definition at line 1177 of file class.ilTable2GUI.php.

Referenced by ilParticipantTableGUI\initFilter().

1178  {
1179  $this->default_filter_visibility = $a_status;
1180  }
+ Here is the caller graph for this function:

◆ setDefaultOrderDirection()

ilTable2GUI::setDefaultOrderDirection (   $a_defaultorderdirection)

Set Default order direction.

Parameters
string$a_defaultorderdirectionDefault order direction

Definition at line 1158 of file class.ilTable2GUI.php.

Referenced by ilMemberExportFileTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilClientListTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilExportTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilUserTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilPDNewsTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilSpecialUsersTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilWikiContributorsTableGUI\getContributors(), ilWikiPagesTableGUI\getPages(), ilWorkflowEngineDefinitionsTableGUI\getProcessesForDisplay(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilDidacticTemplateSettingsTableGUI\init(), ilRoleTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilSessionParticipantsTableGUI\init(), ilAssQuestionHintsTableGUI\initAdministrationColumns(), ilTestPassManualScoringOverviewTableGUI\initOrdering(), ilTestManScoringParticipantsTableGUI\initOrdering(), ilConditionHandlerTableGUI\initTable(), and ilAssQuestionHintsTableGUI\initTestoutputColumns().

1159  {
1160  $this->defaultorderdirection = $a_defaultorderdirection;
1161  }
+ Here is the caller graph for this function:

◆ setDefaultOrderField()

ilTable2GUI::setDefaultOrderField (   $a_defaultorderfield)

Set Default order field.

Parameters
string$a_defaultorderfieldDefault order field

Definition at line 1138 of file class.ilTable2GUI.php.

Referenced by ilMemberExportFileTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilClientListTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExportTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilContributorTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilUserTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilMailingListsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilTermListTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilSpecialUsersTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilWikiContributorsTableGUI\getContributors(), ilWikiPagesTableGUI\getPages(), ilWorkflowEngineDefinitionsTableGUI\getProcessesForDisplay(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilDidacticTemplateSettingsTableGUI\init(), ilLogComponentTableGUI\init(), ilRoleTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilSessionParticipantsTableGUI\init(), ilAssQuestionHintsTableGUI\initAdministrationColumns(), ilTestPassManualScoringOverviewTableGUI\initOrdering(), ilTestManScoringParticipantsTableGUI\initOrdering(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilAssQuestionHintsTableGUI\initTestoutputColumns(), and arIndexTableGUI\setOrderAndSegmentation().

1139  {
1140  $this->defaultorderfield = $a_defaultorderfield;
1141  }
+ Here is the caller graph for this function:

◆ setDescription()

◆ setDisableFilterHiding()

◆ setDisplayAsBlock()

ilTable2GUI::setDisplayAsBlock (   $a_val)

Set display as block.

Parameters
booleandisplay as block

Definition at line 1002 of file class.ilTable2GUI.php.

Referenced by assFileUploadFileTableGUI\__construct(), and ilCalendarCategoryTableGUI\__construct().

1003  {
1004  $this->display_as_block = $a_val;
1005  }
+ Here is the caller graph for this function:

◆ setEnableAllCommand()

ilTable2GUI::setEnableAllCommand (   $a_value)

Enable actions for all entries in current result.

Parameters
bool$a_value

Definition at line 3405 of file class.ilTable2GUI.php.

Referenced by ilUserTableGUI\__construct().

3406  {
3407  $this->enable_command_for_all = (bool)$a_value;
3408  }
+ Here is the caller graph for this function:

◆ setEnableHeader()

ilTable2GUI::setEnableHeader (   $a_enableheader)

Set Enable Header.

Parameters
boolean$a_enableheaderEnable Header

Definition at line 475 of file class.ilTable2GUI.php.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilBookingSchedulesTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilExportTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilRendererTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilWorkflowEngineDefinitionsTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilLinksTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilSystemStylesTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilRepositoryObjectSearchResultTableGUI\init(), and ilLinkCheckerTableGUI\prepareHTML().

476  {
477  $this->enabled["header"] = $a_enableheader;
478  }
+ Here is the caller graph for this function:

◆ setEnableNumInfo()

◆ setEnableTitle()

ilTable2GUI::setEnableTitle (   $a_enabletitle)

Set Enable Title.

Parameters
boolean$a_enabletitleEnable Title

Definition at line 455 of file class.ilTable2GUI.php.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilTrashTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilRendererTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTermListTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), and ilLinkCheckerTableGUI\prepareHTML().

456  {
457  $this->enabled["title"] = $a_enabletitle;
458  }
+ Here is the caller graph for this function:

◆ setExportFormats()

ilTable2GUI::setExportFormats ( array  $formats)

Set available export formats.

Parameters
array$formats

Definition at line 3154 of file class.ilTable2GUI.php.

References $valid, and array.

Referenced by ilUserLPTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), and ilBookingReservationsTableGUI\__construct().

3155  {
3156  $this->export_formats = array();
3157 
3158  // #11339
3159  $valid = array(self::EXPORT_EXCEL => "tbl_export_excel",
3160  self::EXPORT_CSV => "tbl_export_csv");
3161 
3162  foreach($formats as $format)
3163  {
3164  if(array_key_exists($format, $valid))
3165  {
3166  $this->export_formats[$format] = $valid[$format];
3167  }
3168  }
3169  }
$valid
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ setExternalSegmentation()

◆ setExternalSorting()

◆ setFilterCols()

ilTable2GUI::setFilterCols (   $a_val)

Set filter columns.

Parameters
intnumber of filter columns

Definition at line 794 of file class.ilTable2GUI.php.

Referenced by arIndexTableGUI\getSelectableColumns().

795  {
796  $this->filter_cols = $a_val;
797  }
+ Here is the caller graph for this function:

◆ setFilterCommand()

◆ SetFilterValue()

ilTable2GUI::SetFilterValue ( ilFormPropertyGUI  $a_item,
  $a_value 
)
protected

Set current filter value.

Parameters
ilFormPropertyGUI$a_item
mixed$a_value

Definition at line 2956 of file class.ilTable2GUI.php.

References IL_CAL_DATE, and ilFormPropertyGUI\writeToSession().

Referenced by ilTrMatrixTableGUI\getItems(), and ilTrMatrixTableGUI\initFilter().

2957  {
2958  if(method_exists($a_item, "setChecked"))
2959  {
2960  $a_item->setChecked($a_value);
2961  }
2962  else if(method_exists($a_item, "setValue"))
2963  {
2964  $a_item->setValue($a_value);
2965  }
2966  else if(method_exists($a_item, "setDate"))
2967  {
2968  $a_item->setDate(new ilDate($a_value, IL_CAL_DATE));
2969  }
2970  $a_item->writeToSession();
2971  }
Class for single dates.
const IL_CAL_DATE
writeToSession()
Write to session.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFormAction()

ilTable2GUI::setFormAction (   $a_form_action,
  $a_multipart = false 
)
final

Set Form action parameter.

Parameters
string$a_form_actionForm action
bvool$a_multipartForm multipart status

Definition at line 937 of file class.ilTable2GUI.php.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilNewsForContextTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPCFileListTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilExerciseVerificationTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilTestVerificationTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilSCORMVerificationTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilSurveySkillAssignmentTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilCourseVerificationTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilObjClipboardTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilModulesTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilTrashTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilBookingSchedulesTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilExportTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilContributorTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilUserTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilMailingListsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilOrgUnitTypeTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilStudyProgrammeTypeTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilWorkflowEngineDefinitionsTableGUI\__construct(), ilLinksTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilSpecialUsersTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSystemStylesTableGUI\addActions(), ilObjStudyProgrammeIndividualPlanGUI\appendIndividualPlanActions(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilSCTreeDuplicatesTableGUI\init(), ilDidacticTemplateSettingsTableGUI\init(), ilSCGroupTableGUI\init(), ilLogComponentTableGUI\init(), ilObjectCopyCourseGroupSelectionTableGUI\init(), ilSCTaskTableGUI\init(), ilObjectCopyProgressTableGUI\init(), ilAssQuestionSkillAssignmentsTableGUI\init(), ilRepositoryObjectSearchResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilAssQuestionHintsTableGUI\initAdministrationCommands(), arDeleteGUI\initFormAction(), arIndexTableGUI\initFormAction(), ilForumTopicTableGUI\initMergeThreadsTable(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilHistoryTableGUI\initTable(), ilSCORMTrackingItemsPerScoTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingItemsPerUserTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilSCORMTrackingItemsScoTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilSCORMTrackingItemPerUserTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), ilAssQuestionHintsTableGUI\initTestoutputCommands(), and ilLinkCheckerTableGUI\prepareHTML().

938  {
939  $this->form_action = $a_form_action;
940  $this->form_multipart = (bool)$a_multipart;
941  }
+ Here is the caller graph for this function:

◆ setFormName()

ilTable2GUI::setFormName (   $a_formname = "")

Set Form name.

Parameters
string$a_formnameForm name

Definition at line 958 of file class.ilTable2GUI.php.

Referenced by ilSessionMaterialsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSessionParticipantsTableGUI\init(), ilAuthLoginPageEditorTableGUI\initTable(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\setTableIdentifiers(), and ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\setTableIdentifiers().

959  {
960  $this->formname = $a_formname;
961  }
+ Here is the caller graph for this function:

◆ setHeaderHTML()

ilTable2GUI::setHeaderHTML (   $html)

set header html

Parameters
string$html

Definition at line 2837 of file class.ilTable2GUI.php.

References $html.

2838  {
2839  $this->headerHTML = $html;
2840  }
$html
Definition: example_001.php:87

◆ setId()

ilTable2GUI::setId (   $a_val)

Set id.

Parameters
stringelement id

Definition at line 978 of file class.ilTable2GUI.php.

References getPrefix(), and setPrefix().

Referenced by ilNotificationSettingsTable\__construct(), ilQuestionPoolImportVerificationTableGUI\__construct(), ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilMemberExportFileTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilLDAPServerTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilRepositoryObjectSearchResultTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilObjWorkspaceFolderTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilSCTreeDuplicatesTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilSCORMTrackingItemsPerScoTableGUI\__construct(), ilECSServerTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilSCORMTrackingUsersTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilSCORMTrackingItemsPerUserTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilDidacticTemplateSettingsTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilHelpModuleTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSCGroupTableGUI\__construct(), ilSCORMTrackingItemPerUserTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilSCORMTrackingItemsScoTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilPCIIMTriggerTableGUI\__construct(), ilBookingSchedulesTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilLogComponentTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSCTaskTableGUI\__construct(), ilLPCollectionSettingsTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilObjectTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilConsultationHourGroupTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilConsultationHourBookingTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilObjectCopyProgressTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilUserTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilLOMemberTestResultTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilUserClipboardTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilMailingListsTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilTermListTableGUI\__construct(), ilOrgUnitTypeTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilLOTestAssignmentTableGUI\__construct(), ilStudyProgrammeTypeTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilWorkflowEngineDefinitionsTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilRoleTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), arIndexTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilExParticipantTableGUI\initMode(), ilExerciseMemberTableGUI\initMode(), ilAuthLoginPageEditorTableGUI\initTable(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\setTableIdentifiers(), and ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\setTableIdentifiers().

979  {
980  $this->id = $a_val;
981  if ($this->getPrefix() == "")
982  {
983  $this->setPrefix($a_val);
984  }
985  }
setPrefix($a_prefix)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setIsDataTable()

ilTable2GUI::setIsDataTable (   $a_val)

Set is data table.

Parameters
booleanis data table

Definition at line 435 of file class.ilTable2GUI.php.

Referenced by ilPDNewsTableGUI\__construct(), and __construct().

436  {
437  $this->datatable = $a_val;
438  }
+ Here is the caller graph for this function:

◆ setLimit()

ilTable2GUI::setLimit (   $a_limit = 0,
  $a_default_limit = 0 
)

Definition at line 3465 of file class.ilTable2GUI.php.

Referenced by ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilQuestionPoolImportVerificationTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilObjWorkspaceFolderTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilRendererTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilSystemStylesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), determineLimit(), ilLogComponentTableGUI\init(), ilRepositoryObjectSearchResultTableGUI\init(), arDeleteGUI\initRowSelector(), ilLinkCheckerTableGUI\prepareHTML(), and ilTestToplistGUI\prepareTable().

3466  {
3467  parent::setLimit($a_limit, $a_default_limit);
3468 
3469  // #17077 - if limit is set "manually" to 9999, force rows selector off
3470  if($a_limit == 9999 &&
3471  $this->limit_determined)
3472  {
3473  $this->rows_selector_off = true;
3474  }
3475  }
+ Here is the caller graph for this function:

◆ setNoEntriesText()

ilTable2GUI::setNoEntriesText (   $a_text)

◆ setOpenFormTag()

ilTable2GUI::setOpenFormTag (   $a_val)

Set open form tag.

Parameters
booleanopen form tag

Definition at line 135 of file class.ilTable2GUI.php.

Referenced by ilQuestionPoolImportVerificationTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), and ilObjTaxonomyGUI\listNodes().

136  {
137  $this->open_form_tag = $a_val;
138  }
+ Here is the caller graph for this function:

◆ setOrderField()

ilTable2GUI::setOrderField (   $a_order_field)

set order column

Parameters
string(array) field name for ordering

Definition at line 543 of file class.ilTable2GUI.php.

Referenced by ilDataBibliographicRecordListTableGUI\__construct(), determineOffsetAndOrder(), ilRegistrationCodesTableGUI\getItems(), and ilCalendarManageTableGUI\resetToDefaults().

544  {
545  $this->order_field = $a_order_field;
546  }
+ Here is the caller graph for this function:

◆ setOrderLink()

ilTable2GUI::setOrderLink (   $sort_field,
  $order_dir 
)

Definition at line 1353 of file class.ilTable2GUI.php.

References $_GET, $ilCtrl, $ilUser, $old, and getNavParameter().

Referenced by fillHeader().

1354  {
1355  global $ilCtrl, $ilUser;
1356 
1357  $hash = "";
1358  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
1359  {
1360  $hash = "#".$this->getTopAnchor();
1361  }
1362 
1363  $old = $_GET[$this->getNavParameter()];
1364 
1365  // set order link
1366  $ilCtrl->setParameter($this->parent_obj,
1367  $this->getNavParameter(),
1368  $sort_field.":".$order_dir.":".$this->offset);
1369  $this->tpl->setVariable("TBL_ORDER_LINK",
1370  $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd).$hash);
1371 
1372  // set old value of nav variable
1373  $ilCtrl->setParameter($this->parent_obj,
1374  $this->getNavParameter(), $old);
1375  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
$old
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPrefix()

ilTable2GUI::setPrefix (   $a_prefix)
final

Definition at line 602 of file class.ilTable2GUI.php.

Referenced by ilTestAverageReachedPointsTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilOrgUnitTypeTableGUI\__construct(), ilStudyProgrammeTypeTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), assFileUploadFileTableGUI\initCommand(), setId(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\setTableIdentifiers(), and ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\setTableIdentifiers().

603  {
604  $this->prefix = $a_prefix;
605  }
+ Here is the caller graph for this function:

◆ setPreventDoubleSubmission()

ilTable2GUI::setPreventDoubleSubmission (   $a_val)

Set prevent double submission.

Parameters
bool$a_valprevent double submission

Definition at line 3450 of file class.ilTable2GUI.php.

3451  {
3452  $this->prevent_double_submission = $a_val;
3453  }

◆ setPrintMode()

ilTable2GUI::setPrintMode (   $a_value = false)

Toogle print mode.

Parameters
bool$a_value

Definition at line 3175 of file class.ilTable2GUI.php.

Referenced by ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), and ilTrObjectUsersPropsTableGUI\__construct().

3176  {
3177  $this->print_mode = (bool)$a_value;
3178  }
+ Here is the caller graph for this function:

◆ setResetCommand()

◆ setRowSelectorLabel()

ilTable2GUI::setRowSelectorLabel (   $row_selector_label)
Parameters
string$row_selector_label

Definition at line 3431 of file class.ilTable2GUI.php.

References $row_selector_label.

Referenced by ilForumTopicTableGUI\init(), and ilForumTopicTableGUI\initMergeThreadsTable().

3432  {
3433  $this->row_selector_label = $row_selector_label;
3434  return $this;
3435  }
+ Here is the caller graph for this function:

◆ setRowTemplate()

ilTable2GUI::setRowTemplate (   $a_template,
  $a_template_dir = "" 
)
final

Set row template.

Parameters
string$a_templateTemplate file name.
string$a_template_dirService/Module directory.

Definition at line 1127 of file class.ilTable2GUI.php.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilNotificationSettingsTable\__construct(), ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilQuestionPoolImportVerificationTableGUI\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilLDAPServerTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilNewsForContextTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilObjWorkspaceFolderTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPCFileListTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilObjClipboardTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilExerciseVerificationTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilTestVerificationTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilCourseVerificationTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilConfirmationTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilSCORMVerificationTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilStudyProgrammeAcknowledgeCompletedCoursesTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilSurveySkillAssignmentTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilModulesTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilBookingSchedulesTableGUI\__construct(), ilPCIIMTriggerTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExportTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilLMQuestionListTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilContributorTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilRendererTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilMailingListsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilOrgUnitTypeTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilStudyProgrammeTypeTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilPDNewsTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), ilWorkflowEngineDefinitionsTableGUI\__construct(), ilLinksTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilSpecialUsersTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilSystemStylesTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSystemStylesTableGUI\addActions(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilSCTreeDuplicatesTableGUI\init(), ilDidacticTemplateSettingsTableGUI\init(), ilSCGroupTableGUI\init(), ilLogComponentTableGUI\init(), ilUserClipboardTableGUI\init(), ilSCTaskTableGUI\init(), ilObjectCopyProgressTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilObjectTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilSessionParticipantsTableGUI\init(), ilForumTopicTableGUI\initMergeThreadsTable(), ilRepositoryObjectSearchResultTableGUI\initRowTemplate(), ilECSServerTableGUI\initTable(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilHistoryTableGUI\initTable(), ilSCORMTrackingItemsPerScoTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingItemsPerUserTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilSCORMTrackingItemsScoTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilSCORMTrackingItemPerUserTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), arIndexTableGUI\initTableRowTemplate(), and ilLinkCheckerTableGUI\prepareHTML().

1128  {
1129  $this->row_template = $a_template;
1130  $this->row_template_dir = $a_template_dir;
1131  }
+ Here is the caller graph for this function:

◆ setSelectAllCheckbox()

ilTable2GUI::setSelectAllCheckbox (   $a_select_all_checkbox)

Set the name of the checkbox that should be toggled with a select all button.

Parameters
string$a_select_all_checkboxname of the checkbox

Definition at line 1032 of file class.ilTable2GUI.php.

Referenced by ilNotificationSettingsTable\__construct(), ilQuestionPoolImportVerificationTableGUI\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilContributorTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilUserTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilMailingListsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilSCORM2004TrackingTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilDidacticTemplateSettingsTableGUI\init(), ilUserClipboardTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), assFileUploadFileTableGUI\initCommand(), ilExParticipantTableGUI\initMode(), ilExerciseMemberTableGUI\initMode(), arIndexTableGUI\initMultiItemActionsButton(), ilConsultationHourBookingTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), and ilForumDraftsTableGUI\initTableColumns().

1033  {
1034  $this->select_all_checkbox = $a_select_all_checkbox;
1035  }
+ Here is the caller graph for this function:

◆ setShowRowsSelector()

ilTable2GUI::setShowRowsSelector (   $a_value)

Toggle rows-per-page selector.

Parameters
bool$a_value

Definition at line 3001 of file class.ilTable2GUI.php.

Referenced by ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilCategoryAssignRoleTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilLPCollectionSettingsTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilUserTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilLogComponentTableGUI\init(), ilRepositoryObjectSearchResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\init(), ilForumTopicTableGUI\initMergeThreadsTable(), arDeleteGUI\initRowSelector(), arIndexTableGUI\initRowSelector(), and ilConsultationHourBookingTableGUI\initTable().

3002  {
3003  $this->show_rows_selector = (bool)$a_value;
3004  }
+ Here is the caller graph for this function:

◆ setShowTemplates()

◆ setTitle()

ilTable2GUI::setTitle (   $a_title,
  $a_icon = 0,
  $a_icon_alt = 0 
)
final

Set title and title icon.

Definition at line 513 of file class.ilTable2GUI.php.

Referenced by ilNotificationSettingsTable\__construct(), ilMemberExportFileTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilLDAPServerTableGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilSubItemSelectionTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilBadgeTypesTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilBadgeImageTemplateTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectBadgeTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilSCORMVerificationTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilClientListTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilObjClipboardTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilTestVerificationTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilCourseVerificationTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilExerciseVerificationTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilCronManagerTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilExportTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilExportIDTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilExGradesTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilContributorTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilWikiPagesTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilRendererTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilMailingListsTableGUI\__construct(), ilMailingListsMembersTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTermListTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilUserActionAdminTableGUI\__construct(), ilWikiRecentChangesTableGUI\__construct(), ilWorkflowEngineDefinitionsTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilLinksTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilGlossaryForeignTermTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilECSSettingsGUI\communities(), ilTestEvaluationGUI\detailedEvaluation(), ilDidacticTemplateSettingsTableGUI\init(), ilSCGroupTableGUI\init(), ilUserClipboardTableGUI\init(), ilSCTaskTableGUI\init(), ilListOfQuestionsTableGUI\init(), ilRepositoryObjectSearchResultTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\initMergeThreadsTable(), ilExParticipantTableGUI\initMode(), ilExerciseMemberTableGUI\initMode(), ilECSServerTableGUI\initTable(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilHistoryTableGUI\initTable(), ilSCORMTrackingItemsPerScoTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilSCORMTrackingItemsPerUserTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilSCORMTrackingItemsScoTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), ilSCORMTrackingItemPerUserTableGUI\initTable(), ilLPCollectionSettingsTableGUI\initTable(), ilLOTestAssignmentTableGUI\initTitle(), ilTestDynamicQuestionSetStatisticTableGUI\initTitle(), ilLPTableBaseGUI\parseTitle(), ilLocalUnitCategoryTableGUI\populateTitle(), ilGlobalUnitCategoryTableGUI\populateTitle(), ilLinkCheckerTableGUI\prepareHTML(), and ilLDAPSettingsGUI\roleMapping().

514  {
515  parent::setTitle($a_title, $a_icon, $a_icon_alt);
516  }
+ Here is the caller graph for this function:

◆ setTopAnchor()

ilTable2GUI::setTopAnchor (   $a_val)

Set top anchor.

Parameters
stringtop anchor

Definition at line 395 of file class.ilTable2GUI.php.

Referenced by ilBookmarkAdministrationTableGUI\__construct().

396  {
397  $this->top_anchor = $a_val;
398  }
+ Here is the caller graph for this function:

◆ setTopCommands()

◆ storeNavParameter()

ilTable2GUI::storeNavParameter ( )

Definition at line 1585 of file class.ilTable2GUI.php.

References getOffset(), ilTableGUI\getOrderDirection(), getOrderField(), and storeProperty().

Referenced by ilLPTableBaseGUI\executeCommand(), and getHTML().

1586  {
1587  if ($this->getOrderField() != "")
1588  {
1589  $this->storeProperty("order", $this->getOrderField());
1590  }
1591  if ($this->getOrderDirection() != "")
1592  {
1593  $this->storeProperty("direction", $this->getOrderDirection());
1594  }
1595 //echo "-".$this->getOffset()."-";
1596  if ($this->getOffset() !== "")
1597  {
1598  $this->storeProperty("offset", $this->getOffset());
1599  }
1600  }
storeProperty($type, $value)
Store table property.
getOrderDirection()
Get order direction.
getOffset()
Get offset.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ storeProperty()

ilTable2GUI::storeProperty (   $type,
  $value 
)

Store table property.

Parameters
string$type
mixed$value

Definition at line 2848 of file class.ilTable2GUI.php.

References $ilUser, and getId().

Referenced by determineLimit(), determineSelectedColumns(), determineSelectedFilters(), restoreTemplate(), and storeNavParameter().

2849  {
2850  global $ilUser;
2851 
2852  if(is_object($ilUser) && $this->getId() != "")
2853  {
2854  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2855  $tab_prop = new ilTablePropertiesStorage();
2856 
2857  $tab_prop->storeProperty($this->getId(), $ilUser->getId(), $type, $value);
2858  }
2859  }
Saves (mostly asynchronously) user properties of tables (e.g.
$ilUser
Definition: imgupload.php:18
getId()
Get element id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeFilterToSession()

ilTable2GUI::writeFilterToSession ( )

Write filter values to session.

Definition at line 2056 of file class.ilTable2GUI.php.

References $_POST, getFilterItems(), and isAdvMDFilter().

Referenced by arIndexTableGUI\applyFilter(), ilTestQuestionBrowserTableGUI\applyFilterCmd(), ilLPTableBaseGUI\executeCommand(), ilObjTestGUI\fpSetFilterObject(), and ilObjTestGUI\npSetFilterObject().

2057  {
2058  $advmd_record_gui = null;
2059  if(method_exists($this, "getAdvMDRecordGUI"))
2060  {
2061  $advmd_record_gui = $this->getAdvMDRecordGUI();
2062  }
2063 
2064  foreach ($this->getFilterItems() as $item)
2065  {
2066  if($advmd_record_gui &&
2067  $this->isAdvMDFilter($advmd_record_gui, $item))
2068  {
2069  continue;
2070  }
2071 
2072  if ($item->checkInput())
2073  {
2074  $item->setValueByArray($_POST);
2075  $item->writeToSession();
2076  }
2077  }
2078  foreach ($this->getFilterItems(true) as $item)
2079  {
2080  if($advmd_record_gui &&
2081  $this->isAdvMDFilter($advmd_record_gui, $item))
2082  {
2083  continue;
2084  }
2085 
2086  if ($item->checkInput())
2087  {
2088  $item->setValueByArray($_POST);
2089  $item->writeToSession();
2090  }
2091  }
2092 
2093  if($advmd_record_gui)
2094  {
2095  $advmd_record_gui->importFilter();
2096  }
2097 
2098  // #13209
2099  unset($_REQUEST["tbltplcrt"]);
2100  unset($_REQUEST["tbltpldel"]);
2101  }
isAdvMDFilter(ilAdvancedMDRecordGUI $a_gui, $a_element)
Check if filter element is based on adv md.
getFilterItems($a_optionals=false)
Get filter items.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $close_command

ilTable2GUI::$close_command = ""
protected

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

◆ $close_form_tag

ilTable2GUI::$close_form_tag = true
protected

Definition at line 45 of file class.ilTable2GUI.php.

Referenced by getCloseFormTag().

◆ $columns_determined

ilTable2GUI::$columns_determined = false
protected

Definition at line 43 of file class.ilTable2GUI.php.

◆ $context

ilTable2GUI::$context = ""
protected

◆ $default_filter_visibility

ilTable2GUI::$default_filter_visibility = false
protected

Definition at line 58 of file class.ilTable2GUI.php.

Referenced by getDefaultFilterVisibility().

◆ $disable_filter_hiding

ilTable2GUI::$disable_filter_hiding = false
protected

Definition at line 31 of file class.ilTable2GUI.php.

Referenced by getDisableFilterHiding().

◆ $enable_command_for_all

ilTable2GUI::$enable_command_for_all
protected

Definition at line 51 of file class.ilTable2GUI.php.

◆ $export_formats

ilTable2GUI::$export_formats
protected

Definition at line 47 of file class.ilTable2GUI.php.

◆ $export_mode

ilTable2GUI::$export_mode
protected

Definition at line 48 of file class.ilTable2GUI.php.

Referenced by getExportMode().

◆ $ext_seg

ilTable2GUI::$ext_seg = false
protected

Definition at line 27 of file class.ilTable2GUI.php.

Referenced by getExternalSegmentation().

◆ $ext_sort

ilTable2GUI::$ext_sort = false
protected

Definition at line 26 of file class.ilTable2GUI.php.

Referenced by getExternalSorting().

◆ $filter_cmd

ilTable2GUI::$filter_cmd = 'applyFilter'
protected

Definition at line 23 of file class.ilTable2GUI.php.

Referenced by getFilterCommand().

◆ $filter_cols

ilTable2GUI::$filter_cols = 5
protected

Definition at line 25 of file class.ilTable2GUI.php.

Referenced by getFilterCols().

◆ $filters

ilTable2GUI::$filters = array()
protected

Definition at line 21 of file class.ilTable2GUI.php.

Referenced by arIndexTableGUI\checkColumnVisibile(), and getFilterItems().

◆ $filters_determined

ilTable2GUI::$filters_determined = false
protected

Definition at line 42 of file class.ilTable2GUI.php.

◆ $headerHTML

ilTable2GUI::$headerHTML
private

Definition at line 19 of file class.ilTable2GUI.php.

◆ $limit_determined

ilTable2GUI::$limit_determined = false
protected

Definition at line 41 of file class.ilTable2GUI.php.

◆ $mi_sel_buttons

ilTable2GUI::$mi_sel_buttons = null
protected

Definition at line 30 of file class.ilTable2GUI.php.

◆ $nav_determined

ilTable2GUI::$nav_determined = false
protected

Definition at line 40 of file class.ilTable2GUI.php.

◆ $open_form_tag

ilTable2GUI::$open_form_tag = true
protected

Definition at line 44 of file class.ilTable2GUI.php.

Referenced by getOpenFormTag().

◆ $optional_filters

ilTable2GUI::$optional_filters = array()
protected

Definition at line 22 of file class.ilTable2GUI.php.

Referenced by getFilterItems().

◆ $prevent_double_submission

ilTable2GUI::$prevent_double_submission = true
protected

Definition at line 64 of file class.ilTable2GUI.php.

Referenced by getPreventDoubleSubmission().

◆ $print_mode

ilTable2GUI::$print_mode
protected

Definition at line 49 of file class.ilTable2GUI.php.

Referenced by getPrintMode().

◆ $reset_cmd

ilTable2GUI::$reset_cmd = 'resetFilter'
protected

Definition at line 24 of file class.ilTable2GUI.php.

Referenced by getResetCommand().

◆ $restore_filter

ilTable2GUI::$restore_filter
protected

Definition at line 52 of file class.ilTable2GUI.php.

◆ $restore_filter_values

ilTable2GUI::$restore_filter_values
protected

Definition at line 53 of file class.ilTable2GUI.php.

Referenced by addFilterItem().

◆ $row_selector_label

ilTable2GUI::$row_selector_label
protected

Definition at line 69 of file class.ilTable2GUI.php.

Referenced by getRowSelectorLabel(), and setRowSelectorLabel().

◆ $rows_selector_off

ilTable2GUI::$rows_selector_off = false
protected

Definition at line 38 of file class.ilTable2GUI.php.

◆ $selectable_columns

ilTable2GUI::$selectable_columns = array()
protected

◆ $selected_column

ilTable2GUI::$selected_column = array()
protected

Definition at line 35 of file class.ilTable2GUI.php.

Referenced by getCurrentState().

◆ $selected_filter

ilTable2GUI::$selected_filter = false
protected

Definition at line 32 of file class.ilTable2GUI.php.

◆ $show_rows_selector

ilTable2GUI::$show_rows_selector = true
protected

Definition at line 37 of file class.ilTable2GUI.php.

Referenced by getShowRowsSelector().

◆ $show_templates

ilTable2GUI::$show_templates = false
protected

Definition at line 36 of file class.ilTable2GUI.php.

Referenced by getShowTemplates().

◆ $sortable_fields

ilTable2GUI::$sortable_fields = array()
protected

Definition at line 60 of file class.ilTable2GUI.php.

◆ $top_anchor

ilTable2GUI::$top_anchor = "il_table_top"
protected

Definition at line 20 of file class.ilTable2GUI.php.

Referenced by getTopAnchor().

◆ $top_commands

ilTable2GUI::$top_commands = true
protected

Definition at line 33 of file class.ilTable2GUI.php.

Referenced by getTopCommands().

◆ $unique_id

◆ ACTION_ALL_LIMIT

const ilTable2GUI::ACTION_ALL_LIMIT = 1000

Definition at line 83 of file class.ilTable2GUI.php.

◆ EXPORT_CSV

const ilTable2GUI::EXPORT_CSV = 2

Definition at line 81 of file class.ilTable2GUI.php.

◆ EXPORT_EXCEL

const ilTable2GUI::EXPORT_EXCEL = 1

Definition at line 80 of file class.ilTable2GUI.php.

Referenced by ilObjLanguageExtGUI\statisticsObject().

◆ FILTER_DATE

const ilTable2GUI::FILTER_DATE = 3

Definition at line 73 of file class.ilTable2GUI.php.

◆ FILTER_DATE_RANGE

◆ FILTER_DATETIME_RANGE

const ilTable2GUI::FILTER_DATETIME_RANGE = 8

◆ FILTER_DURATION_RANGE

const ilTable2GUI::FILTER_DURATION_RANGE = 7

◆ FILTER_LANGUAGE

const ilTable2GUI::FILTER_LANGUAGE = 4

◆ FILTER_NUMBER_RANGE

◆ FILTER_SELECT

◆ FILTER_TEXT


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