ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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...
 
 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
 ilTableGUI ($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...
 
 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 ($worksheet, &$a_row)
 Add meta information to excel export. More...
 
 fillHeaderExcel ($worksheet, &$a_row)
 Excel Version of Fill Header. More...
 
 fillRowExcel ($a_worksheet, &$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
 
 $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 84 of file class.ilTable2GUI.php.

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

85  {
86  global $lng;
87 
88  parent::__construct(0, false);
89  $this->unique_id = md5(uniqid());
90  $this->parent_obj = $a_parent_obj;
91  $this->parent_cmd = $a_parent_cmd;
92  $this->buttons = array();
93  $this->header_commands = array();
94  $this->multi = array();
95  $this->hidden_inputs = array();
96  $this->formname = "table_" . $this->unique_id;
97  $this->tpl = new ilTemplate("tpl.table2.html", true, true, "Services/Table");
98 
99  $lng->loadLanguageModule('tbl');
100 
101  if(!$a_template_context)
102  {
103  $a_template_context = $this->getId();
104  }
105  $this->setContext($a_template_context);
106 
107  // activate export mode
108  if(isset($_GET[$this->prefix."_xpt"]))
109  {
110  $this->export_mode = (int)$_GET[$this->prefix."_xpt"];
111  }
112 
113  // template handling
114  if(isset($_GET[$this->prefix."_tpl"]))
115  {
116  $this->restoreTemplate($_GET[$this->prefix."_tpl"]);
117  }
118 
119  $this->determineLimit();
120  $this->setIsDataTable(true);
121  $this->setEnableNumInfo(true);
122  $this->determineSelectedColumns();
123  }
$_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
setContext($id)
Set context.
global $lng
Definition: privfeed.php:40
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 1308 of file class.ilTable2GUI.php.

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

1310  {
1311  $this->column[] = array(
1312  "text" => $a_text,
1313  "sort_field" => $a_sort_field,
1314  "width" => $a_width,
1315  "is_checkbox_action_column" => $a_is_checkbox_action_column,
1316  "class" => $a_class,
1317  "tooltip" => $a_tooltip,
1318  "tooltip_html" => (bool)$a_tooltip_with_html
1319  );
1320  if ($a_sort_field != "")
1321  {
1322  $this->sortable_fields[] = $a_sort_field;
1323  }
1324  $this->column_count = count($this->column);
1325  }
+ 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 1187 of file class.ilTable2GUI.php.

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

1188  {
1189  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, 'onclick' => $a_onclick,
1190  "id" => $a_id, "class" => $a_class);
1191  }
+ 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 1198 of file class.ilTable2GUI.php.

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

1199  {
1200  $this->buttons[] = $a_button;
1201  }
+ 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 611 of file class.ilTable2GUI.php.

References $restore_filter_values.

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

612  {
613  $a_input_item->setParent($this);
614  if (!$a_optional)
615  {
616  $this->filters[] = $a_input_item;
617  }
618  else
619  {
620  $this->optional_filters[] = $a_input_item;
621  }
622 
623  // restore filter values (from stored view)
624  if($this->restore_filter)
625  {
626  if(array_key_exists($a_input_item->getFieldId(), $this->restore_filter_values))
627  {
628  $this->setFilterValue($a_input_item, $this->restore_filter_values[$a_input_item->getFieldId()]);
629  }
630  else
631  {
632  $this->setFilterValue($a_input_item, null); // #14949
633  }
634  }
635  }
+ 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 646 of file class.ilTable2GUI.php.

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

Referenced by arIndexTableGUI\addFilterField(), ilDataCollectionDatatype\addFilterInputFieldToTable(), ilRbacLogTableGUI\initFilter(), ilSCORMTrackingUsersTableGUI\initFilter(), ilBookingObjectsTableGUI\initFilter(), ilCourseParticipantsGroupsTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilTrMatrixTableGUI\initFilter(), ilObjectRolePermissionTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilTrSummaryTableGUI\initFilter(), and ilTrObjectUsersPropsTableGUI\initFilter().

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

Referenced by ilObjGroupGUI\membersObject(), and ilObjCourseGUI\membersObject().

1276  {
1277  $this->header_commands[] = array("href" => $a_href, "text" => $a_text,
1278  "target" => $a_target, "img" => $a_img);
1279  }
+ Here is the caller graph for this function:

◆ addHiddenInput()

ilTable2GUI::addHiddenInput (   $a_name,
  $a_value 
)

Add Hidden Input field.

Parameters
stringName
stringValue

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

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

1265  {
1266  $this->hidden_inputs[] = array("name" => $a_name, "value" => $a_value);
1267  }
+ Here is the caller graph for this function:

◆ addMultiCommand()

ilTable2GUI::addMultiCommand (   $a_cmd,
  $a_text 
)

Add Command button.

Parameters
stringCommand
stringText

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

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

1254  {
1255  $this->multi[] = array("cmd" => $a_cmd, "text" => $a_text);
1256  }
+ 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 1228 of file class.ilTable2GUI.php.

References addHiddenInput().

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

1229  {
1230  $this->mi_sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
1231  $this->addHiddenInput("cmd_sv[".$a_cmd."]", $a_sel_var);
1232  }
addHiddenInput($a_name, $a_value)
Add Hidden Input field.
+ 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 1213 of file class.ilTable2GUI.php.

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

◆ clearCommandButtons()

ilTable2GUI::clearCommandButtons ( )

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

Referenced by ilObjectCustomUserFieldsTableGUI\parse().

1177  {
1178  $this->buttons = array();
1179  }
+ Here is the caller graph for this function:

◆ dataExists()

ilTable2GUI::dataExists ( )
final

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

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

586  {
587  if (is_array($this->row_data))
588  {
589  if (count($this->row_data) > 0)
590  {
591  return true;
592  }
593  }
594  return false;
595  }
+ Here is the caller graph for this function:

◆ deleteTemplate()

ilTable2GUI::deleteTemplate (   $a_name)

Delete template.

Parameters
string$a_name
Returns
bool

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

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

Referenced by fillFooter().

3075  {
3076  global $ilUser;
3077 
3078  $a_name = ilUtil::prepareFormOutput($a_name, true);
3079 
3080  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3081  {
3082  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3083  $storage = new ilTableTemplatesStorage();
3084  $storage->delete($this->getContext(), $ilUser->getId(), $a_name);
3085  return true;
3086  }
3087  return false;
3088  }
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.
global $ilUser
Definition: imgupload.php:15
+ 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 168 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().

169  {
170  global $ilUser;
171 
172  if ($this->limit_determined)
173  {
174  return;
175  }
176 
177  $limit = 0;
178  if (isset($_GET[$this->prefix."_trows"]))
179  {
180  $this->storeProperty("rows", $_GET[$this->prefix."_trows"]);
181  $limit = $_GET[$this->prefix."_trows"];
182  $this->resetOffset();
183  }
184 
185  if ($limit == 0)
186  {
187  $rows = $this->loadProperty("rows");
188  if ($rows > 0)
189  {
190  $limit = $rows;
191  }
192  else
193  {
194  if (is_object($ilUser))
195  {
196  $limit = $ilUser->getPref("hits_per_page");
197  }
198  else
199  {
200  $limit = 40;
201  }
202  }
203  }
204 
205  $this->setLimit($limit);
206  $this->limit_determined = true;
207  }
$_GET["client_id"]
storeProperty($type, $value)
Store table property.
resetOffset($a_in_determination=false)
Reset offset.
global $ilUser
Definition: imgupload.php:15
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 1490 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(), ilShoppingCartTableGUI\getCartHTML(), 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(), ilCourseParticipantsTableGUI\parse(), ilTermsOfServiceTableGUI\populate(), ilFileSystemTableGUI\prepareOutput(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), resetOffset(), and arIndexTableGUI\setOrderAndSegmentation().

1491  {
1492  global $ilUser;
1493 
1494  if ($this->nav_determined)
1495  {
1496  return true;
1497  }
1498 
1499  if ($_POST[$this->getNavParameter()."1"] != "")
1500  {
1501  if ($_POST[$this->getNavParameter()."1"] != $_POST[$this->getNavParameter()])
1502  {
1503  $this->nav_value = $_POST[$this->getNavParameter()."1"];
1504  }
1505  else if ($_POST[$this->getNavParameter()."2"] != $_POST[$this->getNavParameter()])
1506  {
1507  $this->nav_value = $_POST[$this->getNavParameter()."2"];
1508  }
1509  }
1510  elseif($_GET[$this->getNavParameter()])
1511  {
1512  $this->nav_value = $_GET[$this->getNavParameter()];
1513  }
1514  elseif($_SESSION[$this->getNavParameter()] != "")
1515  {
1516  $this->nav_value = $_SESSION[$this->getNavParameter()];
1517  }
1518 
1519  if ($this->nav_value == "" && $this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID)
1520  {
1521  $order = $this->loadProperty("order");
1522  if (in_array($order, $this->sortable_fields))
1523  {
1524  $direction = $this->loadProperty("direction");
1525  }
1526  else
1527  {
1528  $direction = $this->getDefaultOrderDirection();
1529  }
1530  // get order and direction from db
1531  $this->nav_value =
1532  $order.":".
1533  $direction.":".
1534  $this->loadProperty("offset");
1535  }
1536  $nav = explode(":", $this->nav_value);
1537 
1538  // $nav[0] is order by
1539  $this->setOrderField(($nav[0] != "") ? $nav[0] : $this->getDefaultOrderField());
1540  $this->setOrderDirection(($nav[1] != "") ? $nav[1] : $this->getDefaultOrderDirection());
1541 
1542  if (!$a_omit_offset)
1543  {
1544  // #8904: offset must be discarded when no limit is given
1545  if(!$this->getExternalSegmentation() && $this->limit_determined && $this->limit == 9999)
1546  {
1547  $this->resetOffset(true);
1548  }
1549  else if (!$this->getExternalSegmentation() && $nav[2] >= $this->max_count)
1550  {
1551  $this->resetOffset(true);
1552  }
1553  else
1554  {
1555  $this->setOffset($nav[2]);
1556  }
1557  }
1558 
1559  if (!$a_omit_offset)
1560  {
1561  $this->nav_determined = true;
1562  }
1563  }
getDefaultOrderField()
Get Default order field.
$_POST['username']
Definition: cron.php:12
$_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.
global $ilUser
Definition: imgupload.php:15
loadProperty($type)
Load table property.
getId()
Get element id.
+ 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 222 of file class.ilTable2GUI.php.

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

Referenced by __construct(), and getCurrentState().

223  {
224  if ($this->columns_determined)
225  {
226  return;
227  }
228 
229  $old_sel = $this->loadProperty("selfields");
230 
231  $stored = false;
232  if ($old_sel != "")
233  {
234  $sel_fields =
235  @unserialize($old_sel);
236  $stored = true;
237  }
238  if(!is_array($sel_fields))
239  {
240  $stored = false;
241  $sel_fields = array();
242  }
243 
244  $this->selected_columns = array();
245  $set = false;
246  foreach ($this->getSelectableColumns() as $k => $c)
247  {
248  $this->selected_column[$k] = false;
249 
250  $new_column = ($sel_fields[$k] === NULL);
251 
252  if ($_POST["tblfsh".$this->getId()])
253  {
254  $set = true;
255  if (is_array($_POST["tblfs".$this->getId()]) && in_array($k, $_POST["tblfs".$this->getId()]))
256  {
257  $this->selected_column[$k] = true;
258  }
259  }
260  else if ($stored && !$new_column) // take stored values
261  {
262  $this->selected_column[$k] = $sel_fields[$k];
263  }
264  else // take default values
265  {
266  if ($new_column)
267  {
268  $set = true;
269  }
270  if ($c["default"])
271  {
272  $this->selected_column[$k] = true;
273  }
274  }
275  }
276 
277  if ($old_sel != serialize($this->selected_column) && $set)
278  {
279  $this->storeProperty("selfields", serialize($this->selected_column));
280  }
281 
282  $this->columns_determined = true;
283  }
$_POST['username']
Definition: cron.php:12
getSelectableColumns()
Get selectable columns.
storeProperty($type, $value)
Store table property.
loadProperty($type)
Load table property.
getId()
Get element id.
+ 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 863 of file class.ilTable2GUI.php.

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

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

864  {
865  if ($this->filters_determined)
866  {
867  return;
868  }
869 
870  $old_sel = $this->loadProperty("selfilters");
871  $stored = false;
872  if ($old_sel != "")
873  {
874  $sel_filters =
875  @unserialize($old_sel);
876  $stored = true;
877  }
878  if(!is_array($sel_filters))
879  {
880  $stored = false;
881  $sel_filters = array();
882  }
883 
884  $this->selected_filter = array();
885  $set = false;
886  foreach ($this->getFilterItems(true) as $item)
887  {
888  $k = $item->getPostVar();
889 
890  $this->selected_filter[$k] = false;
891 
892  if ($_POST["tblfsf".$this->getId()])
893  {
894  $set = true;
895  if (is_array($_POST["tblff".$this->getId()]) && in_array($k, $_POST["tblff".$this->getId()]))
896  {
897  $this->selected_filter[$k] = true;
898  }
899  else
900  {
901  $item->setValue(NULL);
902  $item->writeToSession();
903  }
904  }
905  else if ($stored) // take stored values
906  {
907  $this->selected_filter[$k] = $sel_filters[$k];
908  }
909  }
910 
911  if ($old_sel != serialize($this->selected_filter) && $set)
912  {
913  $this->storeProperty("selfilters", serialize($this->selected_filter));
914  }
915 
916  $this->filters_determined = true;
917  }
$_POST['username']
Definition: cron.php:12
storeProperty($type, $value)
Store table property.
loadProperty($type)
Load table property.
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:

◆ executeCommand()

& ilTable2GUI::executeCommand ( )

Execute command.

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

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

319  {
320  global $ilCtrl;
321 
322  $next_class = $ilCtrl->getNextClass($this);
323  $cmd = $ilCtrl->getCmd();
324 
325  switch($next_class)
326  {
327  case 'ilformpropertydispatchgui':
328  include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
329  $form_prop_dispatch = new ilFormPropertyDispatchGUI();
330  $this->initFilter();
331  $item = $this->getFilterItemByPostVar($_GET["postvar"]);
332  $form_prop_dispatch->setItem($item);
333  return $ilCtrl->forwardCommand($form_prop_dispatch);
334  break;
335 
336  }
337  return false;
338  }
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 3169 of file class.ilTable2GUI.php.

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

Referenced by getHTML().

3170  {
3171  if($this->dataExists())
3172  {
3173  // #9640: sort
3174  if (!$this->getExternalSorting() && $this->enabled["sort"])
3175  {
3176  $this->determineOffsetAndOrder(true);
3177 
3178  $this->row_data = ilUtil::sortArray($this->row_data, $this->getOrderField(),
3179  $this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
3180  }
3181 
3182  $filename = "export";
3183 
3184  switch($format)
3185  {
3186  case self::EXPORT_EXCEL:
3187  include_once "./Services/Excel/classes/class.ilExcelUtils.php";
3188  include_once "./Services/Excel/classes/class.ilExcelWriterAdapter.php";
3189  $adapter = new ilExcelWriterAdapter($filename.".xls", $send);
3190  $workbook = $adapter->getWorkbook();
3191  $worksheet = $workbook->addWorksheet();
3192  $row = 0;
3193 
3194  ob_start();
3195  $this->fillMetaExcel($worksheet, $row); // row must be increment in fillMetaExcel()! (optional method)
3196 
3197  // #14813
3198  $pre = $row;
3199  $this->fillHeaderExcel($worksheet, $row); // row should NOT be incremented in fillHeaderExcel()! (required method)
3200  if($pre == $row)
3201  {
3202  $row++;
3203  }
3204 
3205  foreach($this->row_data as $set)
3206  {
3207  $this->fillRowExcel($worksheet, $row, $set);
3208  $row++; // #14760
3209  }
3210  ob_end_clean();
3211 
3212  $workbook->close();
3213  break;
3214 
3215  case self::EXPORT_CSV:
3216  include_once "./Services/Utilities/classes/class.ilCSVWriter.php";
3217  $csv = new ilCSVWriter();
3218  $csv->setSeparator(";");
3219 
3220  ob_start();
3221  $this->fillMetaCSV($csv);
3222  $this->fillHeaderCSV($csv);
3223  foreach($this->row_data as $set)
3224  {
3225  $this->fillRowCSV($csv, $set);
3226  }
3227  ob_end_clean();
3228 
3229  if($send)
3230  {
3231  $filename .= ".csv";
3232  header("Content-type: text/comma-separated-values");
3233  header("Content-Disposition: attachment; filename=\"".$filename."\"");
3234  header("Expires: 0");
3235  header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
3236  header("Pragma: public");
3237  echo $csv->getCSVString();
3238 
3239  }
3240  else
3241  {
3242  file_put_contents($filename, $csv->getCSVString());
3243  }
3244  break;
3245  }
3246 
3247  if($send)
3248  {
3249  exit();
3250  }
3251  }
3252  }
getExternalSorting()
Get external sorting.
exit
Definition: login.php:54
Helper class to generate CSV files.
fillHeaderExcel($worksheet, &$a_row)
Excel Version of Fill Header.
getOrderDirection()
Get order direction.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
Class ilExcelWriterAdapter.
fillRowExcel($a_worksheet, &$a_row, $a_set)
Excel Version of Fill Row.
fillMetaCSV($a_csv)
Add meta information to csv export.
numericOrdering($a_field)
Should this field be sorted numeric?
$filename
Definition: buildRTE.php:89
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
fillMetaExcel($worksheet, &$a_row)
Add meta information to excel export.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
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 2569 of file class.ilTable2GUI.php.

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

Referenced by ilShoppingCartTableGUI\getCartHTML(), and getHTML().

2570  {
2571  global $lng;
2572 
2573  // action row
2574  $action_row = false;
2575  $arrow = false;
2576 
2577  // add selection buttons
2578  if (count($this->sel_buttons) > 0)
2579  {
2580  foreach ($this->sel_buttons as $button)
2581  {
2582  $this->tpl->setCurrentBlock("sel_button");
2583  $this->tpl->setVariable("SBUTTON_SELECT",
2584  ilUtil::formSelect($button["selected"], $button["sel_var"],
2585  $button["options"], false, true));
2586  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2587  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2588  $this->tpl->parseCurrentBlock();
2589 
2590  if ($this->getTopCommands())
2591  {
2592  $this->tpl->setCurrentBlock("sel_top_button");
2593  $this->tpl->setVariable("SBUTTON_SELECT",
2594  ilUtil::formSelect($button["selected"], $button["sel_var"],
2595  $button["options"], false, true));
2596  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2597  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2598  $this->tpl->parseCurrentBlock();
2599  }
2600  }
2601  $buttons = true;
2602  $action_row = true;
2603  }
2604  $this->sel_buttons[] = array("options" => $a_options, "cmd" => $a_cmd, "text" => $a_text);
2605 
2606  // add buttons
2607  if (count($this->buttons) > 0)
2608  {
2609  foreach ($this->buttons as $button)
2610  {
2611  if(!is_array($button))
2612  {
2613  if($button instanceof ilButtonBase)
2614  {
2615  $this->tpl->setVariable('BUTTON_OBJ', $button->render());
2616 
2617  // this will remove id - should be unique
2618  $button = clone $button;
2619 
2620  $this->tpl->setVariable('BUTTON_TOP_OBJ', $button->render());
2621  }
2622  continue;
2623  }
2624 
2625  if (strlen($button['onclick']))
2626  {
2627  $this->tpl->setCurrentBlock('cmdonclick');
2628  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2629  $this->tpl->parseCurrentBlock();
2630  }
2631  $this->tpl->setCurrentBlock("plain_button");
2632  if ($button["id"] != "")
2633  {
2634  $this->tpl->setVariable("PBID", ' id="'.$button["id"].'" ');
2635  }
2636  if ($button["class"] != "")
2637  {
2638  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2639  }
2640  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2641  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2642  $this->tpl->parseCurrentBlock();
2643 
2644  if ($this->getTopCommands())
2645  {
2646  if (strlen($button['onclick']))
2647  {
2648  $this->tpl->setCurrentBlock('top_cmdonclick');
2649  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2650  $this->tpl->parseCurrentBlock();
2651  }
2652  $this->tpl->setCurrentBlock("plain_top_button");
2653  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2654  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2655  if ($button["class"] != "")
2656  {
2657  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2658  }
2659  $this->tpl->parseCurrentBlock();
2660  }
2661  }
2662 
2663  $buttons = true;
2664  $action_row = true;
2665  }
2666 
2667  // multi selection
2668  if(count($this->mi_sel_buttons))
2669  {
2670  foreach ($this->mi_sel_buttons as $button)
2671  {
2672  $this->tpl->setCurrentBlock("mi_sel_button");
2673  $this->tpl->setVariable("MI_BUTTON_SELECT",
2674  ilUtil::formSelect($button["selected"], $button["sel_var"],
2675  $button["options"], false, true));
2676  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2677  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2678  $this->tpl->parseCurrentBlock();
2679 
2680  if ($this->getTopCommands())
2681  {
2682  $this->tpl->setCurrentBlock("mi_top_sel_button");
2683  $this->tpl->setVariable("MI_BUTTON_SELECT",
2684  ilUtil::formSelect($button["selected"], $button["sel_var"]."_2",
2685  $button["options"], false, true));
2686  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2687  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2688  $this->tpl->parseCurrentBlock();
2689  }
2690 
2691  }
2692  $arrow = true;
2693  $action_row = true;
2694  }
2695 
2696 
2697  if (count($this->multi) > 1 && $this->dataExists())
2698  {
2699  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2700  {
2701  $this->tpl->setCurrentBlock("tbl_cmd_select_all");
2702  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2703  $this->tpl->parseCurrentBlock();
2704  }
2705 
2706  $this->tpl->setCurrentBlock("tbl_cmd_select");
2707  $sel = array();
2708  foreach ($this->multi as $mc)
2709  {
2710  $sel[$mc["cmd"]] = $mc["text"];
2711  }
2712  $this->tpl->setVariable("SELECT_CMDS",
2713  ilUtil::formSelect("", "selected_cmd", $sel, false, true));
2714  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2715  $this->tpl->parseCurrentBlock();
2716  $arrow = true;
2717  $action_row = true;
2718 
2719  if ($this->getTopCommands())
2720  {
2721  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2722  {
2723  $this->tpl->setCurrentBlock("tbl_top_cmd_select_all");
2724  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2725  $this->tpl->parseCurrentBlock();
2726  }
2727 
2728  $this->tpl->setCurrentBlock("tbl_top_cmd_select");
2729  $sel = array();
2730  foreach ($this->multi as $mc)
2731  {
2732  $sel[$mc["cmd"]] = $mc["text"];
2733  }
2734  $this->tpl->setVariable("SELECT_CMDS",
2735  ilUtil::formSelect("", "selected_cmd2", $sel, false, true));
2736  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2737  $this->tpl->parseCurrentBlock();
2738  }
2739  }
2740  elseif(count($this->multi) == 1 && $this->dataExists())
2741  {
2742  $this->tpl->setCurrentBlock("tbl_single_cmd");
2743  $sel = array();
2744  foreach ($this->multi as $mc)
2745  {
2746  $cmd = $mc['cmd'];
2747  $txt = $mc['text'];
2748  }
2749  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2750  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2751  $this->tpl->parseCurrentBlock();
2752  $arrow = true;
2753  $action_row = true;
2754 
2755  if ($this->getTopCommands())
2756  {
2757  $this->tpl->setCurrentBlock("tbl_top_single_cmd");
2758  $sel = array();
2759  foreach ($this->multi as $mc)
2760  {
2761  $cmd = $mc['cmd'];
2762  $txt = $mc['text'];
2763  }
2764  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2765  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2766  $this->tpl->parseCurrentBlock();
2767  }
2768  }
2769 
2770  if ($arrow)
2771  {
2772  $this->tpl->setCurrentBlock("tbl_action_img_arrow");
2773  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
2774  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2775  $this->tpl->parseCurrentBlock();
2776 
2777  if ($this->getTopCommands())
2778  {
2779  $this->tpl->setCurrentBlock("tbl_top_action_img_arrow");
2780  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_upright.svg"));
2781  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2782  $this->tpl->parseCurrentBlock();
2783  }
2784  }
2785 
2786  if ($action_row)
2787  {
2788  $this->tpl->setCurrentBlock("tbl_action_row");
2789  $this->tpl->parseCurrentBlock();
2790  if ($this->getTopCommands())
2791  {
2792  $this->tpl->setCurrentBlock("tbl_top_action_row");
2793  $this->tpl->parseCurrentBlock();
2794  }
2795  }
2796  }
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
global $lng
Definition: privfeed.php:40
+ 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 2118 of file class.ilTable2GUI.php.

References $_REQUEST, $ilCtrl, $ilUser, ilTableGUI\$limit, $lng, ilTableGUI\$max_count, $options, $url, 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 ilShoppingCartTableGUI\getCartHTML(), and getHTML().

2119  {
2120  global $lng, $ilCtrl, $ilUser;
2121 
2122  $footer = false;
2123 
2124  // select all checkbox
2125  if ((strlen($this->getFormName())) && (strlen($this->getSelectAllCheckbox())) && $this->dataExists())
2126  {
2127  $this->tpl->setCurrentBlock("select_all_checkbox");
2128  $this->tpl->setVariable("SELECT_ALL_TXT_SELECT_ALL", $lng->txt("select_all"));
2129  $this->tpl->setVariable("SELECT_ALL_CHECKBOX_NAME", $this->getSelectAllCheckbox());
2130  $this->tpl->setVariable("SELECT_ALL_FORM_NAME", $this->getFormName());
2131  $this->tpl->setVariable("CHECKBOXNAME", "chb_select_all_" . $this->unique_id);
2132  $this->tpl->parseCurrentBlock();
2133  }
2134 
2135  // table footer numinfo
2136  if ($this->enabled["numinfo"] && $this->enabled["footer"])
2137  {
2138  $start = $this->offset + 1; // compute num info
2139  if (!$this->dataExists())
2140  {
2141  $start = 0;
2142  }
2143  $end = $this->offset + $this->limit;
2144 
2145  if ($end > $this->max_count or $this->limit == 0)
2146  {
2147  $end = $this->max_count;
2148  }
2149 
2150  if ($this->max_count > 0)
2151  {
2152  if ($this->lang_support)
2153  {
2154  $numinfo = "(".$start." - ".$end." ".strtolower($this->lng->txt("of"))." ".$this->max_count.")";
2155  }
2156  else
2157  {
2158  $numinfo = "(".$start." - ".$end." of ".$this->max_count.")";
2159  }
2160  }
2161  if ($this->max_count > 0)
2162  {
2163  if ($this->getEnableNumInfo())
2164  {
2165  $this->tpl->setCurrentBlock("tbl_footer_numinfo");
2166  $this->tpl->setVariable("NUMINFO", $numinfo);
2167  $this->tpl->parseCurrentBlock();
2168  }
2169  }
2170  $footer = true;
2171  }
2172 
2173  // table footer linkbar
2174  if ($this->enabled["linkbar"] && $this->enabled["footer"] && $this->limit != 0
2175  && $this->max_count > 0)
2176  {
2177  $layout = array(
2178  "link" => $this->footer_style,
2179  "prev" => $this->footer_previous,
2180  "next" => $this->footer_next,
2181  );
2182  //if (!$this->getDisplayAsBlock())
2183  //{
2184  $linkbar = $this->getLinkbar("1");
2185  $this->tpl->setCurrentBlock("tbl_footer_linkbar");
2186  $this->tpl->setVariable("LINKBAR", $linkbar);
2187  $this->tpl->parseCurrentBlock();
2188  $linkbar = true;
2189  //}
2190  $footer = true;
2191  }
2192 
2193  // column selector
2194  if (count($this->getSelectableColumns()) > 0)
2195  {
2196  $items = array();
2197  foreach ($this->getSelectableColumns() as $k => $c)
2198  {
2199  $items[$k] = array("txt" => $c["txt"],
2200  "selected" => $this->isColumnSelected($k));
2201  }
2202  include_once("./Services/UIComponent/CheckboxListOverlay/classes/class.ilCheckboxListOverlayGUI.php");
2203  $cb_over = new ilCheckboxListOverlayGUI("tbl_".$this->getId());
2204  $cb_over->setLinkTitle($lng->txt("columns"));
2205  $cb_over->setItems($items);
2206  //$cb_over->setUrl("./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2207  // $this->getId()."&cmd=saveSelectedFields&user_id=".$ilUser->getId());
2208  $cb_over->setFormCmd($this->getParentCmd());
2209  $cb_over->setFieldVar("tblfs".$this->getId());
2210  $cb_over->setHiddenVar("tblfsh".$this->getId());
2211  $cb_over->setSelectionHeaderClass("ilTableMenuItem");
2212  $column_selector = $cb_over->getHTML();
2213  $footer = true;
2214  }
2215 
2216  if($this->getShowTemplates() && is_object($ilUser))
2217  {
2218  // template handling
2219  if(isset($_REQUEST["tbltplcrt"]) && $_REQUEST["tbltplcrt"])
2220  {
2221  if($this->saveTemplate($_REQUEST["tbltplcrt"]))
2222  {
2223  ilUtil::sendSuccess($lng->txt("tbl_template_created"));
2224  }
2225  }
2226  else if(isset($_REQUEST["tbltpldel"]) && $_REQUEST["tbltpldel"])
2227  {
2228  if($this->deleteTemplate($_REQUEST["tbltpldel"]))
2229  {
2230  ilUtil::sendSuccess($lng->txt("tbl_template_deleted"));
2231  }
2232  }
2233 
2234  $create_id = "template_create_overlay_".$this->getId();
2235  $delete_id = "template_delete_overlay_".$this->getId();
2236  $list_id = "template_stg_".$this->getId();
2237 
2238  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
2239  $storage = new ilTableTemplatesStorage();
2240  $templates = $storage->getNames($this->getContext(), $ilUser->getId());
2241 
2242  include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
2243 
2244  // form to delete template
2245  if(sizeof($templates))
2246  {
2247  $overlay = new ilOverlayGUI($delete_id);
2248  $overlay->setTrigger($list_id."_delete");
2249  $overlay->setAnchor("ilAdvSelListAnchorElement_".$list_id);
2250  $overlay->setAutoHide(false);
2251  $overlay->add();
2252 
2253  $lng->loadLanguageModule("form");
2254  $this->tpl->setCurrentBlock("template_editor_delete_item");
2255  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION_VALUE", "");
2256  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION", "- ".$lng->txt("form_please_select")." -");
2257  $this->tpl->parseCurrentBlock();
2258  foreach($templates as $name)
2259  {
2260  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION_VALUE", $name);
2261  $this->tpl->setVariable("TEMPLATE_DELETE_OPTION", $name);
2262  $this->tpl->parseCurrentBlock();
2263  }
2264 
2265  $this->tpl->setCurrentBlock("template_editor_delete");
2266  $this->tpl->setVariable("TEMPLATE_DELETE_ID", $delete_id);
2267  $this->tpl->setVariable("TXT_TEMPLATE_DELETE", $lng->txt("tbl_template_delete"));
2268  $this->tpl->setVariable("TXT_TEMPLATE_DELETE_SUBMIT", $lng->txt("delete"));
2269  $this->tpl->setVariable("TEMPLATE_DELETE_CMD", $this->parent_cmd);
2270  $this->tpl->parseCurrentBlock();
2271  }
2272 
2273 
2274  // form to save new template
2275  $overlay = new ilOverlayGUI($create_id);
2276  $overlay->setTrigger($list_id."_create");
2277  $overlay->setAnchor("ilAdvSelListAnchorElement_".$list_id);
2278  $overlay->setAutoHide(false);
2279  $overlay->add();
2280 
2281  $this->tpl->setCurrentBlock("template_editor");
2282  $this->tpl->setVariable("TEMPLATE_CREATE_ID", $create_id);
2283  $this->tpl->setVariable("TXT_TEMPLATE_CREATE", $lng->txt("tbl_template_create"));
2284  $this->tpl->setVariable("TXT_TEMPLATE_CREATE_SUBMIT", $lng->txt("save"));
2285  $this->tpl->setVariable("TEMPLATE_CREATE_CMD", $this->parent_cmd);
2286  $this->tpl->parseCurrentBlock();
2287 
2288  // load saved template
2289  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2290  $alist = new ilAdvancedSelectionListGUI();
2291  $alist->setId($list_id);
2292  $alist->addItem($lng->txt("tbl_template_create"), "create", "#");
2293  if(sizeof($templates))
2294  {
2295  $alist->addItem($lng->txt("tbl_template_delete"), "delete", "#");
2296  foreach($templates as $name)
2297  {
2298  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_tpl", urlencode($name));
2299  $alist->addItem($name, $name, $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
2300  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_tpl", "");
2301  }
2302  }
2303  $alist->setListTitle($lng->txt("tbl_templates"));
2305  $this->tpl->setVariable("TEMPLATE_SELECTOR", "&nbsp;".$alist->getHTML());
2306  }
2307 
2308  if ($footer)
2309  {
2310  $this->tpl->setCurrentBlock("tbl_footer");
2311  $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
2312  if ($this->getDisplayAsBlock())
2313  {
2314  $this->tpl->setVariable("BLK_CLASS", "Block");
2315  }
2316  $this->tpl->parseCurrentBlock();
2317 
2318  // top navigation, if number info or linkbar given
2319  if ($numinfo != "" || $linkbar != "" || $column_selector != "" ||
2320  count($this->filters) > 0 || count($this->optional_filters) > 0)
2321  {
2322  if (is_object($ilUser) && (count($this->filters) || count($this->optional_filters)))
2323  {
2324  $this->tpl->setCurrentBlock("filter_activation");
2325  $this->tpl->setVariable("TXT_ACTIVATE_FILTER", $lng->txt("show_filter"));
2326  $this->tpl->setVariable("FILA_ID", $this->getId());
2327  if ($this->getId() != "")
2328  {
2329  $this->tpl->setVariable("SAVE_URLA", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2330  $this->getId()."&cmd=showFilter&user_id=".$ilUser->getId());
2331  }
2332  $this->tpl->parseCurrentBlock();
2333 
2334 
2335  if (!$this->getDisableFilterHiding())
2336  {
2337  $this->tpl->setCurrentBlock("filter_deactivation");
2338  $this->tpl->setVariable("TXT_HIDE", $lng->txt("hide_filter"));
2339  if ($this->getId() != "")
2340  {
2341  $this->tpl->setVariable("SAVE_URL", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
2342  $this->getId()."&cmd=hideFilter&user_id=".$ilUser->getId());
2343  $this->tpl->setVariable("FILD_ID", $this->getId());
2344  }
2345  $this->tpl->parseCurrentBlock();
2346  }
2347 
2348  }
2349 
2350  if ($numinfo != "" && $this->getEnableNumInfo())
2351  {
2352  $this->tpl->setCurrentBlock("top_numinfo");
2353  $this->tpl->setVariable("NUMINFO", $numinfo);
2354  $this->tpl->parseCurrentBlock();
2355  }
2356  if ($linkbar != "" && !$this->getDisplayAsBlock())
2357  {
2358  $linkbar = $this->getLinkbar("2");
2359  $this->tpl->setCurrentBlock("top_linkbar");
2360  $this->tpl->setVariable("LINKBAR", $linkbar);
2361  $this->tpl->parseCurrentBlock();
2362  }
2363 
2364  // column selector
2365  $this->tpl->setVariable("COLUMN_SELECTOR", $column_selector);
2366 
2367  // row selector
2368  if ($this->getShowRowsSelector() &&
2369  is_object($ilUser) &&
2370  $this->getId() &&
2371  !$this->rows_selector_off) // JF, 2014-10-27
2372  {
2373  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2374  $alist = new ilAdvancedSelectionListGUI();
2376  $alist->setId("sellst_rows_".$this->getId());
2377  $hpp = ($ilUser->getPref("hits_per_page") != 9999)
2378  ? $ilUser->getPref("hits_per_page")
2379  : $lng->txt("unlimited");
2380 
2381  $options = array(0 => $lng->txt("default")." (".$hpp.")",5 => 5, 10 => 10, 15 => 15, 20 => 20,
2382  30 => 30, 40 => 40, 50 => 50,
2383  100 => 100, 200 => 200, 400 => 400, 800 => 800);
2384  foreach ($options as $k => $v)
2385  {
2386  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_trows", $k);
2387  $alist->addItem($v, $k, $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
2388  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_trows", "");
2389  }
2390  $alist->setListTitle($this->getRowSelectorLabel() ? $this->getRowSelectorLabel() : $lng->txt("rows"));
2391  $this->tpl->setVariable("ROW_SELECTOR", $alist->getHTML());
2392  }
2393 
2394  // export
2395  if(sizeof($this->export_formats) && $this->dataExists())
2396  {
2397  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2398  $alist = new ilAdvancedSelectionListGUI();
2400  $alist->setId("sellst_xpt");
2401  foreach($this->export_formats as $format => $caption_lng_id)
2402  {
2403  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_xpt", $format);
2404  $url = $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd);
2405  $ilCtrl->setParameter($this->parent_obj, $this->prefix."_xpt", "");
2406  $alist->addItem($lng->txt($caption_lng_id), $format, $url);
2407  }
2408  $alist->setListTitle($lng->txt("export"));
2409  $this->tpl->setVariable("EXPORT_SELECTOR", "&nbsp;".$alist->getHTML());
2410  }
2411 
2412  $this->tpl->setCurrentBlock("top_navigation");
2413  $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
2414  if ($this->getDisplayAsBlock())
2415  {
2416  $this->tpl->setVariable("BLK_CLASS", "Block");
2417  }
2418  $this->tpl->parseCurrentBlock();
2419  }
2420  }
2421  }
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.
User interface class for a checkbox list overlay.
isColumnSelected($a_col)
Is given column selected?
User interface class for advanced drop-down selection lists.
getEnableNumInfo()
Get enable num info.
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7
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 1357 of file class.ilTable2GUI.php.

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

Referenced by render().

1358  {
1359  global $lng;
1360 
1361  $allcolumnswithwidth = true;
1362  foreach ((array) $this->column as $idx => $column)
1363  {
1364  if (!strlen($column["width"]))
1365  {
1366  $allcolumnswithwidth = false;
1367  }
1368  else if($column["width"] == "1")
1369  {
1370  // IE does not like 1 but seems to work with 1%
1371  $this->column[$idx]["width"] = "1%";
1372  }
1373  }
1374  if ($allcolumnswithwidth)
1375  {
1376  foreach ((array) $this->column as $column)
1377  {
1378  $this->tpl->setCurrentBlock("tbl_colgroup_column");
1379  $this->tpl->setVariable("COLGROUP_COLUMN_WIDTH", $column["width"]);
1380  $this->tpl->parseCurrentBlock();
1381  }
1382  }
1383  $ccnt = 0;
1384  foreach ((array) $this->column as $column)
1385  {
1386  $ccnt++;
1387  //tooltip
1388  if ($column["tooltip"] != "")
1389  {
1390  include_once("./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1391  ilTooltipGUI::addTooltip("thc_".$this->getId()."_".$ccnt, $column["tooltip"],
1392  "", "bottom center", "top center", !$column["tooltip_html"]);
1393  }
1394  if (!$this->enabled["sort"] || $column["sort_field"] == "" || $column["is_checkbox_action_column"])
1395  {
1396  $this->tpl->setCurrentBlock("tbl_header_no_link");
1397  if ($column["width"] != "")
1398  {
1399  $this->tpl->setVariable("TBL_COLUMN_WIDTH_NO_LINK"," width=\"".$column["width"]."\"");
1400  }
1401  if ($column["class"] != "")
1402  {
1403  $this->tpl->setVariable("TBL_COLUMN_CLASS_NO_LINK"," class=\"".$column["class"]."\"");
1404  }
1405  if (!$column["is_checkbox_action_column"])
1406  {
1407  $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
1408  $column["text"]);
1409  }
1410  else
1411  {
1412  $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
1413  ilUtil::img(ilUtil::getImagePath("spacer.png"), $lng->txt("action")));
1414  }
1415  $this->tpl->setVariable("HEAD_CELL_NL_ID", "thc_".$this->getId()."_".$ccnt);
1416  if ($column["class"] != "")
1417  {
1418  $this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
1419  }
1420  $this->tpl->parseCurrentBlock();
1421  $this->tpl->touchBlock("tbl_header_th");
1422  continue;
1423  }
1424  if (($column["sort_field"] == $this->order_field) && ($this->order_direction != ""))
1425  {
1426  $this->tpl->setCurrentBlock("tbl_order_image");
1427  if ($this->order_direction == "asc")
1428  {
1429  $this->tpl->setVariable("ORDER_CLASS", "glyphicon glyphicon-arrow-up");
1430  }
1431  else
1432  {
1433  $this->tpl->setVariable("ORDER_CLASS", "glyphicon glyphicon-arrow-down");
1434  }
1435  $this->tpl->setVariable("IMG_ORDER_ALT", $this->lng->txt("change_sort_direction"));
1436  $this->tpl->parseCurrentBlock();
1437  }
1438 
1439  $this->tpl->setCurrentBlock("tbl_header_cell");
1440  $this->tpl->setVariable("TBL_HEADER_CELL", $column["text"]);
1441  $this->tpl->setVariable("HEAD_CELL_ID", "thc_".$this->getId()."_".$ccnt);
1442 
1443  // only set width if a value is given for that column
1444  if ($column["width"] != "")
1445  {
1446  $this->tpl->setVariable("TBL_COLUMN_WIDTH"," width=\"".$column["width"]."\"");
1447  }
1448  if ($column["class"] != "")
1449  {
1450  $this->tpl->setVariable("TBL_COLUMN_CLASS"," class=\"".$column["class"]."\"");
1451  }
1452 
1453  $lng_sort_column = $this->lng->txt("sort_by_this_column");
1454  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_sort_column);
1455 
1456  $order_dir = "asc";
1457 
1458  if ($column["sort_field"] == $this->order_field)
1459  {
1460  $order_dir = $this->sort_order;
1461 
1462  $lng_change_sort = $this->lng->txt("change_sort_direction");
1463  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_change_sort);
1464  }
1465 
1466  if ($column["class"] != "")
1467  {
1468  $this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
1469  }
1470  $this->setOrderLink($column["sort_field"], $order_dir);
1471  $this->tpl->parseCurrentBlock();
1472  $this->tpl->touchBlock("tbl_header_th");
1473  }
1474 
1475  $this->tpl->setCurrentBlock("tbl_header");
1476  $this->tpl->parseCurrentBlock();
1477  }
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.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
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:40
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 3326 of file class.ilTable2GUI.php.

References ilTableGUI\$title.

Referenced by exportData().

3327  {
3328  foreach ($this->column as $column)
3329  {
3330  $title = strip_tags($column["text"]);
3331  if($title)
3332  {
3333  $a_csv->addColumn($title);
3334  }
3335  }
3336  $a_csv->addRow();
3337  }
+ Here is the caller graph for this function:

◆ fillHeaderExcel()

ilTable2GUI::fillHeaderExcel (   $worksheet,
$a_row 
)
protected

Excel Version of Fill Header.

Likely to be overwritten by derived class.

Parameters
object$a_worksheetcurrent sheet
int$a_rowrow counter

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

References ilTableGUI\$title.

Referenced by exportData().

3274  {
3275  $col = 0;
3276  foreach ($this->column as $column)
3277  {
3278  $title = strip_tags($column["text"]);
3279  if($title)
3280  {
3281  $worksheet->write($a_row, $col, $title);
3282  $col++;
3283  }
3284  }
3285  }
+ Here is the caller graph for this function:

◆ fillHiddenRow()

ilTable2GUI::fillHiddenRow ( )

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

Referenced by ilShoppingCartTableGUI\getCartHTML(), and getHTML().

2549  {
2550  $hidden_row = false;
2551  if(count($this->hidden_inputs))
2552  {
2553  foreach ($this->hidden_inputs as $hidden_input)
2554  {
2555  $this->tpl->setCurrentBlock("tbl_hidden_field");
2556  $this->tpl->setVariable("FIELD_NAME", $hidden_input["name"]);
2557  $this->tpl->setVariable("FIELD_VALUE", $hidden_input["value"]);
2558  $this->tpl->parseCurrentBlock();
2559  }
2560 
2561  $this->tpl->setCurrentBlock("tbl_hidden_row");
2562  $this->tpl->parseCurrentBlock();
2563  }
2564  }
+ 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 3315 of file class.ilTable2GUI.php.

Referenced by exportData().

3316  {
3317 
3318  }
+ Here is the caller graph for this function:

◆ fillMetaExcel()

ilTable2GUI::fillMetaExcel (   $worksheet,
$a_row 
)
protected

Add meta information to excel export.

Likely to be overwritten by derived class.

Parameters
object$a_worksheetcurrent sheet
int$a_rowrow counter

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

Referenced by exportData().

3262  {
3263 
3264  }
+ 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 2107 of file class.ilTable2GUI.php.

Referenced by ilMemcacheServerTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilDataCollectionRecordListTableGUI\fillRowExcel(), getHTML(), ilQuestionUsagesTableGUI\initColumns(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilForumTopicTableGUI\initMergeThreadsTable(), ilRepositoryUserResultTableGUI\initMultiCommands(), and ilBuddySystemRelationsTableGUI\populate().

2108  {
2109  foreach ($a_set as $key => $value)
2110  {
2111  $this->tpl->setVariable("VAL_".strtoupper($key), $value);
2112  }
2113  }
+ 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 3346 of file class.ilTable2GUI.php.

Referenced by exportData().

3347  {
3348  foreach ($a_set as $key => $value)
3349  {
3350  if(is_array($value))
3351  {
3352  $value = implode(', ', $value);
3353  }
3354  $a_csv->addColumn(strip_tags($value));
3355  }
3356  $a_csv->addRow();
3357  }
+ Here is the caller graph for this function:

◆ fillRowExcel()

ilTable2GUI::fillRowExcel (   $a_worksheet,
$a_row,
  $a_set 
)
protected

Excel Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
object$a_worksheetcurrent sheet
int$a_rowrow counter
array$a_setdata array

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

Referenced by exportData().

3296  {
3297  $col = 0;
3298  foreach ($a_set as $key => $value)
3299  {
3300  if(is_array($value))
3301  {
3302  $value = implode(', ', $value);
3303  }
3304  $a_worksheet->write($a_row, $col, strip_tags($value));
3305  $col++;
3306  }
3307  }
+ 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 3374 of file class.ilTable2GUI.php.

References ilTableGUI\$limit.

3375  {
3376  global $ilClientIniFile;
3377 
3378  $limit = $ilClientIniFile->readVariable("system", "TABLE_ACTION_ALL_LIMIT");
3379  if(!$limit)
3380  {
3381  $limit = self::ACTION_ALL_LIMIT;
3382  }
3383 
3384  return $limit;
3385  }

◆ getCloseFormTag()

ilTable2GUI::getCloseFormTag ( )

Get close form tag.

Returns
boolean close form tag

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

References $close_form_tag.

Referenced by getHTML().

161  {
162  return $this->close_form_tag;
163  }
+ Here is the caller graph for this function:

◆ getContext()

ilTable2GUI::getContext ( )

Get context.

Returns
string

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

References $context.

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

2957  {
2958  return $this->context;
2959  }
+ 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 2851 of file class.ilTable2GUI.php.

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

Referenced by saveTemplate().

2852  {
2853  $this->determineOffsetAndOrder();
2854  $this->determineLimit();
2855  $this->determineSelectedColumns();
2856  $this->determineSelectedFilters();
2857 
2858  // "filter" show/hide is not saved
2859 
2860  $result = array();
2861  $result["order"] = $this->getOrderField();
2862  $result["direction"] = $this->getOrderDirection();
2863  $result["offset"] = $this->getOffset();
2864  $result["rows"] = $this->getLimit();
2865  $result["selfilters"] = $this->getSelectedFilters();
2866 
2867  // #9514 - $this->getSelectedColumns() will omit deselected, leading to
2868  // confusion on restoring template
2869  $result["selfields"] = $this->selected_column;
2870 
2871  // gather filter values
2872  if($this->filters)
2873  {
2874  foreach($this->filters as $item)
2875  {
2876  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2877  }
2878  }
2879  if($this->optional_filters && $result["selfilters"])
2880  {
2881  foreach($this->optional_filters as $item)
2882  {
2883  if(in_array($item->getFieldId(), $result["selfilters"]))
2884  {
2885  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2886  }
2887  }
2888  }
2889 
2890  return $result;
2891  }
$result
getFilterValue(ilFormPropertyGUI $a_item)
Get current filter value.
determineSelectedColumns()
Determine selected columns.
determineLimit()
Determine the limit.
getOrderDirection()
Get order direction.
getOffset()
Get offset.
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()

◆ getDefaultOrderDirection()

ilTable2GUI::getDefaultOrderDirection ( )

Get Default order direction.

Returns
string Default order direction

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

Referenced by determineOffsetAndOrder().

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

◆ getDefaultOrderField()

ilTable2GUI::getDefaultOrderField ( )

Get Default order field.

Returns
string Default order field

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

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

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

◆ getDescription()

ilTable2GUI::getDescription ( )

Get description.

Returns
string description

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

Referenced by render().

529  {
530  return $this->description;
531  }
+ Here is the caller graph for this function:

◆ getDisableFilterHiding()

ilTable2GUI::getDisableFilterHiding ( )

Get disable filter hiding.

Returns
boolean

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

References $disable_filter_hiding.

Referenced by fillFooter(), and renderFilter().

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

◆ getDisplayAsBlock()

ilTable2GUI::getDisplayAsBlock ( )

Get display as block.

Returns
boolean display as block

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

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

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

◆ getEnableHeader()

ilTable2GUI::getEnableHeader ( )

Get Enable Header.

Returns
boolean Enable Header

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

481  {
482  return $this->enabled["header"];
483  }

◆ getEnableNumInfo()

ilTable2GUI::getEnableNumInfo ( )

Get enable num info.

Returns
boolean enable number of records info

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

Referenced by fillFooter().

501  {
502  return $this->num_info;
503  }
+ Here is the caller graph for this function:

◆ getEnableTitle()

ilTable2GUI::getEnableTitle ( )

Get Enable Title.

Returns
boolean Enable Title

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

461  {
462  return $this->enabled["title"];
463  }

◆ getExportMode()

ilTable2GUI::getExportMode ( )

Was export activated?

Returns
int

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

References $export_mode.

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

3160  {
3161  return $this->export_mode;
3162  }
+ Here is the caller graph for this function:

◆ getExternalSegmentation()

ilTable2GUI::getExternalSegmentation ( )

Get external segmentation.

Returns
boolean data is segmented externally

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

References $ext_seg.

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

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

◆ getExternalSorting()

ilTable2GUI::getExternalSorting ( )

Get external sorting.

Returns
boolean data is sorted externally

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

References $ext_sort.

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

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

◆ getFilterCols()

ilTable2GUI::getFilterCols ( )

Get filter columns.

Returns
int number of filter columns

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

References $filter_cols.

Referenced by renderFilter().

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

◆ getFilterCommand()

ilTable2GUI::getFilterCommand ( )

Get filter command.

Returns
string filter command

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

References $filter_cmd.

1073  {
1074  return $this->filter_cmd;
1075  }

◆ getFilterItemByPostVar()

ilTable2GUI::getFilterItemByPostVar (   $a_post_var)
final

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

References getFilterItems().

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

769  {
770  foreach ($this->getFilterItems() as $item)
771  {
772  if ($item->getPostVar() == $a_post_var)
773  {
774  return $item;
775  }
776  }
777  foreach ($this->getFilterItems(true) as $item)
778  {
779  if ($item->getPostVar() == $a_post_var)
780  {
781  return $item;
782  }
783  }
784  return false;
785  }
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 2899 of file class.ilTable2GUI.php.

References IL_CAL_DATE.

Referenced by getCurrentState().

2900  {
2901  if(method_exists($a_item, "getChecked"))
2902  {
2903  return $a_item->getChecked();
2904  }
2905  else if(method_exists($a_item, "getValue"))
2906  {
2907  return $a_item->getValue();
2908  }
2909  else if(method_exists($a_item, "getDate"))
2910  {
2911  return $a_item->getDate()->get(IL_CAL_DATE);
2912  }
2913  }
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 946 of file class.ilTable2GUI.php.

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

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

◆ getFormName()

ilTable2GUI::getFormName ( )

Get Form name.

Returns
string Form name

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

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

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

◆ getHTML()

ilTable2GUI::getHTML ( )

Get HTML.

Definition at line 1586 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 arIndexTableGUI\render().

1587  {
1588  global $lng, $ilCtrl, $ilUser;
1589 
1590  if($this->getExportMode())
1591  {
1592  $this->exportData($this->getExportMode(), true);
1593  }
1594 
1595  $this->prepareOutput();
1596 
1597  if (is_object($ilCtrl) && $this->getId() == "")
1598  {
1599  $ilCtrl->saveParameter($this->getParentObject(), $this->getNavParameter());
1600  }
1601 
1602  if(!$this->getPrintMode())
1603  {
1604  // set form action
1605  if ($this->form_action != "" && $this->getOpenFormTag())
1606  {
1607  $hash = "";
1608  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
1609  {
1610  $hash = "#".$this->getTopAnchor();
1611  }
1612 
1613  if((bool)$this->form_multipart)
1614  {
1615  $this->tpl->touchBlock("form_multipart_bl");
1616  }
1617 
1618  if($this->getPreventDoubleSubmission())
1619  {
1620  $this->tpl->touchBlock("pdfs");
1621  }
1622 
1623  $this->tpl->setCurrentBlock("tbl_form_header");
1624  $this->tpl->setVariable("FORMACTION", $this->getFormAction().$hash);
1625  $this->tpl->setVariable("FORMNAME", $this->getFormName());
1626  $this->tpl->parseCurrentBlock();
1627  }
1628 
1629  if ($this->form_action != "" && $this->getCloseFormTag())
1630  {
1631  $this->tpl->touchBlock("tbl_form_footer");
1632  }
1633  }
1634 
1635  if(!$this->enabled['content'])
1636  {
1637  return $this->render();
1638  }
1639 
1640  if (!$this->getExternalSegmentation())
1641  {
1642  $this->setMaxCount(count($this->row_data));
1643  }
1644 
1645  $this->determineOffsetAndOrder();
1646 
1647  $this->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
1648 
1649  $data = $this->getData();
1650  if($this->dataExists())
1651  {
1652  // sort
1653  if (!$this->getExternalSorting() && $this->enabled["sort"])
1654  {
1655  $data = ilUtil::sortArray($data, $this->getOrderField(),
1656  $this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
1657  }
1658 
1659  // slice
1660  if (!$this->getExternalSegmentation())
1661  {
1662  $data = array_slice($data, $this->getOffset(), $this->getLimit());
1663  }
1664  }
1665 
1666  // fill rows
1667  if($this->dataExists())
1668  {
1669  if($this->getPrintMode())
1670  {
1672  }
1673 
1674  $this->tpl->addBlockFile("TBL_CONTENT", "tbl_content", $this->row_template,
1675  $this->row_template_dir);
1676 
1677  foreach($data as $set)
1678  {
1679  $this->tpl->setCurrentBlock("tbl_content");
1680  $this->css_row = ($this->css_row != "tblrow1")
1681  ? "tblrow1"
1682  : "tblrow2";
1683  $this->tpl->setVariable("CSS_ROW", $this->css_row);
1684 
1685  $this->fillRow($set);
1686  $this->tpl->setCurrentBlock("tbl_content");
1687  $this->tpl->parseCurrentBlock();
1688  }
1689  }
1690  else
1691  {
1692  // add standard no items text (please tell me, if it messes something up, alex, 29.8.2008)
1693  $no_items_text = (trim($this->getNoEntriesText()) != '')
1694  ? $this->getNoEntriesText()
1695  : $lng->txt("no_items");
1696 
1697  $this->css_row = ($this->css_row != "tblrow1")
1698  ? "tblrow1"
1699  : "tblrow2";
1700 
1701  $this->tpl->setCurrentBlock("tbl_no_entries");
1702  $this->tpl->setVariable('TBL_NO_ENTRY_CSS_ROW', $this->css_row);
1703  $this->tpl->setVariable('TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
1704  $this->tpl->setVariable('TBL_NO_ENTRY_TEXT', trim($no_items_text));
1705  $this->tpl->parseCurrentBlock();
1706  }
1707 
1708 
1709  if(!$this->getPrintMode())
1710  {
1711  $this->fillFooter();
1712 
1713  $this->fillHiddenRow();
1714 
1715  $this->fillActionRow();
1716 
1717  $this->storeNavParameter();
1718  }
1719 
1720  return $this->render();
1721  }
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.
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 $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
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()

◆ getIsDataTable()

ilTable2GUI::getIsDataTable ( )

Get is data table.

Returns
boolean is data table

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

Referenced by render().

441  {
442  return $this->datatable;
443  }
+ 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 2430 of file class.ilTable2GUI.php.

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

Referenced by fillFooter().

2431  {
2432  global $ilCtrl, $lng, $ilUser;
2433 
2434  $hash = "";
2435  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
2436  {
2437  $hash = "#".$this->getTopAnchor();
2438  }
2439 
2440  $link = $ilCtrl->getLinkTargetByClass(get_class($this->parent_obj), $this->parent_cmd).
2441  "&".$this->getNavParameter()."=".
2442  $this->getOrderField().":".$this->getOrderDirection().":";
2443 
2444  $LinkBar = "";
2445  $layout_prev = $lng->txt("previous");
2446  $layout_next = $lng->txt("next");
2447 
2448  // if more entries then entries per page -> show link bar
2449  if ($this->max_count > $this->getLimit() || $this->custom_prev_next)
2450  {
2451  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2452 
2453  // calculate number of pages
2454  $pages = intval($this->max_count / $this->getLimit());
2455 
2456  // add a page if a rest remains
2457  if (($this->max_count % $this->getLimit()))
2458  $pages++;
2459 
2460  // links to other pages
2461  $offset_arr = array();
2462  for ($i = 1 ;$i <= $pages ; $i++)
2463  {
2464  $newoffset = $this->getLimit() * ($i-1);
2465 
2466  $nav_value = $this->getOrderField().":".$this->getOrderDirection().":".$newoffset;
2467  $offset_arr[$nav_value] = $i;
2468  }
2469 
2470  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2471 
2472  // previous link
2473  if ($this->custom_prev_next && $this->custom_prev != "")
2474  {
2475  if ($LinkBar != "")
2476  $LinkBar .= $sep;
2477  $LinkBar .= "<a href=\"".$this->custom_prev.$hash."\">".$layout_prev."</a>";
2478  }
2479  else if ($this->getOffset() >= 1 && !$this->custom_prev_next)
2480  {
2481  if ($LinkBar != "")
2482  $LinkBar .= $sep;
2483  $prevoffset = $this->getOffset() - $this->getLimit();
2484  $LinkBar .= "<a href=\"".$link.$prevoffset.$hash."\">".$layout_prev."</a>";
2485  }
2486  else
2487  {
2488  if ($LinkBar != "")
2489  $LinkBar .= $sep;
2490  $LinkBar .= '<span class="ilTableFootLight">'.$layout_prev."</span>";
2491  }
2492 
2493  // current value
2494  if ($a_num == "1")
2495  {
2496  $LinkBar .= '<input type="hidden" name="'.$this->getNavParameter().
2497  '" value="'.$this->getOrderField().":".$this->getOrderDirection().":".$this->getOffset().'" />';
2498  }
2499 
2500  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2501 
2502  // show next link (if not last page)
2503  if ($this->custom_prev_next && $this->custom_next != "")
2504  {
2505  if ($LinkBar != "")
2506  $LinkBar .= $sep;
2507  $LinkBar .= "<a href=\"".$this->custom_next.$hash."\">".$layout_next."</a>";
2508  }
2509  else if (! ( ($this->getOffset() / $this->getLimit())==($pages-1) ) && ($pages!=1) &&
2510  !$this->custom_prev_next)
2511  {
2512  if ($LinkBar != "")
2513  $LinkBar .= $sep;
2514  $newoffset = $this->getOffset() + $this->getLimit();
2515  $LinkBar .= "<a href=\"".$link.$newoffset.$hash."\">".$layout_next."</a>";
2516  }
2517  else
2518  {
2519  if ($LinkBar != "")
2520  $LinkBar .= $sep;
2521  $LinkBar .= '<span class="ilTableFootLight">'.$layout_next."</span>";
2522  }
2523 
2524  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2525 
2526  if (count($offset_arr) && !$this->getDisplayAsBlock() && !$this->custom_prev_next)
2527  {
2528  if ($LinkBar != "")
2529  $LinkBar .= $sep;
2530  $LinkBar .= "".
2531  '<label for="tab_page_sel_'.$a_num.'">'.$lng->txt("page").'</label> '.
2532  ilUtil::formSelect($this->nav_value,
2533  $this->getNavParameter().$a_num, $offset_arr, false, true, 0, "small",
2534  array("id" => "tab_page_sel_".$a_num,
2535  "onchange" => "ilTablePageSelection(this, 'cmd[".$this->parent_cmd."]')"));
2536  //' <input class="submit" type="submit" name="cmd['.$this->parent_cmd.']" value="'.
2537  //$lng->txt("ok").'" />';
2538  }
2539 
2540  return $LinkBar;
2541  }
2542  else
2543  {
2544  return false;
2545  }
2546  }
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.
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
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 1328 of file class.ilTable2GUI.php.

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

1329  {
1330  return $this->prefix."_table_nav";
1331  }
+ Here is the caller graph for this function:

◆ getNoEntriesText()

ilTable2GUI::getNoEntriesText ( )

Get text for an empty table.

Returns
string Text

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

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

421  {
422  return $this->noentriestext;
423  }
+ Here is the caller graph for this function:

◆ getOffset()

◆ getOpenFormTag()

ilTable2GUI::getOpenFormTag ( )

Get open form tag.

Returns
boolean open form tag

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

References $open_form_tag.

Referenced by getHTML().

141  {
142  return $this->open_form_tag;
143  }
+ Here is the caller graph for this function:

◆ getOrderField()

◆ getParentCmd()

◆ getParentObject()

ilTable2GUI::getParentObject ( )

Get parent object.

Returns
object parent GUI object

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

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

371  {
372  return $this->parent_obj;
373  }
+ Here is the caller graph for this function:

◆ getPrefix()

ilTable2GUI::getPrefix ( )
final

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

References ilTableGUI\$prefix.

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

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

◆ getPreventDoubleSubmission()

ilTable2GUI::getPreventDoubleSubmission ( )

Get prevent double submission.

Returns
bool prevent double submission

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

References $prevent_double_submission.

Referenced by getHTML().

3420  {
3422  }
+ Here is the caller graph for this function:

◆ getPrintMode()

ilTable2GUI::getPrintMode ( )

Get print mode.

Returns
bool $a_value

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

References $print_mode.

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

3150  {
3151  return $this->print_mode;
3152  }
+ Here is the caller graph for this function:

◆ getResetCommand()

ilTable2GUI::getResetCommand ( )

Get reset filter command.

Returns
string reset command

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

References $reset_cmd.

1095  {
1096  return $this->reset_cmd;
1097  }

◆ getRowSelectorLabel()

ilTable2GUI::getRowSelectorLabel ( )
Returns
string

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

References $row_selector_label.

Referenced by fillFooter().

3400  {
3402  }
+ 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 214 of file class.ilTable2GUI.php.

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

215  {
216  return array();
217  }
+ 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 1020 of file class.ilTable2GUI.php.

References ilTableGUI\$select_all_checkbox.

Referenced by fillFooter().

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

◆ getSelectedColumns()

ilTable2GUI::getSelectedColumns ( )

Get selected columns.

Parameters

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

Referenced by ilTermListTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilUserTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__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(), ilSearchResultTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilSurveyResultsCumulatedTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilBookingObjectsTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilUserTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRowCSV(), ilSCORMTrackingItemsTableGUI\fillRowCSV(), ilTrObjectUsersPropsTableGUI\fillRowCSV(), ilTrUserObjectsPropsTableGUI\fillRowCSV(), ilTrMatrixTableGUI\fillRowCSV(), ilTrSummaryTableGUI\fillRowCSV(), ilSCORM2004TrackingItemsTableGUI\fillRowExcel(), ilSCORMTrackingItemsTableGUI\fillRowExcel(), ilTrObjectUsersPropsTableGUI\fillRowExcel(), ilTrUserObjectsPropsTableGUI\fillRowExcel(), ilTrMatrixTableGUI\fillRowExcel(), ilTrSummaryTableGUI\fillRowExcel(), ilTrUserObjectsPropsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilQuestionPoolPrintViewTableGUI\initColumns(), ilRepositoryUserResultTableGUI\initMultiCommands(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilRepositoryUserResultTableGUI\parseUserIds(), ilSubscriberTableGUI\readSubscriberData(), and ilWaitingListTableGUI\readUserData().

303  {
304  $scol = array();
305  foreach ($this->selected_column as $k => $v)
306  {
307  if ($v)
308  {
309  $scol[$k] = $k;
310  }
311  }
312  return $scol;
313  }
+ Here is the caller graph for this function:

◆ getSelectedFilters()

ilTable2GUI::getSelectedFilters ( )

Get selected filters.

Parameters

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

Referenced by getCurrentState().

845  {
846  $sfil = array();
847  foreach ($this->selected_filter as $k => $v)
848  {
849  if ($v)
850  {
851  $sfil[$k] = $k;
852  }
853  }
854  return $sfil;
855  }
+ Here is the caller graph for this function:

◆ getShowRowsSelector()

ilTable2GUI::getShowRowsSelector ( )

Get rows-per-page selector state.

Returns
bool

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

References $show_rows_selector.

Referenced by fillFooter().

2977  {
2979  }
+ Here is the caller graph for this function:

◆ getShowTemplates()

ilTable2GUI::getShowTemplates ( )

Get template state.

Returns
bool

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

References $show_templates.

Referenced by fillFooter().

2997  {
2998  return $this->show_templates;
2999  }
+ Here is the caller graph for this function:

◆ getTopAnchor()

ilTable2GUI::getTopAnchor ( )

Get top anchor.

Returns
string top anchor

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

References $top_anchor.

Referenced by render().

401  {
402  return $this->top_anchor;
403  }
+ 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 1296 of file class.ilTable2GUI.php.

References $top_commands.

Referenced by fillActionRow().

1297  {
1298  return $this->top_commands;
1299  }
+ 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 361 of file class.ilTable2GUI.php.

Referenced by ilLPProgressTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), executeCommand(), and ilTermsOfServiceAcceptanceHistoryTableGUI\numericOrdering().

362  {
363  }
+ 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 2007 of file class.ilTable2GUI.php.

References ilAdvancedMDRecordGUI\getFilterElements().

Referenced by writeFilterToSession().

2008  {
2009  foreach($a_gui->getFilterElements(false) as $item)
2010  {
2011  if($item === $a_element)
2012  {
2013  return true;
2014  }
2015  }
2016  return false;
2017  }
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 291 of file class.ilTable2GUI.php.

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

292  {
293  return $this->selected_column[$a_col];
294  }
+ 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 833 of file class.ilTable2GUI.php.

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

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

◆ loadProperty()

ilTable2GUI::loadProperty (   $type)

Load table property.

Parameters
string$type
Returns
mixed

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

References $ilUser, and getId().

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

2834  {
2835  global $ilUser;
2836 
2837  if(is_object($ilUser) && $this->getId() != "")
2838  {
2839  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2840  $tab_prop = new ilTablePropertiesStorage();
2841 
2842  return $tab_prop->getProperty($this->getId(), $ilUser->getId(), $type);
2843  }
2844  }
Saves (mostly asynchronously) user properties of tables (e.g.
global $ilUser
Definition: imgupload.php:15
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 1728 of file class.ilTable2GUI.php.

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

1729  {
1730  return false;
1731  }
+ Here is the caller graph for this function:

◆ prepareOutput()

ilTable2GUI::prepareOutput ( )
protected

Anything that must be done before HTML is generated.

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

Referenced by ilShoppingCartTableGUI\getCartHTML(), and getHTML().

1483  {
1484  }
+ Here is the caller graph for this function:

◆ render()

ilTable2GUI::render ( )

render table public

Definition at line 1737 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(), ilShoppingCartTableGUI\getCartHTML(), and getHTML().

1738  {
1739  global $lng, $ilCtrl;
1740 
1741  $this->tpl->setVariable("CSS_TABLE",$this->getStyle("table"));
1742  $this->tpl->setVariable("DATA_TABLE", (int) $this->getIsDataTable());
1743  if ($this->getId() != "")
1744  {
1745  $this->tpl->setVariable("ID", 'id="'.$this->getId().'"');
1746  }
1747 
1748  // description
1749  if ($this->getDescription() != "")
1750  {
1751  $this->tpl->setCurrentBlock("tbl_header_description");
1752  $this->tpl->setVariable("TBL_DESCRIPTION", $this->getDescription());
1753  $this->tpl->parseCurrentBlock();
1754  }
1755 
1756  if(!$this->getPrintMode())
1757  {
1758  $this->renderFilter();
1759  }
1760 
1761  if ($this->getDisplayAsBlock())
1762  {
1763  $this->tpl->touchBlock("outer_start_1");
1764  $this->tpl->touchBlock("outer_end_1");
1765  }
1766  else
1767  {
1768  $this->tpl->touchBlock("outer_start_2");
1769  $this->tpl->touchBlock("outer_end_2");
1770  }
1771 
1772  // table title and icon
1773  if ($this->enabled["title"] && ($this->title != ""
1774  || $this->icon != "" || count($this->header_commands) > 0 ||
1775  $this->headerHTML != "" || $this->close_command != ""))
1776  {
1777  if ($this->enabled["icon"])
1778  {
1779  $this->tpl->setCurrentBlock("tbl_header_title_icon");
1780  $this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath($this->icon));
1781  $this->tpl->setVariable("TBL_TITLE_IMG_ALT",$this->icon_alt);
1782  $this->tpl->parseCurrentBlock();
1783  }
1784 
1785  if(!$this->getPrintMode())
1786  {
1787  foreach($this->header_commands as $command)
1788  {
1789  if ($command["img"] != "")
1790  {
1791  $this->tpl->setCurrentBlock("tbl_header_img_link");
1792  if ($command["target"] != "")
1793  {
1794  $this->tpl->setVariable("TARGET_IMG_LINK",
1795  'target="'.$command["target"].'"');
1796  }
1797  $this->tpl->setVariable("ALT_IMG_LINK", $command["text"]);
1798  $this->tpl->setVariable("HREF_IMG_LINK", $command["href"]);
1799  $this->tpl->setVariable("SRC_IMG_LINK",
1800  $command["img"]);
1801  $this->tpl->parseCurrentBlock();
1802  }
1803  else
1804  {
1805  $this->tpl->setCurrentBlock("head_cmd");
1806  $this->tpl->setVariable("TXT_HEAD_CMD", $command["text"]);
1807  $this->tpl->setVariable("HREF_HEAD_CMD", $command["href"]);
1808  $this->tpl->parseCurrentBlock();
1809  }
1810  }
1811  }
1812 
1813  if (isset ($this->headerHTML)) {
1814  $this->tpl->setCurrentBlock("tbl_header_html");
1815  $this->tpl->setVariable ("HEADER_HTML", $this->headerHTML);
1816  $this->tpl->parseCurrentBlock();
1817  }
1818 
1819  // close command
1820  if ($this->close_command != "")
1821  {
1822  $this->tpl->setCurrentBlock("tbl_header_img_link");
1823  $this->tpl->setVariable("ALT_IMG_LINK",$lng->txt("close"));
1824  $this->tpl->setVariable("HREF_IMG_LINK",$this->close_command);
1825  $this->tpl->parseCurrentBlock();
1826  }
1827 
1828  $this->tpl->setCurrentBlock("tbl_header_title");
1829  $this->tpl->setVariable("TBL_TITLE",$this->title);
1830  $this->tpl->setVariable("TOP_ANCHOR",$this->getTopAnchor());
1831  if ($this->getDisplayAsBlock())
1832  {
1833  $this->tpl->setVariable("BLK_CLASS", "Block");
1834  }
1835  $this->tpl->parseCurrentBlock();
1836  }
1837 
1838  // table header
1839  if ($this->enabled["header"])
1840  {
1841  $this->fillHeader();
1842  }
1843 
1844  $this->tpl->touchBlock("tbl_table_end");
1845 
1846  return $this->tpl->get();
1847  }
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:40
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 1852 of file class.ilTable2GUI.php.

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

Referenced by render().

1853  {
1854  global $lng, $tpl;
1855 
1856  $filter = $this->getFilterItems();
1857  $opt_filter = $this->getFilterItems(true);
1858 
1859  $tpl->addJavascript("./Services/Table/js/ServiceTable.js");
1860 
1861  if (count($filter) == 0 && count($opt_filter) == 0)
1862  {
1863  return;
1864  }
1865 
1866  include_once("./Services/YUI/classes/class.ilYuiUtil.php");
1868 
1869  $ccnt = 0;
1870 
1871  // render standard filter
1872  if (count($filter) > 0)
1873  {
1874  foreach ($filter as $item)
1875  {
1876  if ($ccnt >= $this->getFilterCols())
1877  {
1878  $this->tpl->setCurrentBlock("filter_row");
1879  $this->tpl->parseCurrentBlock();
1880  $ccnt = 0;
1881  }
1882  $this->tpl->setCurrentBlock("filter_item");
1883  $this->tpl->setVariable("OPTION_NAME",
1884  $item->getTitle());
1885  $this->tpl->setVariable("F_INPUT_ID",
1886  $item->getFieldId());
1887  $this->tpl->setVariable("INPUT_HTML",
1888  $item->getTableFilterHTML());
1889  $this->tpl->parseCurrentBlock();
1890  $ccnt++;
1891  }
1892  }
1893 
1894  // render optional filter
1895  if (count($opt_filter) > 0)
1896  {
1897  $this->determineSelectedFilters();
1898 
1899  foreach ($opt_filter as $item)
1900  {
1901  if($this->isFilterSelected($item->getPostVar()))
1902  {
1903  if ($ccnt >= $this->getFilterCols())
1904  {
1905  $this->tpl->setCurrentBlock("filter_row");
1906  $this->tpl->parseCurrentBlock();
1907  $ccnt = 0;
1908  }
1909  $this->tpl->setCurrentBlock("filter_item");
1910  $this->tpl->setVariable("OPTION_NAME",
1911  $item->getTitle());
1912  $this->tpl->setVariable("F_INPUT_ID",
1913  $item->getFieldId());
1914  $this->tpl->setVariable("INPUT_HTML",
1915  $item->getTableFilterHTML());
1916  $this->tpl->parseCurrentBlock();
1917  $ccnt++;
1918  }
1919  }
1920 
1921  // filter selection
1922  $items = array();
1923  foreach ($opt_filter as $item)
1924  {
1925  $k = $item->getPostVar();
1926  $items[$k] = array("txt" => $item->getTitle(),
1927  "selected" => $this->isFilterSelected($k));
1928  }
1929 
1930  include_once("./Services/UIComponent/CheckboxListOverlay/classes/class.ilCheckboxListOverlayGUI.php");
1931  $cb_over = new ilCheckboxListOverlayGUI("tbl_filters_".$this->getId());
1932  $cb_over->setLinkTitle($lng->txt("optional_filters"));
1933  $cb_over->setItems($items);
1934 
1935  $cb_over->setFormCmd($this->getParentCmd());
1936  $cb_over->setFieldVar("tblff".$this->getId());
1937  $cb_over->setHiddenVar("tblfsf".$this->getId());
1938 
1939  $cb_over->setSelectionHeaderClass("ilTableMenuItem");
1940  $this->tpl->setCurrentBlock("filter_select");
1941 
1942  // apply should be the first submit because of enter/return, inserting hidden submit
1943  $this->tpl->setVariable("HIDDEN_CMD_APPLY", $this->filter_cmd);
1944 
1945  $this->tpl->setVariable("FILTER_SELECTOR", $cb_over->getHTML());
1946  $this->tpl->parseCurrentBlock();
1947  }
1948 
1949  // if any filter
1950  if($ccnt > 0 || count($opt_filter) > 0)
1951  {
1952  $this->tpl->setVariable("TXT_FILTER", $lng->txt("filter"));
1953 
1954  if($ccnt > 0)
1955  {
1956  if ($ccnt < $this->getFilterCols())
1957  {
1958  for($i = $ccnt; $i<=$this->getFilterCols(); $i++)
1959  {
1960  $this->tpl->touchBlock("filter_empty_cell");
1961  }
1962  }
1963  $this->tpl->setCurrentBlock("filter_row");
1964  $this->tpl->parseCurrentBlock();
1965 
1966  $this->tpl->setCurrentBlock("filter_buttons");
1967  $this->tpl->setVariable("CMD_APPLY", $this->filter_cmd);
1968  $this->tpl->setVariable("TXT_APPLY", $this->filter_cmd_txt
1969  ? $this->filter_cmd_txt
1970  : $lng->txt("apply_filter"));
1971  $this->tpl->setVariable("CMD_RESET", $this->reset_cmd);
1972  $this->tpl->setVariable("TXT_RESET", $this->reset_cmd_txt
1973  ? $this->reset_cmd_txt
1974  : $lng->txt("reset_filter"));
1975  }
1976  else if(count($opt_filter) > 0)
1977  {
1978  $this->tpl->setCurrentBlock("optional_filter_hint");
1979  $this->tpl->setVariable('TXT_OPT_HINT', $lng->txt('optional_filter_hint'));
1980  $this->tpl->parseCurrentBlock();
1981  }
1982 
1983  $this->tpl->setCurrentBlock("filter_section");
1984  $this->tpl->setVariable("FIL_ID", $this->getId());
1985  $this->tpl->parseCurrentBlock();
1986 
1987  // (keep) filter hidden?
1988  if ($this->loadProperty("filter") != 1)
1989  {
1990  if (!$this->getDisableFilterHiding())
1991  {
1992  $this->tpl->setCurrentBlock("filter_hidden");
1993  $this->tpl->setVariable("FI_ID", $this->getId());
1994  $this->tpl->parseCurrentBlock();
1995  }
1996  }
1997  }
1998  }
static initConnection()
Init YUI Connection module.
getParentCmd()
Get parent command.
global $tpl
Definition: ilias.php:8
getDisableFilterHiding()
Get disable filter hiding.
User interface class for a checkbox list overlay.
isFilterSelected($a_col)
Is given filter selected?
determineSelectedFilters()
Determine selected filters.
getFilterCols()
Get filter columns.
global $lng
Definition: privfeed.php:40
loadProperty($type)
Load table property.
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 2072 of file class.ilTable2GUI.php.

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

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

2073  {
2074  global $lng;
2075 
2076  $filter = $this->getFilterItems();
2077  $opt_filter = $this->getFilterItems(true);
2078 
2079  foreach ($filter as $item)
2080  {
2081  if ($item->checkInput())
2082  {
2083  $item->setValueByArray($_POST);
2084  $item->clearFromSession();
2085  }
2086  }
2087  foreach ($opt_filter as $item)
2088  {
2089  if ($item->checkInput())
2090  {
2091  $item->setValueByArray($_POST);
2092  $item->clearFromSession();
2093  }
2094  }
2095 
2096  // #13209
2097  unset($_REQUEST["tbltplcrt"]);
2098  unset($_REQUEST["tbltpldel"]);
2099  }
$_POST['username']
Definition: cron.php:12
global $lng
Definition: privfeed.php:40
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7
getFilterItems($a_optionals=false)
Get filter items.
+ 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 343 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(), ilForumTopicTableGUI\numericOrdering(), ilTermsOfServiceTableGUI\populate(), arIndexTableGUI\resetFilter(), ilPermission2GUI\resetLogFilter(), and ilCalendarManageTableGUI\resetToDefaults().

344  {
345  if (!$this->nav_determined && !$a_in_determination)
346  {
347  $this->determineOffsetAndOrder();
348  }
349  $this->nav_value = $this->getOrderField().":".$this->getOrderDirection().":0";
350  $_GET[$this->getNavParameter()] =
351  $_POST[$this->getNavParameter()."1"] =
352  $this->nav_value;
353 //echo $this->nav_value;
354  $this->setOffset(0);
355  }
$_POST['username']
Definition: cron.php:12
setOffset($a_offset)
set dataset offset public
$_GET["client_id"]
getOrderDirection()
Get order direction.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
+ 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 3007 of file class.ilTable2GUI.php.

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

Referenced by __construct().

3008  {
3009  global $ilUser;
3010 
3011  $a_name = ilUtil::stripSlashes($a_name);
3012 
3013  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3014  {
3015  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3016  $storage = new ilTableTemplatesStorage();
3017 
3018  $data = $storage->load($this->getContext(), $ilUser->getId(), $a_name);
3019  if(is_array($data))
3020  {
3021  foreach($data as $property => $value)
3022  {
3023  $this->storeProperty($property, $value);
3024  }
3025  }
3026 
3027  $data["filter_values"] = unserialize($data["filter_values"]);
3028  if($data["filter_values"])
3029  {
3030  $this->restore_filter_values = $data["filter_values"];
3031  }
3032 
3033  $this->restore_filter = true;
3034 
3035  return true;
3036  }
3037  return false;
3038  }
getContext()
Get context.
storeProperty($type, $value)
Store table property.
Saves (mostly asynchronously) user properties of tables (e.g.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
global $ilUser
Definition: imgupload.php:15
+ 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 3046 of file class.ilTable2GUI.php.

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

Referenced by fillFooter().

3047  {
3048  global $ilUser;
3049 
3050  $a_name = ilUtil::prepareFormOutput($a_name, true);
3051 
3052  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3053  {
3054  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3055  $storage = new ilTableTemplatesStorage();
3056 
3057  $state = $this->getCurrentState();
3058  $state["filter_values"] = serialize($state["filter_values"]);
3059  $state["selfields"] = serialize($state["selfields"]);
3060  $state["selfilters"] = serialize($state["selfilters"]);
3061 
3062  $storage->store($this->getContext(), $ilUser->getId(), $a_name, $state);
3063  return true;
3064  }
3065  return false;
3066  }
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.
global $ilUser
Definition: imgupload.php:15
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 1242 of file class.ilTable2GUI.php.

1243  {
1244  $this->close_command = $a_link;
1245  }

◆ setCloseFormTag()

ilTable2GUI::setCloseFormTag (   $a_val)

Set close form tag.

Parameters
booleanclose form tag

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

151  {
152  $this->close_form_tag = $a_val;
153  }

◆ setContext()

ilTable2GUI::setContext (   $id)

Set context.

Parameters
string$id

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

Referenced by __construct().

2944  {
2945  if(trim($id))
2946  {
2947  $this->context = $id;
2948  }
2949  }
+ 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 922 of file class.ilTable2GUI.php.

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

◆ setData()

ilTable2GUI::setData (   $a_data)
final

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

References getExternalSorting().

Referenced by ilCourseStartObjectsTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilTermListTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilStudyProgrammeAcknowledgeCompletedCoursesTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilExportTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilExportIDTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilSkillLevelTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), ilTestQuestionBrowserTableGUI\browseQuestionsCmd(), ilDataCollectionRecordListTableGUI\buildData(), arIndexTableGUI\checkColumnVisibile(), ilSurveyEvaluationGUI\evaluationuser(), ilHelpMappingTableGUI\getChapters(), ilClientListTableGUI\getClients(), ilComponentsTableGUI\getComponents(), ilPluginsOverviewTableGUI\getComponents(), ilModulesTableGUI\getComponents(), ilWikiContributorsTableGUI\getContributors(), ilHistoryTableGUI\getDataFromDb(), ilSessionMaterialsTableGUI\getDataFromDb(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilFileSystemTableGUI\getEntries(), ilMemberExportFileTableGUI\getFiles(), ilNewItemGroupTableGUI\getGroups(), ilHelpModuleTableGUI\getHelpModules(), ilPCImageMapTableGUI\getItems(), ilTermUsagesTableGUI\getItems(), ilMediaPoolPageUsagesTableGUI\getItems(), ilLicenseOverviewTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilSCORMVerificationTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilTestVerificationTableGUI\getItems(), ilRoleDesktopItemsTableGUI\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(), ilExcCriteriaCatalogueTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilStyleImageTableGUI\getItems(), ilContributorTableGUI\getItems(), ilPortfolioPageTableGUI\getItems(), ilPollAnswerTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilWikiExportOrderTableGUI\getItems(), ilStyleMediaQueryTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilLanguageTableGUI\getItems(), ilLDAPRoleMappingTableGUI\getItems(), ilStyleColorTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilExAssignmentPeerReviewOverviewTableGUI\getItems(), ilExAssignmentPeerReviewTableGUI\getItems(), ilTableTemplatesTableGUI\getItems(), ilAdminSubItemsTableGUI\getItems(), ilImageMapTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilSessionOverviewTableGUI\getItems(), ilCourseParticipantsGroupsTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilBookingObjectsTableGUI\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(), ilSurveySkillAssignmentTableGUI\getQuestions(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilSurveySkillChangesTableGUI\getSkillLevelsForAppraisee(), ilSurveySkillTableGUI\getSkills(), ilSysStyleCatAssignmentTableGUI\getStyleCatAssignments(), ilSystemStylesTableGUI\getStyles(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), 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(), ilOpenIdProviderTableGUI\parse(), ilObjectCustomUserFieldsTableGUI\parse(), ilLuceneAdvancedSearchActivationTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilExAssignmentListTextTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilCalendarSharedUserListTableGUI\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(), ilLOMemberTestResultTableGUI\parse(), ilObjectTableGUI\parse(), ilECSReleasedContentTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilSessionParticipantsTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilECSImportedContentTableGUI\parse(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilECSCommunityTableGUI\parse(), ilLOTestAssignmentTableGUI\parse(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilRoleTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExportSelectionTableGUI\parseContainer(), ilOrgUnitOtherRolesTableGUI\parseData(), ilOrgUnitStaffTableGUI\parseData(), ilMemcacheServerTableGUI\parseData(), ilAdvancedMDFieldTableGUI\parseDefinitions(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilLOTestAssignmentTableGUI\parseMultipleAssignments(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilShopPersonalSettingsTopicsTableGUI\parseRecords(), ilShopTopicsTableGUI\parseRecords(), 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().

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

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

1157  {
1158  $this->defaultorderdirection = $a_defaultorderdirection;
1159  }
+ 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 1136 of file class.ilTable2GUI.php.

Referenced by ilMemberExportFileTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilUserLPTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilTaxonomyAdministrationRepositoryTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilResultsByQuestionTableGUI\__construct(), ilObjectOwnershipManagementTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilClientListTableGUI\__construct(), ilPluginsOverviewTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilExportTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilOpenIdProviderTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilContributorTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilDataBibliographicRecordListTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilAssQuestionSkillUsagesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilWikiContributorsTableGUI\getContributors(), ilWikiPagesTableGUI\getPages(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), 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().

1137  {
1138  $this->defaultorderfield = $a_defaultorderfield;
1139  }
+ 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 1000 of file class.ilTable2GUI.php.

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

1001  {
1002  $this->display_as_block = $a_val;
1003  }
+ 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 3364 of file class.ilTable2GUI.php.

Referenced by ilUserTableGUI\__construct().

3365  {
3366  $this->enable_command_for_all = (bool)$a_value;
3367  }
+ Here is the caller graph for this function:

◆ setEnableHeader()

ilTable2GUI::setEnableHeader (   $a_enableheader)

Set Enable Header.

Parameters
boolean$a_enableheaderEnable Header

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

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

471  {
472  $this->enabled["header"] = $a_enableheader;
473  }
+ 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 450 of file class.ilTable2GUI.php.

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

451  {
452  $this->enabled["title"] = $a_enabletitle;
453  }
+ Here is the caller graph for this function:

◆ setExportFormats()

ilTable2GUI::setExportFormats ( array  $formats)

Set available export formats.

Parameters
array$formats

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

References $valid.

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

3120  {
3121  $this->export_formats = array();
3122 
3123  // #11339
3124  $valid = array(self::EXPORT_EXCEL => "tbl_export_excel",
3125  self::EXPORT_CSV => "tbl_export_csv");
3126 
3127  foreach($formats as $format)
3128  {
3129  if(array_key_exists($format, $valid))
3130  {
3131  $this->export_formats[$format] = $valid[$format];
3132  }
3133  }
3134  }
$valid
+ 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 792 of file class.ilTable2GUI.php.

Referenced by arIndexTableGUI\getSelectableColumns().

793  {
794  $this->filter_cols = $a_val;
795  }
+ 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 2921 of file class.ilTable2GUI.php.

References IL_CAL_DATE, and ilFormPropertyGUI\writeToSession().

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

2922  {
2923  if(method_exists($a_item, "setChecked"))
2924  {
2925  $a_item->setChecked($a_value);
2926  }
2927  else if(method_exists($a_item, "setValue"))
2928  {
2929  $a_item->setValue($a_value);
2930  }
2931  else if(method_exists($a_item, "setDate"))
2932  {
2933  $a_item->setDate(new ilDate($a_value, IL_CAL_DATE));
2934  }
2935  $a_item->writeToSession();
2936  }
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 935 of file class.ilTable2GUI.php.

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

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

◆ setFormName()

ilTable2GUI::setFormName (   $a_formname)

Set Form name.

Parameters
string$a_formnameForm name

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

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

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

◆ setHeaderHTML()

ilTable2GUI::setHeaderHTML (   $html)

set header html

Parameters
string$html

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

References $html.

2804  {
2805  $this->headerHTML = $html;
2806  }
$html
Definition: example_001.php:87

◆ setId()

ilTable2GUI::setId (   $a_val)

Set id.

Parameters
stringelement id

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

References getPrefix(), and setPrefix().

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

977  {
978  $this->id = $a_val;
979  if ($this->getPrefix() == "")
980  {
981  $this->setPrefix($a_val);
982  }
983  }
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 430 of file class.ilTable2GUI.php.

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

431  {
432  $this->datatable = $a_val;
433  }
+ Here is the caller graph for this function:

◆ setLimit()

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

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

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

3425  {
3426  parent::setLimit($a_limit, $a_default_limit);
3427 
3428  // #17077 - if limit is set "manually" to 9999, force rows selector off
3429  if($a_limit == 9999 &&
3430  $this->limit_determined)
3431  {
3432  $this->rows_selector_off = true;
3433  }
3434  }
+ 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 130 of file class.ilTable2GUI.php.

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

131  {
132  $this->open_form_tag = $a_val;
133  }
+ 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 538 of file class.ilTable2GUI.php.

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

539  {
540  $this->order_field = $a_order_field;
541  }
+ Here is the caller graph for this function:

◆ setOrderLink()

ilTable2GUI::setOrderLink (   $sort_field,
  $order_dir 
)

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

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

Referenced by fillHeader().

1334  {
1335  global $ilCtrl, $ilUser;
1336 
1337  $hash = "";
1338  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
1339  {
1340  $hash = "#".$this->getTopAnchor();
1341  }
1342 
1343  $old = $_GET[$this->getNavParameter()];
1344 
1345  // set order link
1346  $ilCtrl->setParameter($this->parent_obj,
1347  $this->getNavParameter(),
1348  $sort_field.":".$order_dir.":".$this->offset);
1349  $this->tpl->setVariable("TBL_ORDER_LINK",
1350  $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd).$hash);
1351 
1352  // set old value of nav variable
1353  $ilCtrl->setParameter($this->parent_obj,
1354  $this->getNavParameter(), $old);
1355  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
global $ilUser
Definition: imgupload.php:15
+ 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 597 of file class.ilTable2GUI.php.

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

598  {
599  $this->prefix = $a_prefix;
600  }
+ 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 3409 of file class.ilTable2GUI.php.

3410  {
3411  $this->prevent_double_submission = $a_val;
3412  }

◆ setPrintMode()

ilTable2GUI::setPrintMode (   $a_value = false)

Toogle print mode.

Parameters
bool$a_value

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

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

3141  {
3142  $this->print_mode = (bool)$a_value;
3143  }
+ Here is the caller graph for this function:

◆ setResetCommand()

◆ setRowSelectorLabel()

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

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

References $row_selector_label.

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

3391  {
3392  $this->row_selector_label = $row_selector_label;
3393  return $this;
3394  }
+ 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 1125 of file class.ilTable2GUI.php.

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

1126  {
1127  $this->row_template = $a_template;
1128  $this->row_template_dir = $a_template_dir;
1129  }
+ 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 1030 of file class.ilTable2GUI.php.

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

1031  {
1032  $this->select_all_checkbox = $a_select_all_checkbox;
1033  }
+ 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 2966 of file class.ilTable2GUI.php.

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

2967  {
2968  $this->show_rows_selector = (bool)$a_value;
2969  }
+ Here is the caller graph for this function:

◆ setShowTemplates()

ilTable2GUI::setShowTemplates (   $a_value)

◆ setTitle()

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

Set title and title icon.

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

Referenced by ilNotificationSettingsTable\__construct(), ilMemberExportFileTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilLDAPServerTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilMailMemberSearchTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilRoleDesktopItemsTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilLicenseOverviewTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilComponentsTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilContainerStartObjectsContentTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilTermUsagesTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilObjClipboardTableGUI\__construct(), ilModulesTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilTestVerificationTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilExerciseVerificationTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilCourseVerificationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilSCORMVerificationTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilStyleTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilExportTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilOpenIdProviderTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilLMMultiSrtConfirmationTable2GUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilExAssignmentTeamLogTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilContributorTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilRbacLogTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilRendererTableGUI\__construct(), ilECSNodeMappingTreeTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilObjBibliographicAdminTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilECSSettingsGUI\communities(), ilLinksTableGUI\ilLinksTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), ilDidacticTemplateSettingsTableGUI\init(), ilSCGroupTableGUI\init(), ilSCTaskTableGUI\init(), ilListOfQuestionsTableGUI\init(), ilRepositoryObjectSearchResultTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilRoleTableGUI\init(), ilForumTopicTableGUI\initMergeThreadsTable(), 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(), ilGlobalUnitCategoryTableGUI\populateTitle(), ilLocalUnitCategoryTableGUI\populateTitle(), ilLinkCheckerTableGUI\prepareHTML(), and ilLDAPSettingsGUI\roleMapping().

509  {
510  parent::setTitle($a_title, $a_icon, $a_icon_alt);
511  }
+ Here is the caller graph for this function:

◆ setTopAnchor()

ilTable2GUI::setTopAnchor (   $a_val)

Set top anchor.

Parameters
stringtop anchor

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

Referenced by ilBookmarkAdministrationTableGUI\__construct().

391  {
392  $this->top_anchor = $a_val;
393  }
+ Here is the caller graph for this function:

◆ setTopCommands()

◆ storeNavParameter()

ilTable2GUI::storeNavParameter ( )

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

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

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

1566  {
1567  if ($this->getOrderField() != "")
1568  {
1569  $this->storeProperty("order", $this->getOrderField());
1570  }
1571  if ($this->getOrderDirection() != "")
1572  {
1573  $this->storeProperty("direction", $this->getOrderDirection());
1574  }
1575 //echo "-".$this->getOffset()."-";
1576  if ($this->getOffset() !== "")
1577  {
1578  $this->storeProperty("offset", $this->getOffset());
1579  }
1580  }
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 2814 of file class.ilTable2GUI.php.

References $ilUser, and getId().

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

2815  {
2816  global $ilUser;
2817 
2818  if(is_object($ilUser) && $this->getId() != "")
2819  {
2820  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2821  $tab_prop = new ilTablePropertiesStorage();
2822 
2823  $tab_prop->storeProperty($this->getId(), $ilUser->getId(), $type, $value);
2824  }
2825  }
Saves (mostly asynchronously) user properties of tables (e.g.
global $ilUser
Definition: imgupload.php:15
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 2022 of file class.ilTable2GUI.php.

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

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

2023  {
2024  $advmd_record_gui = null;
2025  if(method_exists($this, "getAdvMDRecordGUI"))
2026  {
2027  $advmd_record_gui = $this->getAdvMDRecordGUI();
2028  }
2029 
2030  foreach ($this->getFilterItems() as $item)
2031  {
2032  if($advmd_record_gui &&
2033  $this->isAdvMDFilter($advmd_record_gui, $item))
2034  {
2035  continue;
2036  }
2037 
2038  if ($item->checkInput())
2039  {
2040  $item->setValueByArray($_POST);
2041  $item->writeToSession();
2042  }
2043  }
2044  foreach ($this->getFilterItems(true) as $item)
2045  {
2046  if($advmd_record_gui &&
2047  $this->isAdvMDFilter($advmd_record_gui, $item))
2048  {
2049  continue;
2050  }
2051 
2052  if ($item->checkInput())
2053  {
2054  $item->setValueByArray($_POST);
2055  $item->writeToSession();
2056  }
2057  }
2058 
2059  if($advmd_record_gui)
2060  {
2061  $advmd_record_gui->importFilter();
2062  }
2063 
2064  // #13209
2065  unset($_REQUEST["tbltplcrt"]);
2066  unset($_REQUEST["tbltpldel"]);
2067  }
$_POST['username']
Definition: cron.php:12
isAdvMDFilter(ilAdvancedMDRecordGUI $a_gui, $a_element)
Check if filter element is based on adv md.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7
getFilterItems($a_optionals=false)
Get filter items.
+ 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

◆ $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 59 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 64 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 55 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 78 of file class.ilTable2GUI.php.

◆ EXPORT_CSV

const ilTable2GUI::EXPORT_CSV = 2

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

◆ EXPORT_EXCEL

const ilTable2GUI::EXPORT_EXCEL = 1

◆ FILTER_DATE

const ilTable2GUI::FILTER_DATE = 3

Definition at line 68 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: