ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 (ilButton $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="")
 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...
 
- 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...
 
 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
 
 $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 83 of file class.ilTable2GUI.php.

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

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

Add a column to the header.

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

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

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

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

Referenced by ilCourseGroupingAssignmentTableGUI\__construct(), ilTimingOverviewTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), ilPollAnswerTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilModulesTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilSystemStylesTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilStyleTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilOpenIdProviderTableGUI\__construct(), ilRatingCategoryTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilTestSkillQuestionAssignmentsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilTrackedQuestionsTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilExportSelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilAddressbookTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addCommands(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilListOfQuestionsTableGUI\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().

1187  {
1188  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, 'onclick' => $a_onclick,
1189  "id" => $a_id, "class" => $a_class);
1190  }
+ Here is the caller graph for this function:

◆ addCommandButtonInstance()

ilTable2GUI::addCommandButtonInstance ( ilButton  $a_button)

Add Command button instance.

Parameters
ilButton$a_button

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

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

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

References $restore_filter_values.

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

611  {
612  $a_input_item->setParent($this);
613  if (!$a_optional)
614  {
615  $this->filters[] = $a_input_item;
616  }
617  else
618  {
619  $this->optional_filters[] = $a_input_item;
620  }
621 
622  // restore filter values (from stored view)
623  if($this->restore_filter)
624  {
625  if(array_key_exists($a_input_item->getFieldId(), $this->restore_filter_values))
626  {
627  $this->setFilterValue($a_input_item, $this->restore_filter_values[$a_input_item->getFieldId()]);
628  }
629  else
630  {
631  $this->setFilterValue($a_input_item, null); // #14949
632  }
633  }
634  }
+ 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 645 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(), ilCourseParticipantsGroupsTableGUI\initFilter(), ilTrMatrixTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilObjectRolePermissionTableGUI\initFilter(), ilTrSummaryTableGUI\initFilter(), and ilTrObjectUsersPropsTableGUI\initFilter().

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

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

1275  {
1276  $this->header_commands[] = array("href" => $a_href, "text" => $a_text,
1277  "target" => $a_target, "img" => $a_img);
1278  }
+ 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 1263 of file class.ilTable2GUI.php.

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

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

◆ addMultiCommand()

ilTable2GUI::addMultiCommand (   $a_cmd,
  $a_text 
)

Add Command button.

Parameters
stringCommand
stringText

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

Referenced by ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilLDAPRoleMappingTableGUI\__construct(), ilRoleAdoptPermissionTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilScormSpecialPagesTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilSysStyleCatAssignmentTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLPObjectStatisticsAdminTableGUI\__construct(), ilLPObjectStatisticsDailyTableGUI\__construct(), ilLPObjectStatisticsTableGUI\__construct(), ilLPObjectStatisticsTypesTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilTermListTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilPortfolioTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilOpenIdProviderTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilContributorTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilPortfolioPageTableGUI\__construct(), ilUserTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilExAssignmentTeamTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilAddressbookTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addCommands(), ilExportTableGUI\addCustomMultiCommand(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilDidacticTemplateSettingsTableGUI\init(), ilLOTestAssignmentTableGUI\init(), ilRoleTableGUI\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(), ilMediaPoolTableGUI\prepareOutput(), and ilMailingListsGUI\showMembersList().

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

References addHiddenInput().

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

1228  {
1229  $this->mi_sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
1230  $this->addHiddenInput("cmd_sv[".$a_cmd."]", $a_sel_var);
1231  }
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 1212 of file class.ilTable2GUI.php.

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

◆ clearCommandButtons()

ilTable2GUI::clearCommandButtons ( )

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

Referenced by ilObjectCustomUserFieldsTableGUI\parse().

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

◆ dataExists()

ilTable2GUI::dataExists ( )
final

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

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

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

◆ deleteTemplate()

ilTable2GUI::deleteTemplate (   $a_name)

Delete template.

Parameters
string$a_name
Returns
bool

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

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

Referenced by fillFooter().

3029  {
3030  global $ilUser;
3031 
3032  $a_name = ilUtil::prepareFormOutput($a_name, true);
3033 
3034  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3035  {
3036  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3037  $storage = new ilTableTemplatesStorage();
3038  $storage->delete($this->getContext(), $ilUser->getId(), $a_name);
3039  return true;
3040  }
3041  return false;
3042  }
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 167 of file class.ilTable2GUI.php.

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

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

168  {
169  global $ilUser;
170 
171  if ($this->limit_determined)
172  {
173  return;
174  }
175 
176  $limit = 0;
177  if (isset($_GET[$this->prefix."_trows"]))
178  {
179  $this->storeProperty("rows", $_GET[$this->prefix."_trows"]);
180  $limit = $_GET[$this->prefix."_trows"];
181  $this->resetOffset();
182  }
183 
184  if ($limit == 0)
185  {
186  $rows = $this->loadProperty("rows");
187  if ($rows > 0)
188  {
189  $limit = $rows;
190  }
191  else
192  {
193  if (is_object($ilUser))
194  {
195  $limit = $ilUser->getPref("hits_per_page");
196  }
197  else
198  {
199  $limit = 40;
200  }
201  }
202  }
203 
204  $this->setLimit($limit);
205  $this->limit_determined = true;
206  }
$_GET["client_id"]
storeProperty($type, $value)
Store table property.
resetOffset($a_in_determination=false)
Reset offset.
setLimit($a_limit=0, $a_default_limit=0)
set max.
global $ilUser
Definition: imgupload.php:15
loadProperty($type)
Load table property.
+ 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 1481 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 ilLPTableBaseGUI\executeCommand(), exportData(), ilShoppingCartTableGUI\getCartHTML(), getCurrentState(), getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilUserTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilCourseParticipantsTableGUI\parse(), ilTermsOfServiceTableGUI\populate(), ilFileSystemTableGUI\prepareOutput(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), resetOffset(), and arIndexTableGUI\setOrderAndSegmentation().

1482  {
1483  global $ilUser;
1484 
1485  if ($this->nav_determined)
1486  {
1487  return true;
1488  }
1489 
1490  if ($_POST[$this->getNavParameter()."1"] != "")
1491  {
1492  if ($_POST[$this->getNavParameter()."1"] != $_POST[$this->getNavParameter()])
1493  {
1494  $this->nav_value = $_POST[$this->getNavParameter()."1"];
1495  }
1496  else if ($_POST[$this->getNavParameter()."2"] != $_POST[$this->getNavParameter()])
1497  {
1498  $this->nav_value = $_POST[$this->getNavParameter()."2"];
1499  }
1500  }
1501  elseif($_GET[$this->getNavParameter()])
1502  {
1503  $this->nav_value = $_GET[$this->getNavParameter()];
1504  }
1505  elseif($_SESSION[$this->getNavParameter()] != "")
1506  {
1507  $this->nav_value = $_SESSION[$this->getNavParameter()];
1508  }
1509 
1510  if ($this->nav_value == "" && $this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID)
1511  {
1512  $order = $this->loadProperty("order");
1513  if (in_array($order, $this->sortable_fields))
1514  {
1515  $direction = $this->loadProperty("direction");
1516  }
1517  else
1518  {
1519  $direction = $this->getDefaultOrderDirection();
1520  }
1521  // get order and direction from db
1522  $this->nav_value =
1523  $order.":".
1524  $direction.":".
1525  $this->loadProperty("offset");
1526  }
1527  $nav = explode(":", $this->nav_value);
1528 
1529  // $nav[0] is order by
1530  $this->setOrderField(($nav[0] != "") ? $nav[0] : $this->getDefaultOrderField());
1531  $this->setOrderDirection(($nav[1] != "") ? $nav[1] : $this->getDefaultOrderDirection());
1532 
1533  if (!$a_omit_offset)
1534  {
1535  // #8904: offset must be discarded when no limit is given
1536  if(!$this->getExternalSegmentation() && $this->limit_determined && $this->limit == 9999)
1537  {
1538  $this->resetOffset(true);
1539  }
1540  else if (!$this->getExternalSegmentation() && $nav[2] >= $this->max_count)
1541  {
1542  $this->resetOffset(true);
1543  }
1544  else
1545  {
1546  $this->setOffset($nav[2]);
1547  }
1548  }
1549 
1550  if (!$a_omit_offset)
1551  {
1552  $this->nav_determined = true;
1553  }
1554  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
getDefaultOrderField()
Get Default order field.
$_POST['username']
Definition: cron.php:12
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 221 of file class.ilTable2GUI.php.

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

Referenced by __construct(), and getCurrentState().

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

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

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

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

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

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

3124  {
3125  if($this->dataExists())
3126  {
3127  // #9640: sort
3128  if (!$this->getExternalSorting() && $this->enabled["sort"])
3129  {
3130  $this->determineOffsetAndOrder(true);
3131 
3132  $this->row_data = ilUtil::sortArray($this->row_data, $this->getOrderField(),
3133  $this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
3134  }
3135 
3136  $filename = "export";
3137 
3138  switch($format)
3139  {
3140  case self::EXPORT_EXCEL:
3141  include_once "./Services/Excel/classes/class.ilExcelUtils.php";
3142  include_once "./Services/Excel/classes/class.ilExcelWriterAdapter.php";
3143  $adapter = new ilExcelWriterAdapter($filename.".xls", $send);
3144  $workbook = $adapter->getWorkbook();
3145  $worksheet = $workbook->addWorksheet();
3146  $row = 0;
3147 
3148  ob_start();
3149  $this->fillMetaExcel($worksheet, $row); // row must be increment in fillMetaExcel()! (optional method)
3150 
3151  // #14813
3152  $pre = $row;
3153  $this->fillHeaderExcel($worksheet, $row); // row should NOT be incremented in fillHeaderExcel()! (required method)
3154  if($pre == $row)
3155  {
3156  $row++;
3157  }
3158 
3159  foreach($this->row_data as $set)
3160  {
3161  $this->fillRowExcel($worksheet, $row, $set);
3162  $row++; // #14760
3163  }
3164  ob_end_clean();
3165 
3166  $workbook->close();
3167  break;
3168 
3169  case self::EXPORT_CSV:
3170  include_once "./Services/Utilities/classes/class.ilCSVWriter.php";
3171  $csv = new ilCSVWriter();
3172  $csv->setSeparator(";");
3173 
3174  ob_start();
3175  $this->fillMetaCSV($csv);
3176  $this->fillHeaderCSV($csv);
3177  foreach($this->row_data as $set)
3178  {
3179  $this->fillRowCSV($csv, $set);
3180  }
3181  ob_end_clean();
3182 
3183  if($send)
3184  {
3185  $filename .= ".csv";
3186  header("Content-type: text/comma-separated-values");
3187  header("Content-Disposition: attachment; filename=\"".$filename."\"");
3188  header("Expires: 0");
3189  header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
3190  header("Pragma: public");
3191  echo $csv->getCSVString();
3192 
3193  }
3194  else
3195  {
3196  file_put_contents($filename, $csv->getCSVString());
3197  }
3198  break;
3199  }
3200 
3201  if($send)
3202  {
3203  exit();
3204  }
3205  }
3206  }
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 2523 of file class.ilTable2GUI.php.

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

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

2524  {
2525  global $lng;
2526 
2527  // action row
2528  $action_row = false;
2529  $arrow = false;
2530 
2531  // add selection buttons
2532  if (count($this->sel_buttons) > 0)
2533  {
2534  foreach ($this->sel_buttons as $button)
2535  {
2536  $this->tpl->setCurrentBlock("sel_button");
2537  $this->tpl->setVariable("SBUTTON_SELECT",
2538  ilUtil::formSelect($button["selected"], $button["sel_var"],
2539  $button["options"], false, true));
2540  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2541  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2542  $this->tpl->parseCurrentBlock();
2543 
2544  if ($this->getTopCommands())
2545  {
2546  $this->tpl->setCurrentBlock("sel_top_button");
2547  $this->tpl->setVariable("SBUTTON_SELECT",
2548  ilUtil::formSelect($button["selected"], $button["sel_var"],
2549  $button["options"], false, true));
2550  $this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
2551  $this->tpl->setVariable("SBTN_VALUE", $button["text"]);
2552  $this->tpl->parseCurrentBlock();
2553  }
2554  }
2555  $buttons = true;
2556  $action_row = true;
2557  }
2558  $this->sel_buttons[] = array("options" => $a_options, "cmd" => $a_cmd, "text" => $a_text);
2559 
2560  // add buttons
2561  if (count($this->buttons) > 0)
2562  {
2563  foreach ($this->buttons as $button)
2564  {
2565  if(!is_array($button))
2566  {
2567  if($button instanceof ilButton)
2568  {
2569  $this->tpl->setVariable('BUTTON_OBJ', $button->render());
2570 
2571  // this will remove id - should be unique
2572  $button = clone $button;
2573 
2574  $this->tpl->setVariable('BUTTON_TOP_OBJ', $button->render());
2575  }
2576  continue;
2577  }
2578 
2579  if (strlen($button['onclick']))
2580  {
2581  $this->tpl->setCurrentBlock('cmdonclick');
2582  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2583  $this->tpl->parseCurrentBlock();
2584  }
2585  $this->tpl->setCurrentBlock("plain_button");
2586  if ($button["id"] != "")
2587  {
2588  $this->tpl->setVariable("PBID", ' id="'.$button["id"].'" ');
2589  }
2590  if ($button["class"] != "")
2591  {
2592  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2593  }
2594  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2595  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2596  $this->tpl->parseCurrentBlock();
2597 
2598  if ($this->getTopCommands())
2599  {
2600  if (strlen($button['onclick']))
2601  {
2602  $this->tpl->setCurrentBlock('top_cmdonclick');
2603  $this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
2604  $this->tpl->parseCurrentBlock();
2605  }
2606  $this->tpl->setCurrentBlock("plain_top_button");
2607  $this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
2608  $this->tpl->setVariable("PBTN_VALUE", $button["text"]);
2609  if ($button["class"] != "")
2610  {
2611  $this->tpl->setVariable("PBBT_CLASS", ' '.$button["class"]);
2612  }
2613  $this->tpl->parseCurrentBlock();
2614  }
2615  }
2616 
2617  $buttons = true;
2618  $action_row = true;
2619  }
2620 
2621  // multi selection
2622  if(count($this->mi_sel_buttons))
2623  {
2624  foreach ($this->mi_sel_buttons as $button)
2625  {
2626  $this->tpl->setCurrentBlock("mi_sel_button");
2627  $this->tpl->setVariable("MI_BUTTON_SELECT",
2628  ilUtil::formSelect($button["selected"], $button["sel_var"],
2629  $button["options"], false, true));
2630  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2631  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2632  $this->tpl->parseCurrentBlock();
2633 
2634  if ($this->getTopCommands())
2635  {
2636  $this->tpl->setCurrentBlock("mi_top_sel_button");
2637  $this->tpl->setVariable("MI_BUTTON_SELECT",
2638  ilUtil::formSelect($button["selected"], $button["sel_var"]."_2",
2639  $button["options"], false, true));
2640  $this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
2641  $this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
2642  $this->tpl->parseCurrentBlock();
2643  }
2644 
2645  }
2646  $arrow = true;
2647  $action_row = true;
2648  }
2649 
2650 
2651  if (count($this->multi) > 1 && $this->dataExists())
2652  {
2653  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2654  {
2655  $this->tpl->setCurrentBlock("tbl_cmd_select_all");
2656  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2657  $this->tpl->parseCurrentBlock();
2658  }
2659 
2660  $this->tpl->setCurrentBlock("tbl_cmd_select");
2661  $sel = array();
2662  foreach ($this->multi as $mc)
2663  {
2664  $sel[$mc["cmd"]] = $mc["text"];
2665  }
2666  $this->tpl->setVariable("SELECT_CMDS",
2667  ilUtil::formSelect("", "selected_cmd", $sel, false, true));
2668  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2669  $this->tpl->parseCurrentBlock();
2670  $arrow = true;
2671  $action_row = true;
2672 
2673  if ($this->getTopCommands())
2674  {
2675  if($this->enable_command_for_all && $this->max_count <= self::getAllCommandLimit())
2676  {
2677  $this->tpl->setCurrentBlock("tbl_top_cmd_select_all");
2678  $this->tpl->setVariable("TXT_SELECT_CMD_ALL", $lng->txt("all_objects"));
2679  $this->tpl->parseCurrentBlock();
2680  }
2681 
2682  $this->tpl->setCurrentBlock("tbl_top_cmd_select");
2683  $sel = array();
2684  foreach ($this->multi as $mc)
2685  {
2686  $sel[$mc["cmd"]] = $mc["text"];
2687  }
2688  $this->tpl->setVariable("SELECT_CMDS",
2689  ilUtil::formSelect("", "selected_cmd2", $sel, false, true));
2690  $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
2691  $this->tpl->parseCurrentBlock();
2692  }
2693  }
2694  elseif(count($this->multi) == 1 && $this->dataExists())
2695  {
2696  $this->tpl->setCurrentBlock("tbl_single_cmd");
2697  $sel = array();
2698  foreach ($this->multi as $mc)
2699  {
2700  $cmd = $mc['cmd'];
2701  $txt = $mc['text'];
2702  }
2703  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2704  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2705  $this->tpl->parseCurrentBlock();
2706  $arrow = true;
2707  $action_row = true;
2708 
2709  if ($this->getTopCommands())
2710  {
2711  $this->tpl->setCurrentBlock("tbl_top_single_cmd");
2712  $sel = array();
2713  foreach ($this->multi as $mc)
2714  {
2715  $cmd = $mc['cmd'];
2716  $txt = $mc['text'];
2717  }
2718  $this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
2719  $this->tpl->setVariable("SINGLE_CMD",$cmd);
2720  $this->tpl->parseCurrentBlock();
2721  }
2722  }
2723 
2724  if ($arrow)
2725  {
2726  $this->tpl->setCurrentBlock("tbl_action_img_arrow");
2727  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
2728  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2729  $this->tpl->parseCurrentBlock();
2730 
2731  if ($this->getTopCommands())
2732  {
2733  $this->tpl->setCurrentBlock("tbl_top_action_img_arrow");
2734  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_upright.svg"));
2735  $this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
2736  $this->tpl->parseCurrentBlock();
2737  }
2738  }
2739 
2740  if ($action_row)
2741  {
2742  $this->tpl->setCurrentBlock("tbl_action_row");
2743  $this->tpl->parseCurrentBlock();
2744  if ($this->getTopCommands())
2745  {
2746  $this->tpl->setCurrentBlock("tbl_top_action_row");
2747  $this->tpl->parseCurrentBlock();
2748  }
2749  }
2750  }
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:10
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 2072 of file class.ilTable2GUI.php.

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

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

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

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

Referenced by render().

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

References ilTableGUI\$title.

Referenced by exportData().

3281  {
3282  foreach ($this->column as $column)
3283  {
3284  $title = strip_tags($column["text"]);
3285  if($title)
3286  {
3287  $a_csv->addColumn($title);
3288  }
3289  }
3290  $a_csv->addRow();
3291  }
+ 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 3227 of file class.ilTable2GUI.php.

References ilTableGUI\$title.

Referenced by exportData().

3228  {
3229  $col = 0;
3230  foreach ($this->column as $column)
3231  {
3232  $title = strip_tags($column["text"]);
3233  if($title)
3234  {
3235  $worksheet->write($a_row, $col, $title);
3236  $col++;
3237  }
3238  }
3239  }
+ Here is the caller graph for this function:

◆ fillHiddenRow()

ilTable2GUI::fillHiddenRow ( )

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

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

2503  {
2504  $hidden_row = false;
2505  if(count($this->hidden_inputs))
2506  {
2507  foreach ($this->hidden_inputs as $hidden_input)
2508  {
2509  $this->tpl->setCurrentBlock("tbl_hidden_field");
2510  $this->tpl->setVariable("FIELD_NAME", $hidden_input["name"]);
2511  $this->tpl->setVariable("FIELD_VALUE", $hidden_input["value"]);
2512  $this->tpl->parseCurrentBlock();
2513  }
2514 
2515  $this->tpl->setCurrentBlock("tbl_hidden_row");
2516  $this->tpl->parseCurrentBlock();
2517  }
2518  }
+ 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 3269 of file class.ilTable2GUI.php.

Referenced by exportData().

3270  {
3271 
3272  }
+ 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 3215 of file class.ilTable2GUI.php.

Referenced by exportData().

3216  {
3217 
3218  }
+ 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 2061 of file class.ilTable2GUI.php.

Referenced by ilDataCollectionRecordListTableGUI\fillRowExcel(), getHTML(), ilQuestionUsagesTableGUI\initColumns(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), and ilForumTopicTableGUI\initMergeThreadsTable().

2062  {
2063  foreach ($a_set as $key => $value)
2064  {
2065  $this->tpl->setVariable("VAL_".strtoupper($key), $value);
2066  }
2067  }
+ 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 3300 of file class.ilTable2GUI.php.

Referenced by exportData().

3301  {
3302  foreach ($a_set as $key => $value)
3303  {
3304  if(is_array($value))
3305  {
3306  $value = implode(', ', $value);
3307  }
3308  $a_csv->addColumn(strip_tags($value));
3309  }
3310  $a_csv->addRow();
3311  }
+ 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 3249 of file class.ilTable2GUI.php.

Referenced by exportData().

3250  {
3251  $col = 0;
3252  foreach ($a_set as $key => $value)
3253  {
3254  if(is_array($value))
3255  {
3256  $value = implode(', ', $value);
3257  }
3258  $a_worksheet->write($a_row, $col, strip_tags($value));
3259  $col++;
3260  }
3261  }
+ 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 3328 of file class.ilTable2GUI.php.

References ilTableGUI\$limit.

3329  {
3330  global $ilClientIniFile;
3331 
3332  $limit = $ilClientIniFile->readVariable("system", "TABLE_ACTION_ALL_LIMIT");
3333  if(!$limit)
3334  {
3335  $limit = self::ACTION_ALL_LIMIT;
3336  }
3337 
3338  return $limit;
3339  }

◆ getCloseFormTag()

ilTable2GUI::getCloseFormTag ( )

Get close form tag.

Returns
boolean close form tag

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

References $close_form_tag.

Referenced by getHTML().

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

◆ getContext()

ilTable2GUI::getContext ( )

Get context.

Returns
string

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

References $context.

Referenced by deleteTemplate(), fillFooter(), ilTestPassOverviewTableGUI\initColumns(), restoreTemplate(), and saveTemplate().

2911  {
2912  return $this->context;
2913  }
+ 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 2805 of file class.ilTable2GUI.php.

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

Referenced by saveTemplate().

2806  {
2807  $this->determineOffsetAndOrder();
2808  $this->determineLimit();
2809  $this->determineSelectedColumns();
2810  $this->determineSelectedFilters();
2811 
2812  // "filter" show/hide is not saved
2813 
2814  $result = array();
2815  $result["order"] = $this->getOrderField();
2816  $result["direction"] = $this->getOrderDirection();
2817  $result["offset"] = $this->getOffset();
2818  $result["rows"] = $this->getLimit();
2819  $result["selfilters"] = $this->getSelectedFilters();
2820 
2821  // #9514 - $this->getSelectedColumns() will omit deselected, leading to
2822  // confusion on restoring template
2823  $result["selfields"] = $this->selected_column;
2824 
2825  // gather filter values
2826  if($this->filters)
2827  {
2828  foreach($this->filters as $item)
2829  {
2830  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2831  }
2832  }
2833  if($this->optional_filters && $result["selfilters"])
2834  {
2835  foreach($this->optional_filters as $item)
2836  {
2837  if(in_array($item->getFieldId(), $result["selfilters"]))
2838  {
2839  $result["filter_values"][$item->getFieldId()] = $this->getFilterValue($item);
2840  }
2841  }
2842  }
2843 
2844  return $result;
2845  }
$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 1165 of file class.ilTable2GUI.php.

Referenced by determineOffsetAndOrder().

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

◆ getDefaultOrderField()

ilTable2GUI::getDefaultOrderField ( )

Get Default order field.

Returns
string Default order field

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

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

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

◆ getDescription()

ilTable2GUI::getDescription ( )

Get description.

Returns
string description

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

Referenced by render().

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

◆ getDisableFilterHiding()

ilTable2GUI::getDisableFilterHiding ( )

Get disable filter hiding.

Returns
boolean

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

References $disable_filter_hiding.

Referenced by fillFooter(), and renderFilter().

822  {
824  }
+ Here is the caller graph for this function:

◆ getDisplayAsBlock()

ilTable2GUI::getDisplayAsBlock ( )

Get display as block.

Returns
boolean display as block

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

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

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

◆ getEnableHeader()

ilTable2GUI::getEnableHeader ( )

Get Enable Header.

Returns
boolean Enable Header

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

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

◆ getEnableNumInfo()

ilTable2GUI::getEnableNumInfo ( )

Get enable num info.

Returns
boolean enable number of records info

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

Referenced by fillFooter().

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

◆ getEnableTitle()

ilTable2GUI::getEnableTitle ( )

Get Enable Title.

Returns
boolean Enable Title

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

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

◆ getExportMode()

ilTable2GUI::getExportMode ( )

Was export activated?

Returns
int

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

References $export_mode.

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

3114  {
3115  return $this->export_mode;
3116  }
+ Here is the caller graph for this function:

◆ getExternalSegmentation()

ilTable2GUI::getExternalSegmentation ( )

Get external segmentation.

Returns
boolean data is segmented externally

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

References $ext_seg.

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

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

◆ getExternalSorting()

ilTable2GUI::getExternalSorting ( )

Get external sorting.

Returns
boolean data is sorted externally

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

References $ext_sort.

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

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

◆ getFilterCols()

ilTable2GUI::getFilterCols ( )

Get filter columns.

Returns
int number of filter columns

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

References $filter_cols.

Referenced by renderFilter().

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

◆ getFilterCommand()

ilTable2GUI::getFilterCommand ( )

Get filter command.

Returns
string filter command

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

References $filter_cmd.

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

◆ getFilterItemByPostVar()

ilTable2GUI::getFilterItemByPostVar (   $a_post_var)
final

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

References getFilterItems().

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

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

Get filter items.

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

References $filters, and $optional_filters.

Referenced by arIndexTableGUI\checkColumnVisibile(), determineSelectedFilters(), getFilterItemByPostVar(), ilSurveyQuestionblockbrowserTableGUI\initData(), ilSurveyQuestionbrowserTableGUI\initData(), renderFilter(), resetFilter(), and writeFilterToSession().

759  {
760  if (!$a_optionals)
761  {
762  return $this->filters;
763  }
765  }
+ Here is the caller graph for this function:

◆ getFilterValue()

ilTable2GUI::getFilterValue ( ilFormPropertyGUI  $a_item)
protected

Get current filter value.

Parameters
ilFormPropertyGUI$a_item
Returns
mixed

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

References IL_CAL_DATE.

Referenced by getCurrentState().

2854  {
2855  if(method_exists($a_item, "getChecked"))
2856  {
2857  return $a_item->getChecked();
2858  }
2859  else if(method_exists($a_item, "getValue"))
2860  {
2861  return $a_item->getValue();
2862  }
2863  else if(method_exists($a_item, "getDate"))
2864  {
2865  return $a_item->getDate()->get(IL_CAL_DATE);
2866  }
2867  }
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 945 of file class.ilTable2GUI.php.

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

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

◆ getFormName()

ilTable2GUI::getFormName ( )

Get Form name.

Returns
string Form name

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

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

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

◆ getHTML()

ilTable2GUI::getHTML ( )

Get HTML.

Definition at line 1577 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().

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

Referenced by render().

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

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

Referenced by fillFooter().

2385  {
2386  global $ilCtrl, $lng, $ilUser;
2387 
2388  $hash = "";
2389  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization"))
2390  {
2391  $hash = "#".$this->getTopAnchor();
2392  }
2393 
2394  $link = $ilCtrl->getLinkTargetByClass(get_class($this->parent_obj), $this->parent_cmd).
2395  "&".$this->getNavParameter()."=".
2396  $this->getOrderField().":".$this->getOrderDirection().":";
2397 
2398  $LinkBar = "";
2399  $layout_prev = $lng->txt("previous");
2400  $layout_next = $lng->txt("next");
2401 
2402  // if more entries then entries per page -> show link bar
2403  if ($this->max_count > $this->getLimit() || $this->custom_prev_next)
2404  {
2405  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2406 
2407  // calculate number of pages
2408  $pages = intval($this->max_count / $this->getLimit());
2409 
2410  // add a page if a rest remains
2411  if (($this->max_count % $this->getLimit()))
2412  $pages++;
2413 
2414  // links to other pages
2415  $offset_arr = array();
2416  for ($i = 1 ;$i <= $pages ; $i++)
2417  {
2418  $newoffset = $this->getLimit() * ($i-1);
2419 
2420  $nav_value = $this->getOrderField().":".$this->getOrderDirection().":".$newoffset;
2421  $offset_arr[$nav_value] = $i;
2422  }
2423 
2424  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2425 
2426  // previous link
2427  if ($this->custom_prev_next && $this->custom_prev != "")
2428  {
2429  if ($LinkBar != "")
2430  $LinkBar .= $sep;
2431  $LinkBar .= "<a href=\"".$this->custom_prev.$hash."\">".$layout_prev."</a>";
2432  }
2433  else if ($this->getOffset() >= 1 && !$this->custom_prev_next)
2434  {
2435  if ($LinkBar != "")
2436  $LinkBar .= $sep;
2437  $prevoffset = $this->getOffset() - $this->getLimit();
2438  $LinkBar .= "<a href=\"".$link.$prevoffset.$hash."\">".$layout_prev."</a>";
2439  }
2440  else
2441  {
2442  if ($LinkBar != "")
2443  $LinkBar .= $sep;
2444  $LinkBar .= '<span class="ilTableFootLight">'.$layout_prev."</span>";
2445  }
2446 
2447  // current value
2448  if ($a_num == "1")
2449  {
2450  $LinkBar .= '<input type="hidden" name="'.$this->getNavParameter().
2451  '" value="'.$this->getOrderField().":".$this->getOrderDirection().":".$this->getOffset().'" />';
2452  }
2453 
2454  $sep = "<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>";
2455 
2456  // show next link (if not last page)
2457  if ($this->custom_prev_next && $this->custom_next != "")
2458  {
2459  if ($LinkBar != "")
2460  $LinkBar .= $sep;
2461  $LinkBar .= "<a href=\"".$this->custom_next.$hash."\">".$layout_next."</a>";
2462  }
2463  else if (! ( ($this->getOffset() / $this->getLimit())==($pages-1) ) && ($pages!=1) &&
2464  !$this->custom_prev_next)
2465  {
2466  if ($LinkBar != "")
2467  $LinkBar .= $sep;
2468  $newoffset = $this->getOffset() + $this->getLimit();
2469  $LinkBar .= "<a href=\"".$link.$newoffset.$hash."\">".$layout_next."</a>";
2470  }
2471  else
2472  {
2473  if ($LinkBar != "")
2474  $LinkBar .= $sep;
2475  $LinkBar .= '<span class="ilTableFootLight">'.$layout_next."</span>";
2476  }
2477 
2478  $sep = "<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
2479 
2480  if (count($offset_arr) && !$this->getDisplayAsBlock() && !$this->custom_prev_next)
2481  {
2482  if ($LinkBar != "")
2483  $LinkBar .= $sep;
2484  $LinkBar .= "".
2485  '<label for="tab_page_sel_'.$a_num.'">'.$lng->txt("page").'</label> '.
2486  ilUtil::formSelect($this->nav_value,
2487  $this->getNavParameter().$a_num, $offset_arr, false, true, 0, "small",
2488  array("id" => "tab_page_sel_".$a_num,
2489  "onchange" => "ilTablePageSelection(this, 'cmd[".$this->parent_cmd."]')"));
2490  //' <input class="submit" type="submit" name="cmd['.$this->parent_cmd.']" value="'.
2491  //$lng->txt("ok").'" />';
2492  }
2493 
2494  return $LinkBar;
2495  }
2496  else
2497  {
2498  return false;
2499  }
2500  }
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 1326 of file class.ilTable2GUI.php.

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

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

◆ getNoEntriesText()

ilTable2GUI::getNoEntriesText ( )

Get text for an empty table.

Returns
string Text

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

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

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

◆ getOffset()

◆ getOpenFormTag()

ilTable2GUI::getOpenFormTag ( )

Get open form tag.

Returns
boolean open form tag

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

References $open_form_tag.

Referenced by getHTML().

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

◆ getOrderField()

◆ getParentCmd()

◆ getParentObject()

ilTable2GUI::getParentObject ( )

Get parent object.

Returns
object parent GUI object

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

Referenced by ilPollUserTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilConditionHandlerTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilOpenIdProviderTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilObjectCustomUserFieldsTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilConsultationHourGroupTableGUI\fillRow(), SurveyMaterialsSourceTableGUI\fillRow(), ilSCORMTrackingItemsPerScoTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilECSCategoryMappingTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilConsultationHourBookingTableGUI\fillRow(), ilSCORMOfflineModeUsersTableGUI\fillRow(), ilECSNodeMappingTreeTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilMDCopyrightTableGUI\fillRow(), ilSCORMTrackingItemsPerUserTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilSCORMTrackingItemsScoTableGUI\fillRow(), ilConsultationHoursTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilSCORM2004ExportTableGUI\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(), ilParticipantTableGUI\getSelectableColumns(), ilSubscriberTableGUI\getSelectableColumns(), ilWaitingListTableGUI\getSelectableColumns(), ilPCFileListTableGUI\ilPCFileListTableGUI(), 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().

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

◆ getPrefix()

ilTable2GUI::getPrefix ( )
final

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

References ilTableGUI\$prefix.

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

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

◆ getPreventDoubleSubmission()

ilTable2GUI::getPreventDoubleSubmission ( )

Get prevent double submission.

Returns
bool prevent double submission

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

References $prevent_double_submission.

Referenced by getHTML().

3374  {
3376  }
+ Here is the caller graph for this function:

◆ getPrintMode()

ilTable2GUI::getPrintMode ( )

Get print mode.

Returns
bool $a_value

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

References $print_mode.

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

3104  {
3105  return $this->print_mode;
3106  }
+ Here is the caller graph for this function:

◆ getResetCommand()

ilTable2GUI::getResetCommand ( )

Get reset filter command.

Returns
string reset command

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

References $reset_cmd.

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

◆ getRowSelectorLabel()

ilTable2GUI::getRowSelectorLabel ( )
Returns
string

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

References $row_selector_label.

Referenced by fillFooter().

3354  {
3356  }
+ 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 213 of file class.ilTable2GUI.php.

Referenced by determineSelectedColumns(), and fillFooter().

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

References ilTableGUI\$select_all_checkbox.

Referenced by fillFooter().

1020  {
1022  }
+ Here is the caller graph for this function:

◆ getSelectedColumns()

ilTable2GUI::getSelectedColumns ( )

Get selected columns.

Parameters

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

Referenced by ilTermListTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\fillHeaderCSV(), ilSCORM2004TrackingItemsTableGUI\fillHeaderCSV(), ilTrObjectUsersPropsTableGUI\fillHeaderCSV(), ilTrUserObjectsPropsTableGUI\fillHeaderCSV(), ilTrMatrixTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderCSV(), ilSCORMTrackingItemsTableGUI\fillHeaderExcel(), ilSCORM2004TrackingItemsTableGUI\fillHeaderExcel(), ilTrObjectUsersPropsTableGUI\fillHeaderExcel(), ilTrUserObjectsPropsTableGUI\fillHeaderExcel(), ilTrMatrixTableGUI\fillHeaderExcel(), ilTrSummaryTableGUI\fillHeaderExcel(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilSurveyResultsCumulatedTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilRepositoryUserResultTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilUserTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRowCSV(), ilSCORM2004TrackingItemsTableGUI\fillRowCSV(), ilTrObjectUsersPropsTableGUI\fillRowCSV(), ilTrUserObjectsPropsTableGUI\fillRowCSV(), ilTrMatrixTableGUI\fillRowCSV(), ilTrSummaryTableGUI\fillRowCSV(), ilSCORMTrackingItemsTableGUI\fillRowExcel(), ilSCORM2004TrackingItemsTableGUI\fillRowExcel(), ilTrObjectUsersPropsTableGUI\fillRowExcel(), ilTrUserObjectsPropsTableGUI\fillRowExcel(), ilTrMatrixTableGUI\fillRowExcel(), ilTrSummaryTableGUI\fillRowExcel(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilQuestionPoolPrintViewTableGUI\initColumns(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilRepositoryUserResultTableGUI\parseUserIds(), ilSubscriberTableGUI\readSubscriberData(), and ilWaitingListTableGUI\readUserData().

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

◆ getSelectedFilters()

ilTable2GUI::getSelectedFilters ( )

Get selected filters.

Parameters

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

Referenced by getCurrentState().

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

◆ getShowRowsSelector()

ilTable2GUI::getShowRowsSelector ( )

Get rows-per-page selector state.

Returns
bool

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

References $show_rows_selector.

Referenced by fillFooter().

2931  {
2933  }
+ Here is the caller graph for this function:

◆ getShowTemplates()

ilTable2GUI::getShowTemplates ( )

Get template state.

Returns
bool

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

References $show_templates.

Referenced by fillFooter().

2951  {
2952  return $this->show_templates;
2953  }
+ Here is the caller graph for this function:

◆ getTopAnchor()

ilTable2GUI::getTopAnchor ( )

Get top anchor.

Returns
string top anchor

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

References $top_anchor.

Referenced by render().

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

References $top_commands.

Referenced by fillActionRow().

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

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

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

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

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

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

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

◆ loadProperty()

ilTable2GUI::loadProperty (   $type)

Load table property.

Parameters
string$type
Returns
mixed

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

References $ilUser, and getId().

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

2788  {
2789  global $ilUser;
2790 
2791  if(is_object($ilUser) && $this->getId() != "")
2792  {
2793  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2794  $tab_prop = new ilTablePropertiesStorage();
2795 
2796  return $tab_prop->getProperty($this->getId(), $ilUser->getId(), $type);
2797  }
2798  }
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 1719 of file class.ilTable2GUI.php.

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

1720  {
1721  return false;
1722  }
+ Here is the caller graph for this function:

◆ prepareOutput()

ilTable2GUI::prepareOutput ( )
protected

Anything that must be done before HTML is generated.

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

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

1474  {
1475  }
+ Here is the caller graph for this function:

◆ render()

ilTable2GUI::render ( )

render table public

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

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

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

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

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

Referenced by render().

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

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

Referenced by ilLPTableBaseGUI\executeCommand(), ilObjTestGUI\fpResetFilterObject(), ilObjTestGUI\npResetFilterObject(), and ilObjSCORMLearningModuleGUI\resetUserTableFilter().

2027  {
2028  global $lng;
2029 
2030  $filter = $this->getFilterItems();
2031  $opt_filter = $this->getFilterItems(true);
2032 
2033  foreach ($filter as $item)
2034  {
2035  if ($item->checkInput())
2036  {
2037  $item->setValueByArray($_POST);
2038  $item->clearFromSession();
2039  }
2040  }
2041  foreach ($opt_filter as $item)
2042  {
2043  if ($item->checkInput())
2044  {
2045  $item->setValueByArray($_POST);
2046  $item->clearFromSession();
2047  }
2048  }
2049 
2050  // #13209
2051  unset($_REQUEST["tbltplcrt"]);
2052  unset($_REQUEST["tbltpldel"]);
2053  }
$_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 342 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(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilTermsOfServiceTableGUI\populate(), arIndexTableGUI\resetFilter(), ilPermission2GUI\resetLogFilter(), and ilCalendarManageTableGUI\resetToDefaults().

343  {
344  if (!$this->nav_determined && !$a_in_determination)
345  {
346  $this->determineOffsetAndOrder();
347  }
348  $this->nav_value = $this->getOrderField().":".$this->getOrderDirection().":0";
349  $_GET[$this->getNavParameter()] =
350  $_POST[$this->getNavParameter()."1"] =
351  $this->nav_value;
352 //echo $this->nav_value;
353  $this->setOffset(0);
354  }
$_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 2961 of file class.ilTable2GUI.php.

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

Referenced by __construct().

2962  {
2963  global $ilUser;
2964 
2965  $a_name = ilUtil::stripSlashes($a_name);
2966 
2967  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
2968  {
2969  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
2970  $storage = new ilTableTemplatesStorage();
2971 
2972  $data = $storage->load($this->getContext(), $ilUser->getId(), $a_name);
2973  if(is_array($data))
2974  {
2975  foreach($data as $property => $value)
2976  {
2977  $this->storeProperty($property, $value);
2978  }
2979  }
2980 
2981  $data["filter_values"] = unserialize($data["filter_values"]);
2982  if($data["filter_values"])
2983  {
2984  $this->restore_filter_values = $data["filter_values"];
2985  }
2986 
2987  $this->restore_filter = true;
2988 
2989  return true;
2990  }
2991  return false;
2992  }
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 3000 of file class.ilTable2GUI.php.

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

Referenced by fillFooter().

3001  {
3002  global $ilUser;
3003 
3004  $a_name = ilUtil::prepareFormOutput($a_name, true);
3005 
3006  if(trim($a_name) && $this->getContext() != "" && is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID)
3007  {
3008  include_once("./Services/Table/classes/class.ilTableTemplatesStorage.php");
3009  $storage = new ilTableTemplatesStorage();
3010 
3011  $state = $this->getCurrentState();
3012  $state["filter_values"] = serialize($state["filter_values"]);
3013  $state["selfields"] = serialize($state["selfields"]);
3014  $state["selfilters"] = serialize($state["selfilters"]);
3015 
3016  $storage->store($this->getContext(), $ilUser->getId(), $a_name, $state);
3017  return true;
3018  }
3019  return false;
3020  }
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 1241 of file class.ilTable2GUI.php.

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

◆ setCloseFormTag()

ilTable2GUI::setCloseFormTag (   $a_val)

Set close form tag.

Parameters
booleanclose form tag

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

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

◆ setContext()

ilTable2GUI::setContext (   $id)

Set context.

Parameters
string$id

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

Referenced by __construct().

2898  {
2899  if(trim($id))
2900  {
2901  $this->context = $id;
2902  }
2903  }
+ 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 921 of file class.ilTable2GUI.php.

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

◆ setData()

ilTable2GUI::setData (   $a_data)
final

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

References getExternalSorting().

Referenced by ilCourseStartObjectsTableGUI\__construct(), iliLinkConfirmationTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilPCIIMOverlaysTableGUI\__construct(), ilPCIIMPopupTableGUI\__construct(), ilTermListTableGUI\__construct(), ilTermQuickListTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilPersonalSkillTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilSkillLevelProfileAssignmentTableGUI\__construct(), ilSkillLevelResourcesTableGUI\__construct(), ilSkillProfileLevelsTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilSkillProfileTableGUI\__construct(), ilSkillProfileUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSettingsTemplateTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilExportTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSelfEvaluationTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\addColumns(), ilDataCollectionRecordListTableGUI\buildData(), arIndexTableGUI\checkColumnVisibile(), ilSurveyParticipantsGUI\editRatersObject(), ilSurveyEvaluationGUI\evaluationuser(), ilLOTestAssignmentTableGUI\fillRow(), ilHelpMappingTableGUI\getChapters(), ilClientListTableGUI\getClients(), ilComponentsTableGUI\getComponents(), ilPluginsOverviewTableGUI\getComponents(), ilModulesTableGUI\getComponents(), ilWikiContributorsTableGUI\getContributors(), ilHistoryTableGUI\getDataFromDb(), ilSessionMaterialsTableGUI\getDataFromDb(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilFileSystemTableGUI\getEntries(), ilNewItemGroupTableGUI\getGroups(), ilHelpModuleTableGUI\getHelpModules(), ilPCImageMapTableGUI\getItems(), ilTermUsagesTableGUI\getItems(), ilMediaPoolPageUsagesTableGUI\getItems(), ilLicenseOverviewTableGUI\getItems(), ilSCORMVerificationTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilTestVerificationTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilObjWorkspaceFolderTableGUI\getItems(), ilMediaObjectUsagesTableGUI\getItems(), ilUserLPTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilContainerStartObjectsContentTableGUI\getItems(), ilLPObjectStatisticsAdminTableGUI\getItems(), ilCourseGroupingAssignmentTableGUI\getItems(), ilExAssignmentTeamLogTableGUI\getItems(), ilRatingCategoryTableGUI\getItems(), ilCourseGroupingTableGUI\getItems(), ilPollUserTableGUI\getItems(), ilPortfolioTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilStyleImageTableGUI\getItems(), ilPortfolioPageTableGUI\getItems(), ilContributorTableGUI\getItems(), ilPollAnswerTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilWikiExportOrderTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilStyleMediaQueryTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilLanguageTableGUI\getItems(), ilLDAPRoleMappingTableGUI\getItems(), ilStyleColorTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilExAssignmentPeerReviewOverviewTableGUI\getItems(), ilTableTemplatesTableGUI\getItems(), ilAdminSubItemsTableGUI\getItems(), ilImageMapTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilExAssignmentPeerReviewTableGUI\getItems(), ilCourseParticipantsGroupsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilLPProgressTableGUI\getItems(), ilUserTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilTrMatrixTableGUI\getItems(), ilCronManagerTableGUI\getItems(), ilMediaPoolTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilTrSummaryTableGUI\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(), ilSurveySyncTableGUI\importData(), ilWorkspaceAccessTableGUI\importData(), ilSurveyQuestionTableGUI\importData(), ilWorkspaceShareTableGUI\importData(), ilQuestionUsagesTableGUI\initColumns(), ilOrgUnitTypeTableGUI\initColumns(), ilQuestionCumulatedStatisticsTableGUI\initData(), ilDataBibliographicRecordListTableGUI\initData(), ilSurveyQuestionblockbrowserTableGUI\initData(), ilMarkSchemaTableGUI\initData(), ilSurveyQuestionbrowserTableGUI\initData(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilObjectOwnershipManagementTableGUI\initItems(), SurveyConstraintsTableGUI\initItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilAuthLoginPageEditorTableGUI\parse(), ilSCORMTrackingItemsPerScoTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilSCORMOfflineModeUsersTableGUI\parse(), ilLPCollectionSettingsTableGUI\parse(), ilSCORMTrackingItemsPerUserTableGUI\parse(), ilDidacticTemplateSettingsTableGUI\parse(), ilSCORMTrackingItemsScoTableGUI\parse(), ilObjectTableGUI\parse(), ilOpenIdProviderTableGUI\parse(), ilObjectCustomUserFieldsTableGUI\parse(), ilExAssignmentListTextTableGUI\parse(), ilLuceneAdvancedSearchActivationTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedUserListTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilConsultationHourGroupTableGUI\parse(), ilWebResourceLinkTableGUI\parse(), ilConsultationHourBookingTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilLDAPRoleAssignmentTableGUI\parse(), ilObjectRoleTemplateOptionsTableGUI\parse(), ilECSNodeMappingTreeTableGUI\parse(), ilCalendarInboxSharedTableGUI\parse(), ilECSServerTableGUI\parse(), ilWebResourceEditableLinkTableGUI\parse(), ilCalendarCategoryTableGUI\parse(), ilCourseObjectiveMaterialAssignmentTableGUI\parse(), ilECSReleasedContentTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilSessionParticipantsTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilECSImportedContentTableGUI\parse(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilECSCommunityTableGUI\parse(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilRoleTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExportSelectionTableGUI\parseContainer(), ilOrgUnitOtherRolesTableGUI\parseData(), ilOrgUnitStaffTableGUI\parseData(), ilAdvancedMDFieldTableGUI\parseDefinitions(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilShopPersonalSettingsTopicsTableGUI\parseRecords(), ilShopTopicsTableGUI\parseRecords(), ilAdvancedMDRecordTableGUI\parseRecords(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilWebResourceEditableLinkTableGUI\parseSelectedLinks(), ilMDCopyrightTableGUI\parseSelections(), ilObjectCopySelectionTableGUI\parseSource(), ilRepositoryUserResultTableGUI\parseUserIds(), ilTermsOfServiceTableGUI\populate(), ilLinkCheckerTableGUI\prepareHTML(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilTestEvaluationGUI\resetfilterEvaluation(), ilCalendarAppointmentsTableGUI\setAppointments(), ilCalendarChangedAppointmentsTableGUI\setAppointments(), ilConditionHandlerTableGUI\setConditions(), ilTestPlayerDynamicQuestionSetGUI\showTrackedQuestionListCmd(), and ilWebResourceEditableLinkTableGUI\updateFromPost().

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

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

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

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

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

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

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

Referenced by ilUserTableGUI\__construct().

3319  {
3320  $this->enable_command_for_all = (bool)$a_value;
3321  }
+ Here is the caller graph for this function:

◆ setEnableHeader()

ilTable2GUI::setEnableHeader (   $a_enableheader)

Set Enable Header.

Parameters
boolean$a_enableheaderEnable Header

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

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

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

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

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

◆ setExportFormats()

ilTable2GUI::setExportFormats ( array  $formats)

Set available export formats.

Parameters
array$formats

Definition at line 3073 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().

3074  {
3075  $this->export_formats = array();
3076 
3077  // #11339
3078  $valid = array(self::EXPORT_EXCEL => "tbl_export_excel",
3079  self::EXPORT_CSV => "tbl_export_csv");
3080 
3081  foreach($formats as $format)
3082  {
3083  if(array_key_exists($format, $valid))
3084  {
3085  $this->export_formats[$format] = $valid[$format];
3086  }
3087  }
3088  }
$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 791 of file class.ilTable2GUI.php.

Referenced by arIndexTableGUI\getSelectableColumns().

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

References IL_CAL_DATE, and ilFormPropertyGUI\writeToSession().

2876  {
2877  if(method_exists($a_item, "setChecked"))
2878  {
2879  $a_item->setChecked($a_value);
2880  }
2881  else if(method_exists($a_item, "setValue"))
2882  {
2883  $a_item->setValue($a_value);
2884  }
2885  else if(method_exists($a_item, "setDate"))
2886  {
2887  $a_item->setDate(new ilDate($a_value, IL_CAL_DATE));
2888  }
2889  $a_item->writeToSession();
2890  }
Class for single dates.
const IL_CAL_DATE
writeToSession()
Write to session.
+ Here is the call 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 934 of file class.ilTable2GUI.php.

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

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

◆ setFormName()

ilTable2GUI::setFormName (   $a_formname)

Set Form name.

Parameters
string$a_formnameForm name

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

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

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

◆ setHeaderHTML()

ilTable2GUI::setHeaderHTML (   $html)

set header html

Parameters
string$html

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

2758  {
2759  $this->headerHTML = $html;
2760  }

◆ setId()

ilTable2GUI::setId (   $a_val)

Set id.

Parameters
stringelement id

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

References getPrefix(), and setPrefix().

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

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

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

430  {
431  $this->datatable = $a_val;
432  }
+ 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 129 of file class.ilTable2GUI.php.

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

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

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

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

◆ setOrderLink()

ilTable2GUI::setOrderLink (   $sort_field,
  $order_dir 
)

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

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

Referenced by fillHeader().

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

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

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

3364  {
3365  $this->prevent_double_submission = $a_val;
3366  }

◆ setPrintMode()

ilTable2GUI::setPrintMode (   $a_value = false)

Toogle print mode.

Parameters
bool$a_value

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

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

3095  {
3096  $this->print_mode = (bool)$a_value;
3097  }
+ Here is the caller graph for this function:

◆ setResetCommand()

◆ setRowSelectorLabel()

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

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

References $row_selector_label.

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

3345  {
3346  $this->row_selector_label = $row_selector_label;
3347  return $this;
3348  }
+ 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 1124 of file class.ilTable2GUI.php.

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

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

Referenced by ilNotificationSettingsTable\__construct(), ilCourseGroupingTableGUI\__construct(), ilCourseStartObjectsTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilCronManagerTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilClipboardTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilRegistrationCodesTableGUI\__construct(), ilOpenIdProviderTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilCourseParticipantsGroupsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilUserTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilDataCollectionFieldListTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilBannedUsersTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilChatroomSmiliesTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilAddressbookTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilAssQuestionHintsTableGUI\__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().

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

Referenced by ilTermListTableGUI\__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(), ilRepositoryUserResultTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilRoleTableGUI\init(), ilForumTopicTableGUI\initMergeThreadsTable(), arDeleteGUI\initRowSelector(), arIndexTableGUI\initRowSelector(), ilConsultationHourBookingTableGUI\initTable(), and ilForumTopicTableGUI\populate().

2921  {
2922  $this->show_rows_selector = (bool)$a_value;
2923  }
+ 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 507 of file class.ilTable2GUI.php.

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

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

◆ setTopAnchor()

ilTable2GUI::setTopAnchor (   $a_val)

Set top anchor.

Parameters
stringtop anchor

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

Referenced by ilBookmarkAdministrationTableGUI\__construct().

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

◆ setTopCommands()

ilTable2GUI::setTopCommands (   $a_val)

◆ storeNavParameter()

ilTable2GUI::storeNavParameter ( )

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

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

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

1557  {
1558  if ($this->getOrderField() != "")
1559  {
1560  $this->storeProperty("order", $this->getOrderField());
1561  }
1562  if ($this->getOrderDirection() != "")
1563  {
1564  $this->storeProperty("direction", $this->getOrderDirection());
1565  }
1566 //echo "-".$this->getOffset()."-";
1567  if ($this->getOffset() !== "")
1568  {
1569  $this->storeProperty("offset", $this->getOffset());
1570  }
1571  }
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 2768 of file class.ilTable2GUI.php.

References $ilUser, and getId().

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

2769  {
2770  global $ilUser;
2771 
2772  if(is_object($ilUser) && $this->getId() != "")
2773  {
2774  include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
2775  $tab_prop = new ilTablePropertiesStorage();
2776 
2777  $tab_prop->storeProperty($this->getId(), $ilUser->getId(), $type, $value);
2778  }
2779  }
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 1994 of file class.ilTable2GUI.php.

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

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

1995  {
1996  global $lng;
1997 
1998  $filter = $this->getFilterItems();
1999  $opt_filter = $this->getFilterItems(true);
2000 
2001  foreach ($filter as $item)
2002  {
2003  if ($item->checkInput())
2004  {
2005  $item->setValueByArray($_POST);
2006  $item->writeToSession();
2007  }
2008  }
2009  foreach ($opt_filter as $item)
2010  {
2011  if ($item->checkInput())
2012  {
2013  $item->setValueByArray($_POST);
2014  $item->writeToSession();
2015  }
2016  }
2017 
2018  // #13209
2019  unset($_REQUEST["tbltplcrt"]);
2020  unset($_REQUEST["tbltpldel"]);
2021  }
$_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:

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 44 of file class.ilTable2GUI.php.

Referenced by getCloseFormTag().

◆ $columns_determined

ilTable2GUI::$columns_determined = false
protected

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

◆ $context

◆ $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 50 of file class.ilTable2GUI.php.

◆ $export_formats

ilTable2GUI::$export_formats
protected

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

◆ $export_mode

ilTable2GUI::$export_mode
protected

Definition at line 47 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 41 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 40 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 39 of file class.ilTable2GUI.php.

◆ $open_form_tag

ilTable2GUI::$open_form_tag = true
protected

Definition at line 43 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 58 of file class.ilTable2GUI.php.

Referenced by getPreventDoubleSubmission().

◆ $print_mode

ilTable2GUI::$print_mode
protected

Definition at line 48 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 51 of file class.ilTable2GUI.php.

◆ $restore_filter_values

ilTable2GUI::$restore_filter_values
protected

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

Referenced by addFilterItem().

◆ $row_selector_label

ilTable2GUI::$row_selector_label
protected

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

Referenced by getRowSelectorLabel(), and setRowSelectorLabel().

◆ $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 54 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 77 of file class.ilTable2GUI.php.

◆ EXPORT_CSV

const ilTable2GUI::EXPORT_CSV = 2

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

◆ EXPORT_EXCEL

const ilTable2GUI::EXPORT_EXCEL = 1

◆ FILTER_DATE

const ilTable2GUI::FILTER_DATE = 3

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