ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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="")
 Constructor.
executeCommand ()
 Execute command.
 resetOffset ($a_in_determination=false)
 Reset offset.
 initFilter ()
 Init filter.
 getParentObject ()
 Get parent object.
 getParentCmd ()
 Get parent command.
 setTopAnchor ($a_val)
 Set top anchor.
 getTopAnchor ()
 Get top anchor.
 setNoEntriesText ($a_text)
 Set text for an empty table.
 getNoEntriesText ()
 Get text for an empty table.
 setIsDataTable ($a_val)
 Set is data table.
 getIsDataTable ()
 Get is data table.
 setEnableTitle ($a_enabletitle)
 Set Enable Title.
 getEnableTitle ()
 Get Enable Title.
 setEnableHeader ($a_enableheader)
 Set Enable Header.
 getEnableHeader ()
 Get Enable Header.
 setEnableNumInfo ($a_val)
 Set enable num info.
 getEnableNumInfo ()
 Get enable num info.
 setTitle ($a_title, $a_icon=0, $a_icon_alt=0)
 Set title and title icon.
 setDescription ($a_val)
 Set description.
 getDescription ()
 Get description.
 setOrderField ($a_order_field)
 set order column
 getOrderField ()
 setData ($a_data)
 set table data public
 getData ()
 dataExists ()
 setPrefix ($a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) public
 getPrefix ()
 addFilterItem ($a_input_item, $a_optional=false)
 Add filter item.
 getFilterItems ($a_optionals=false)
 Get filter items.
 getFilterItemByPostVar ($a_post_var)
 setFilterCols ($a_val)
 Set filter columns.
 getFilterCols ()
 Get filter columns.
 setDisableFilterHiding ($a_val=true)
 Set disable filter hiding.
 getDisableFilterHiding ()
 Get disable filter hiding disable filter hiding.
 setCustomPreviousNext ($a_prev_link, $a_next_link)
 Set custom previous/next links.
 setFormAction ($a_form_action)
 Set Form action parameter.
 getFormAction ()
 Get Form action parameter.
 setFormName ($a_formname)
 Set Form name.
 getFormName ()
 Get Form name.
 setId ($a_val)
 Set id.
 getId ()
 Get element id.
 setDisplayAsBlock ($a_val)
 Set display as block.
 getDisplayAsBlock ()
 Get display as block.
 getSelectAllCheckbox ()
 Get the name of the checkbox that should be toggled with a select all button.
 setSelectAllCheckbox ($a_select_all_checkbox)
 Set the name of the checkbox that should be toggled with a select all button.
 setExternalSorting ($a_val)
 Set external sorting.
 getExternalSorting ()
 Get external sorting.
 setFilterCommand ($a_val)
 Set filter command.
 getFilterCommand ()
 Get filter command.
 setResetCommand ($a_val)
 Set reset filter command.
 getResetCommand ()
 Get reset filter command.
 setExternalSegmentation ($a_val)
 Set external segmentation.
 getExternalSegmentation ()
 Get external segmentation.
 setRowTemplate ($a_template, $a_template_dir="")
 Set row template.
 setDefaultOrderField ($a_defaultorderfield)
 Set Default order field.
 getDefaultOrderField ()
 Get Default order field.
 setDefaultOrderDirection ($a_defaultorderdirection)
 Set Default order direction.
 getDefaultOrderDirection ()
 Get Default order direction.
 clearCommandButtons ()
 addCommandButton ($a_cmd, $a_text, $a_onclick= '')
 Add Command button.
 addSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection= '')
 Add Selection List + Command button.
 addMultiItemSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection= '')
 Add Selection List + Command button for selected items.
 setCloseCommand ($a_link)
 Add command for closing table.
 addMultiCommand ($a_cmd, $a_text)
 Add Command button.
 addHiddenInput ($a_name, $a_value)
 Add Hidden Input field.
 addHeaderCommand ($a_href, $a_text, $a_target="", $a_img="")
 Add Header Command (Link) (Image needed for now)
 setTopCommands ($a_val)
 Set top commands (display command buttons on top of table, too)
 getTopCommands ()
 Get top commands (display command buttons on top of table, too)
 addColumn ($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="")
 Add a column to the header.
 getNavParameter ()
 setOrderLink ($sort_field, $order_dir)
 fillHeader ()
 determineOffsetAndOrder ($a_omit_offset=false)
 Determine offset and order.
 storeNavParameter ()
 getHTML ()
 Get HTML.
 numericOrdering ($a_field)
 Should this field be sorted numeric?
 render ()
 render table public
 writeFilterToSession ()
 Write filter values to session.
 resetFilter ()
 Reset filter.
 fillFooter ()
 Fill footer row.
 getLinkbar ($a_num)
 Get previous/next linkbar.
 fillHiddenRow ()
 fillActionRow ()
 Fill Action Row.
 setHeaderHTML ($html)
 set header html
- Public Member Functions inherited from ilTableGUI
 ilTableGUI ($a_data=0, $a_global_tpl=true)
 Constructor.
 setTemplate (&$a_tpl)
 set template public
getTemplateObject ()
 setHelp ($a_help_page, $a_help_icon, $a_help_icon_alt=0)
 set table help page public
 setHeaderNames ($a_header_names)
 set table header names public
 getColumnCount ()
 Returns the column count based on the number of the header row columns public.
 setHeaderVars ($a_header_vars, $a_header_params=0)
 set table header vars public
 setColumnWidth ($a_column_width)
 set table column widths public
 setOneColumnWidth ($a_column_width, $a_column_number)
 set one table column width public
 setMaxCount ($a_max_count)
 set max.
 setLimit ($a_limit=0, $a_default_limit=0)
 set max.
 getLimit ()
 Get limit.
 setOffset ($a_offset)
 set dataset offset public
 getOffset ()
 Get offset.
 setOrderColumn ($a_order_column=0, $a_default_column=0)
 set order column public
 getOrderColumn ()
 Get order column.
 setOrderDirection ($a_order_direction)
 set order direction public
 getOrderDirection ()
 Get order direction.
 setFooter ($a_style, $a_previous=0, $a_next=0)
 set order direction public
 enable ($a_module_name)
 enables particular modules of table
 disable ($a_module_name)
 diesables particular modules of table
 sortData ()
 renderHeader ()
 setStyle ($a_element, $a_style)
 getStyle ($a_element)
 setBase ($a_base)
 Set Base script name (deprecated, only use this for workarounds).
 getBase ()
 Get Base script name (deprecated, only use this for workarounds).
 clearActionButtons ()
 addActionButton ($btn_name, $btn_value)

Protected Member Functions

 prepareOutput ()
 Anything that must be done before HTML is generated.
 fillRow ($a_set)
 Standard Version of Fill Row.

Protected Attributes

 $close_command = ""
 $top_anchor = "il_table_top"
 $filters = array()
 $optional_filters = array()
 $filter_cmd = 'applyFilter'
 $reset_cmd = 'resetFilter'
 $filter_cols = 4
 $ext_sort = false
 $ext_seg = false
 $mi_sel_buttons = null
 $disable_filter_hiding = false
 $top_commands = false

Private Member Functions

 renderFilter ()
 Render Filter section.

Private Attributes

 $unique_id
 $headerHTML

Additional Inherited Members

- 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

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

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

Constructor.

Reimplemented in ilShopPersonalSettingsTopicsTableGUI, ilShopTopicsTableGUI, ilCalendarInboxSharedTableGUI, ilMDCopyrightTableGUI, ilCourseInfoFileTableGUI, ilCourseObjectivesTableGUI, ilSessionFileTableGUI, ilAdvancedMDRecordTableGUI, ilCalendarSharedRoleListTableGUI, ilCalendarSharedUserListTableGUI, ilAddressbookTableGUI, ilLDAPRoleAssignmentTableGUI, ilECSImportedContentTableGUI, ilECSReleasedContentTableGUI, ilShibbolethRoleAssignmentTableGUI, ilTestHistoryTableGUI, ilAdvancedMDFieldTableGUI, ilAdvancedMDRecordExportFilesTableGUI, ilCalendarAppointmentsTableGUI, ilCalendarChangedAppointmentsTableGUI, ilCalendarSharedListTableGUI, ilLuceneAdvancedSearchActivationTableGUI, ilCourseObjectiveQuestionsTableGUI, ilRoleSelectionTableGUI, ilSurveyInvitedUsersTableGUI, ilSurveyInviteGroupsTableGUI, ilSurveyInviteRolesTableGUI, ilSurveyInviteUsersTableGUI, ilAssessmentFolderLogTableGUI, ilTestAggregatedResultsTableGUI, ilTestAverageReachedPointsTableGUI, ilTestInviteGroupsTableGUI, ilTestInviteRolesTableGUI, ilTestInviteUsersTableGUI, assFileUploadFileTableGUI, ilRepositoryObjectResultTableGUI, ilECSCategoryMappingTableGUI, ilClipboardTableGUI, ilPageLayoutTableGUI, ilMailSearchCoursesMembersTableGUI, ilMailSearchCoursesTableGUI, ilWebResourceEditableLinkTableGUI, ilForumStatisticsTableGUI, ilCustomUserFieldSettingsTableGUI, ilUserFieldSettingsTableGUI, ilUserTableGUI, ilAccessKeyTableGUI, ilTrashTableGUI, ilRepositoryUserResultTableGUI, ilRoleAssignmentTableGUI, ilPageHistoryTableGUI, and ilChatSmiliesTableGUI.

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

References $unique_id, setEnableNumInfo(), setIsDataTable(), and ilTableGUI\setLimit().

Referenced by ilComponentsTableGUI\ilComponentsTableGUI(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilNewsForContextTableGUI\ilNewsForContextTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), and ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI().

{
global $ilUser;
$this->unique_id = md5(uniqid());
$this->parent_obj = $a_parent_obj;
$this->parent_cmd = $a_parent_cmd;
$this->buttons = array();
$this->header_commands = array();
$this->multi = array();
$this->hidden_inputs = array();
$this->formname = "table_" . $this->unique_id;
$this->tpl = new ilTemplate("tpl.table2.html", true, true, "Services/Table");
if (is_object($ilUser))
{
$this->setLimit($ilUser->getPref("hits_per_page"));
}
$this->setIsDataTable(true);
$this->setEnableNumInfo(true);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

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

Add a column to the header.

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

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), iliLinkConfirmationTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilUserTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilStyleTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilCalendarAppointmentsTableGUI\fillRow(), ilComponentsTableGUI\ilComponentsTableGUI(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilNewsForContextTableGUI\ilNewsForContextTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), ilSessionParticipantsTableGUI\init(), and ilMailFolderTableGUI\prepareHTML().

{
$this->column[] = array(
"text" => $a_text,
"sort_field" => $a_sort_field,
"width" => $a_width,
"is_checkbox_action_column" => $a_is_checkbox_action_column,
"class" => $a_class
);
$this->column_count = count($this->column);
}

+ Here is the caller graph for this function:

ilTable2GUI::addCommandButton (   $a_cmd,
  $a_text,
  $a_onclick = '' 
)

Add Command button.

Parameters
stringCommand
stringText

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

Referenced by iliLinkMembersTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilUserTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilStyleTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilComponentsTableGUI\ilComponentsTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilMailFolderTableGUI\initCommandButtons(), ilObjectTranslationTableGUI\prepareOutput(), and ilMediaPoolTableGUI\prepareOutput().

{
$this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, 'onclick' => $a_onclick);
}

+ Here is the caller graph for this function:

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

Referenced by ilRoleAssignmentTableGUI\initFilter(), ilLPObjectsTableGUI\initFilter(), ilLPProgressTableGUI\initFilter(), ilPDNewsTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), and ilMediaPoolTableGUI\initFilter().

{
$a_input_item->setParent($this);
if (!$a_optional)
{
$this->filters[] = $a_input_item;
}
else
{
$this->optional_filters[] = $a_input_item;
}
}

+ Here is the caller graph for this function:

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

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

Parameters
stringhref
stringtext

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

Referenced by ilMediaPoolTableGUI\__construct().

{
$this->header_commands[] = array("href" => $a_href, "text" => $a_text,
"target" => $a_target, "img" => $a_img);
}

+ Here is the caller graph for this function:

ilTable2GUI::addHiddenInput (   $a_name,
  $a_value 
)

Add Hidden Input field.

Parameters
stringName
stringValue

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

{
$this->hidden_inputs[] = array("name" => $a_name, "value" => $a_value);
}
ilTable2GUI::addMultiCommand (   $a_cmd,
  $a_text 
)

Add Command button.

Parameters
stringCommand
stringText

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilClientListTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilUserTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilStyleTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilRepositoryUserResultTableGUI\initMultiCommands(), ilMailFolderTableGUI\initMultiCommands(), ilShopTopicsTableGUI\parseRecords(), ilObjectTranslationTableGUI\prepareOutput(), and ilMediaPoolTableGUI\prepareOutput().

{
$this->multi[] = array("cmd" => $a_cmd, "text" => $a_text);
}

+ Here is the caller graph for this function:

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

Referenced by ilRepositoryUserResultTableGUI\initMultiCommands().

{
$this->mi_sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
}

+ Here is the caller graph for this function:

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

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

Referenced by ilSurveyResultsCumulatedTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), and ilSurveyCodesTableGUI\__construct().

{
$this->sel_buttons[] = array("sel_var" => $a_sel_var, "options" => $a_options, "selected" => $a_default_selection, "cmd" => $a_cmd, "text" => $a_text);
}

+ Here is the caller graph for this function:

ilTable2GUI::clearCommandButtons ( )

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

{
$this->buttons = array();
}
ilTable2GUI::dataExists ( )
final

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

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

{
if (is_array($this->row_data))
{
if (count($this->row_data) > 0)
{
return true;
}
}
return false;
}

+ Here is the caller graph for this function:

ilTable2GUI::determineOffsetAndOrder (   $a_omit_offset = false)

Determine offset and order.

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

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

Referenced by ilMailFolderTableGUI\fetchTableData(), getHTML(), ilAssignedUsersTableGUI\getItems(), ilUserTableGUI\getItems(), ilFileSystemTableGUI\prepareOutput(), and resetOffset().

{
global $ilUser;
//echo "<br>";
if ($_POST[$this->getNavParameter()."1"] != "")
{
if ($_POST[$this->getNavParameter()."1"] != $_POST[$this->getNavParameter()])
{
//echo "1";
$this->nav_value = $_POST[$this->getNavParameter()."1"];
}
else if ($_POST[$this->getNavParameter()."2"] != $_POST[$this->getNavParameter()])
{
//echo "2";
$this->nav_value = $_POST[$this->getNavParameter()."2"];
}
}
{
//echo "3";
$this->nav_value = $_GET[$this->getNavParameter()];
}
elseif($_SESSION[$this->getNavParameter()] != "")
{
//echo "4";
$this->nav_value = $_SESSION[$this->getNavParameter()];
}
if ($this->nav_value == "" && $this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID)
{
//echo "5";
// get order and direction from db
include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
$tab_prop = new ilTablePropertiesStorage();
$this->nav_value =
$tab_prop->getProperty($this->getId(), $ilUser->getId(), "order").":".
$tab_prop->getProperty($this->getId(), $ilUser->getId(), "direction").":".
$tab_prop->getProperty($this->getId(), $ilUser->getId(), "offset");
}
//echo "+".$this->nav_value;
$nav = explode(":", $this->nav_value);
// $nav[0] is order by
$this->setOrderField(($nav[0] != "") ? $nav[0] : $this->getDefaultOrderField());
$this->setOrderDirection(($nav[1] != "") ? $nav[1] : $this->getDefaultOrderDirection());
if (!$a_omit_offset)
{
//echo "-".$nav[2]."-".$this->max_count."-";
if (!$this->getExternalSegmentation() && $nav[2] >= $this->max_count)
{
$this->resetOffset(true);
}
else
{
$this->setOffset($nav[2]);
}
}
$this->nav_determined = true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilTable2GUI::executeCommand ( )

Execute command.

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

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

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
switch($next_class)
{
case 'ilformpropertydispatchgui':
include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
$form_prop_dispatch = new ilFormPropertyDispatchGUI();
$this->initFilter();
$item = $this->getFilterItemByPostVar($_GET["postvar"]);
$form_prop_dispatch->setItem($item);
return $ilCtrl->forwardCommand($form_prop_dispatch);
break;
}
return false;
}

+ Here is the call graph for this function:

ilTable2GUI::fillActionRow ( )

Fill Action Row.

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

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

Referenced by getHTML().

{
global $lng;
// action row
$action_row = false;
$arrow = false;
// add selection buttons
if (count($this->sel_buttons) > 0)
{
foreach ($this->sel_buttons as $button)
{
$this->tpl->setCurrentBlock("sel_button");
$this->tpl->setVariable("SBUTTON_SELECT",
ilUtil::formSelect($button["selected"], $button["sel_var"],
$button["options"], false, true));
$this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
$this->tpl->setVariable("SBTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("sel_top_button");
$this->tpl->setVariable("SBUTTON_SELECT",
ilUtil::formSelect($button["selected"], $button["sel_var"],
$button["options"], false, true));
$this->tpl->setVariable("SBTN_NAME", $button["cmd"]);
$this->tpl->setVariable("SBTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
}
}
$buttons = true;
$action_row = true;
}
$this->sel_buttons[] = array("options" => $a_options, "cmd" => $a_cmd, "text" => $a_text);
// add buttons
if (count($this->buttons) > 0)
{
foreach ($this->buttons as $button)
{
if (strlen($button['onclick']))
{
$this->tpl->setCurrentBlock('cmdonclick');
$this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("plain_button");
$this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
$this->tpl->setVariable("PBTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
if ($this->getTopCommands())
{
if (strlen($button['onclick']))
{
$this->tpl->setCurrentBlock('top_cmdonclick');
$this->tpl->setVariable('CMD_ONCLICK', $button['onclick']);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("plain_top_button");
$this->tpl->setVariable("PBTN_NAME", $button["cmd"]);
$this->tpl->setVariable("PBTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
}
}
$buttons = true;
$action_row = true;
}
// multi selection
if(count($this->mi_sel_buttons))
{
foreach ($this->mi_sel_buttons as $button)
{
$this->tpl->setCurrentBlock("mi_sel_button");
$this->tpl->setVariable("MI_BUTTON_SELECT",
ilUtil::formSelect($button["selected"], $button["sel_var"],
$button["options"], false, true));
$this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
$this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("mi_top_sel_button");
$this->tpl->setVariable("MI_BUTTON_SELECT",
ilUtil::formSelect($button["selected"], $button["sel_var"],
$button["options"], false, true));
$this->tpl->setVariable("MI_BTN_NAME", $button["cmd"]);
$this->tpl->setVariable("MI_BTN_VALUE", $button["text"]);
$this->tpl->parseCurrentBlock();
}
}
$arrow = true;
$action_row = true;
}
if (count($this->multi) > 1 && $this->dataExists())
{
$this->tpl->setCurrentBlock("tbl_cmd_select");
$sel = array();
foreach ($this->multi as $mc)
{
$sel[$mc["cmd"]] = $mc["text"];
}
$this->tpl->setVariable("SELECT_CMDS",
ilUtil::formSelect("", "selected_cmd", $sel, false, true));
$this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
$this->tpl->parseCurrentBlock();
$arrow = true;
$action_row = true;
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("tbl_top_cmd_select");
$sel = array();
foreach ($this->multi as $mc)
{
$sel[$mc["cmd"]] = $mc["text"];
}
$this->tpl->setVariable("SELECT_CMDS",
ilUtil::formSelect("", "selected_cmd2", $sel, false, true));
$this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute"));
$this->tpl->parseCurrentBlock();
}
}
elseif(count($this->multi) == 1 && $this->dataExists())
{
$this->tpl->setCurrentBlock("tbl_single_cmd");
$sel = array();
foreach ($this->multi as $mc)
{
$cmd = $mc['cmd'];
$txt = $mc['text'];
}
$this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
$this->tpl->setVariable("SINGLE_CMD",$cmd);
$this->tpl->parseCurrentBlock();
$arrow = true;
$action_row = true;
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("tbl_top_single_cmd");
$sel = array();
foreach ($this->multi as $mc)
{
$cmd = $mc['cmd'];
$txt = $mc['text'];
}
$this->tpl->setVariable("TXT_SINGLE_CMD",$txt);
$this->tpl->setVariable("SINGLE_CMD",$cmd);
$this->tpl->parseCurrentBlock();
}
}
if ($arrow)
{
$this->tpl->setCurrentBlock("tbl_action_img_arrow");
$this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.gif"));
$this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
$this->tpl->parseCurrentBlock();
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("tbl_top_action_img_arrow");
$this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_upright.gif"));
$this->tpl->setVariable("ALT_ARROW", $lng->txt("action"));
$this->tpl->parseCurrentBlock();
}
}
if ($action_row)
{
$this->tpl->setCurrentBlock("tbl_action_row");
$this->tpl->parseCurrentBlock();
if ($this->getTopCommands())
{
$this->tpl->setCurrentBlock("tbl_top_action_row");
$this->tpl->parseCurrentBlock();
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::fillFooter ( )

Fill footer row.

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

References $ilCtrl, ilTableGUI\$limit, $lng, ilTableGUI\$max_count, $start, dataExists(), ilTableGUI\getColumnCount(), getDisplayAsBlock(), getEnableNumInfo(), getFormName(), getLinkbar(), and getSelectAllCheckbox().

Referenced by getHTML().

{
global $lng, $ilCtrl;
$footer = false;
// select all checkbox
if ((strlen($this->getFormName())) && (strlen($this->getSelectAllCheckbox())) && $this->dataExists())
{
$this->tpl->setCurrentBlock("select_all_checkbox");
$this->tpl->setVariable("SELECT_ALL_TXT_SELECT_ALL", $lng->txt("select_all"));
$this->tpl->setVariable("SELECT_ALL_CHECKBOX_NAME", $this->getSelectAllCheckbox());
$this->tpl->setVariable("SELECT_ALL_FORM_NAME", $this->getFormName());
$this->tpl->setVariable("CHECKBOXNAME", "chb_select_all_" . $this->unique_id);
$this->tpl->parseCurrentBlock();
}
// table footer numinfo
if ($this->enabled["numinfo"] && $this->enabled["footer"])
{
$start = $this->offset + 1; // compute num info
if (!$this->dataExists())
{
$start = 0;
}
$end = $this->offset + $this->limit;
if ($end > $this->max_count or $this->limit == 0)
{
}
if ($this->max_count > 0)
{
if ($this->lang_support)
{
$numinfo = "(".$start." - ".$end." ".strtolower($this->lng->txt("of"))." ".$this->max_count.")";
}
else
{
$numinfo = "(".$start." - ".$end." of ".$this->max_count.")";
}
}
if ($this->max_count > 0)
{
if ($this->getEnableNumInfo())
{
$this->tpl->setCurrentBlock("tbl_footer_numinfo");
$this->tpl->setVariable("NUMINFO", $numinfo);
$this->tpl->parseCurrentBlock();
}
}
$footer = true;
}
// table footer linkbar
if ($this->enabled["linkbar"] && $this->enabled["footer"] && $this->limit != 0
&& $this->max_count > 0)
{
$layout = array(
"link" => $this->footer_style,
"prev" => $this->footer_previous,
"next" => $this->footer_next,
);
if (!$this->getDisplayAsBlock())
{
$linkbar = $this->getLinkbar("1");
$this->tpl->setCurrentBlock("tbl_footer_linkbar");
$this->tpl->setVariable("LINKBAR", $linkbar);
$this->tpl->parseCurrentBlock();
}
$linkbar = true;
$footer = true;
}
if ($footer)
{
$this->tpl->setCurrentBlock("tbl_footer");
$this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
if ($this->getDisplayAsBlock())
{
$this->tpl->setVariable("BLK_CLASS", "Block");
}
$this->tpl->parseCurrentBlock();
// top navigation, if number info or linkbar given
if ($numinfo != "" || $linkbar != "")
{
if ($numinfo != "" && $this->getEnableNumInfo())
{
$this->tpl->setCurrentBlock("top_numinfo");
$this->tpl->setVariable("NUMINFO", $numinfo);
$this->tpl->parseCurrentBlock();
}
if ($linkbar != "")
{
$linkbar = $this->getLinkbar("2");
$this->tpl->setCurrentBlock("top_linkbar");
$this->tpl->setVariable("LINKBAR", $linkbar);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("top_navigation");
$this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
if ($this->getDisplayAsBlock())
{
$this->tpl->setVariable("BLK_CLASS", "Block");
}
$this->tpl->parseCurrentBlock();
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::fillHeader ( )

Reimplemented in ilQuestionBrowserTableGUI, and ilTestQuestionsTableGUI.

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

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

Referenced by render().

{
global $lng;
$allcolumnswithwidth = true;
foreach ($this->column as $column)
{
if (!strlen($column["width"])) $allcolumnswithwidth = false;
}
if ($allcolumnswithwidth)
{
foreach ($this->column as $column)
{
$this->tpl->setCurrentBlock("tbl_colgroup_column");
$this->tpl->setVariable("COLGROUP_COLUMN_WIDTH", $column["width"]);
$this->tpl->parseCurrentBlock();
}
}
foreach ($this->column as $column)
{
if (!$this->enabled["sort"] || $column["sort_field"] == "" || $column["is_checkbox_action_column"])
{
$this->tpl->setCurrentBlock("tbl_header_no_link");
if ($column["width"] != "")
{
$this->tpl->setVariable("TBL_COLUMN_WIDTH_NO_LINK"," width=\"".$column["width"]."\"");
}
if (!$column["is_checkbox_action_column"])
{
$this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
$column["text"]);
}
else
{
$this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",
ilUtil::img(ilUtil::getImagePath("spacer.gif"), $lng->txt("action")));
}
if ($column["class"] != "")
{
$this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
}
$this->tpl->parseCurrentBlock();
$this->tpl->touchBlock("tbl_header_th");
continue;
}
if (($column["sort_field"] == $this->order_field) && ($this->order_direction != ""))
{
$this->tpl->setCurrentBlock("tbl_order_image");
$this->tpl->setVariable("IMG_ORDER_DIR",ilUtil::getImagePath($this->order_direction."_order.gif"));
$this->tpl->setVariable("IMG_ORDER_ALT", $this->lng->txt("change_sort_direction"));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("tbl_header_cell");
$this->tpl->setVariable("TBL_HEADER_CELL", $column["text"]);
// only set width if a value is given for that column
if ($column["width"] != "")
{
$this->tpl->setVariable("TBL_COLUMN_WIDTH"," width=\"".$column["width"]."\"");
}
$lng_sort_column = $this->lng->txt("sort_by_this_column");
$this->tpl->setVariable("TBL_ORDER_ALT",$lng_sort_column);
$order_dir = "asc";
if ($column["sort_field"] == $this->order_field)
{
$order_dir = $this->sort_order;
$lng_change_sort = $this->lng->txt("change_sort_direction");
$this->tpl->setVariable("TBL_ORDER_ALT",$lng_change_sort);
}
if ($column["class"] != "")
{
$this->tpl->setVariable("TBL_HEADER_CLASS"," " . $column["class"]);
}
$this->setOrderLink($column["sort_field"], $order_dir);
$this->tpl->parseCurrentBlock();
$this->tpl->touchBlock("tbl_header_th");
}
$this->tpl->setCurrentBlock("tbl_header");
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::fillHiddenRow ( )

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

Referenced by getHTML().

{
$hidden_row = false;
if(count($this->hidden_inputs))
{
foreach ($this->hidden_inputs as $hidden_input)
{
$this->tpl->setCurrentBlock("tbl_hidden_field");
$this->tpl->setVariable("FIELD_NAME", $hidden_input["name"]);
$this->tpl->setVariable("FIELD_VALUE", $hidden_input["value"]);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("tbl_hidden_row");
$this->tpl->parseCurrentBlock();
}
}

+ Here is the caller graph for this function:

ilTable2GUI::fillRow (   $a_set)
protected

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
array$a_setdata array

Reimplemented in ilMailFolderTableGUI, ilMediaPoolTableGUI, ilUserTableGUI, ilQuestionBrowserTableGUI, ilEvaluationAllTableGUI, ilSessionParticipantsTableGUI, ilSurveyQuestionsTableGUI, ilSurveyQuestionbrowserTableGUI, ilWebResourceEditableLinkTableGUI, ilTestQuestionBrowserTableGUI, ilWikiPagesTableGUI, ilWebResourceLinkTableGUI, ilClientListTableGUI, ilCourseParticipantsTableGUI, ilFileSystemTableGUI, ilObjectCopySearchResultTableGUI, ilAdminSubItemsTableGUI, ilGroupParticipantsTableGUI, ilSurveyCodesTableGUI, ilPDNewsTableGUI, ilLPObjectsTableGUI, ilLPProgressTableGUI, ilSubscriberTableGUI, ilTestQuestionsTableGUI, ilTestFixedParticipantsTableGUI, ilWaitingListTableGUI, ilQuestionPoolExportTableGUI, ilCourseEditParticipantsTableGUI, ilTestExportTableGUI, ilSurveyExportTableGUI, ilSurveyQuestionblockbrowserTableGUI, ilTestParticipantsTableGUI, ilSurveyMaintenanceTableGUI, ilSurveyQuestionPoolExportTableGUI, ilSCORM2004ExportTableGUI, ilStyleTableGUI, ilMailSearchCoursesTableGUI, ilAssignedUsersTableGUI, ilMilestoneResponsiblesTableGUI, ilComponentsTableGUI, ilObjectCopySelectionTableGUI, ilCourseObjectiveQuestionAssignmentTableGUI, ilSurveyPhrasesTableGUI, ilImageMapTableGUI, ilMediaPoolPageUsagesTableGUI, ilMailSearchCoursesMembersTableGUI, ilMediaObjectUsagesTableGUI, ilSurveyResultsCumulatedTableGUI, ilTestAverageReachedPointsTableGUI, ilCalendarAppointmentsTableGUI, ilCourseObjectiveMaterialAssignmentTableGUI, ilListOfQuestionsTableGUI, ilGroupEditParticipantsTableGUI, ilLanguageTableGUI, ilClipboardTableGUI, ilAssessmentFolderLogAdministrationTableGUI, ilCourseObjectivesTableGUI, ilObjectivesAlignmentTableGUI, ilTestInviteUsersTableGUI, ilSurveyInvitedUsersTableGUI, ilSurveyInviteUsersTableGUI, ilQuestionPoolPrintViewTableGUI, ilTableTemplatesTableGUI, ilSurveyInviteGroupsTableGUI, ilSurveyInviteRolesTableGUI, ilTestInviteGroupsTableGUI, ilTestInviteRolesTableGUI, ilCalendarChangedAppointmentsTableGUI, ilPageLayoutTableGUI, ilTestHistoryTableGUI, ilCalendarCategoryTableGUI, ilPCFileListTableGUI, ilCalendarSharedListTableGUI, ilPluginsTableGUI, ilStyleColorTableGUI, ilCalendarSharedRoleListTableGUI, ilCalendarSharedUserListTableGUI, ilAssessmentFolderLogTableGUI, ilCalendarInboxSharedTableGUI, ilStyleImageTableGUI, ilCourseObjectiveQuestionsTableGUI, ilWikiContributorsTableGUI, ilShopTopicsTableGUI, assFileUploadFileTableGUI, ilECSCommunityTableGUI, ilMDCopyrightTableGUI, ilTestAggregatedResultsTableGUI, ilAdvancedMDRecordTableGUI, ilLDAPRoleAssignmentTableGUI, ilShopPersonalSettingsTopicsTableGUI, ilECSImportedContentTableGUI, ilCourseInfoFileTableGUI, ilSessionFileTableGUI, ilSurveyMaterialsTableGUI, ilWikiRecentChangesTableGUI, ilShibbolethRoleAssignmentTableGUI, ilECSReleasedContentTableGUI, ilAdvancedMDFieldTableGUI, ilAdvancedMDRecordExportFilesTableGUI, ilExerciseMemberTableGUI, ilLinksTableGUI, ilRoleSelectionTableGUI, ilRepositoryObjectResultTableGUI, ilRoleAssignmentTableGUI, ilAddressbookTableGUI, ilObjectTranslationTableGUI, ilLuceneAdvancedSearchActivationTableGUI, ilECSCategoryMappingTableGUI, ilResultsByQuestionTableGUI, ilExcDeliveredFilesTableGUI, ilPCImageMapTableGUI, ilMediaCastTableGUI, ilWikiSearchResultsTableGUI, ilRepositoryUserResultTableGUI, ilAccessKeyTableGUI, ilFoundUsersTableGUI, ilSpecialUsersTableGUI, ilSCORM2004TrackingTableGUI, ilUserFieldSettingsTableGUI, ilCustomUserFieldSettingsTableGUI, ilSearchResultTableGUI, ilPageHistoryTableGUI, ilBookmarkAdministrationTableGUI, ilSetupLanguageTableGUI, ilTrashTableGUI, ilChatRoomsTableGUI, ilSubItemSelectionTableGUI, ilPCTabsTableGUI, ilConfirmationTableGUI, ilUserForTagTableGUI, ilNewsForContextTableGUI, and ilChatSmiliesTableGUI.

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

References $key.

Referenced by getHTML().

{
foreach ($a_set as $key => $value)
{
$this->tpl->setVariable("VAL_".strtoupper($key), $value);
}
}

+ Here is the caller graph for this function:

ilTable2GUI::getData ( )
final

Reimplemented from ilTableGUI.

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

Referenced by ilImageMapTableGUI\__construct(), ilTestQuestionsTableGUI\fillRow(), getHTML(), and ilWebResourceEditableLinkTableGUI\updateFromPost().

{
return $this->row_data;
}

+ Here is the caller graph for this function:

ilTable2GUI::getDefaultOrderDirection ( )

Get Default order direction.

Returns
string Default order direction

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

Referenced by determineOffsetAndOrder().

{
return $this->defaultorderdirection;
}

+ Here is the caller graph for this function:

ilTable2GUI::getDefaultOrderField ( )

Get Default order field.

Returns
string Default order field

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

Referenced by determineOffsetAndOrder().

{
return $this->defaultorderfield;
}

+ Here is the caller graph for this function:

ilTable2GUI::getDescription ( )

Get description.

Returns
string description

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

Referenced by render().

{
return $this->description;
}

+ Here is the caller graph for this function:

ilTable2GUI::getDisableFilterHiding ( )

Get disable filter hiding disable filter hiding.

Returns
boolean

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

References $disable_filter_hiding.

Referenced by renderFilter().

+ Here is the caller graph for this function:

ilTable2GUI::getDisplayAsBlock ( )

Get display as block.

Returns
boolean display as block

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

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

{
return $this->display_as_block;
}

+ Here is the caller graph for this function:

ilTable2GUI::getEnableHeader ( )

Get Enable Header.

Returns
boolean Enable Header

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

{
return $this->enabled["header"];
}
ilTable2GUI::getEnableNumInfo ( )

Get enable num info.

Returns
boolean enable number of records info

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

Referenced by fillFooter().

{
return $this->num_info;
}

+ Here is the caller graph for this function:

ilTable2GUI::getEnableTitle ( )

Get Enable Title.

Returns
boolean Enable Title

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

{
return $this->enabled["title"];
}
ilTable2GUI::getExternalSegmentation ( )

Get external segmentation.

Returns
boolean data is segmented externally

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

References $ext_seg.

Referenced by determineOffsetAndOrder(), and getHTML().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::getExternalSorting ( )

Get external sorting.

Returns
boolean data is sorted externally

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

References $ext_sort.

Referenced by getHTML().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::getFilterCols ( )

Get filter columns.

Returns
int number of filter columns

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

References $filter_cols.

Referenced by renderFilter().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::getFilterCommand ( )

Get filter command.

Returns
string filter command

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

References $filter_cmd.

{
}
ilTable2GUI::getFilterItemByPostVar (   $a_post_var)
final

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

References getFilterItems().

Referenced by executeCommand().

{
foreach ($this->getFilterItems() as $item)
{
if ($item->getPostVar() == $a_post_var)
{
return $item;
}
}
foreach ($this->getFilterItems(true) as $item)
{
if ($item->getPostVar() == $a_post_var)
{
return $item;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::getFilterItems (   $a_optionals = false)
final

Get filter items.

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

References $filters, and $optional_filters.

Referenced by getFilterItemByPostVar(), renderFilter(), resetFilter(), and writeFilterToSession().

{
if (!$a_optionals)
{
}
}

+ Here is the caller graph for this function:

ilTable2GUI::getFormAction ( )
final

Get Form action parameter.

Returns
string Form action

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

Referenced by getHTML().

{
return $this->form_action;
}

+ Here is the caller graph for this function:

ilTable2GUI::getFormName ( )

Get Form name.

Returns
string Form name

Reimplemented from ilTableGUI.

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

Referenced by fillFooter(), and getHTML().

{
return $this->formname;
}

+ Here is the caller graph for this function:

ilTable2GUI::getHTML ( )
final

Get HTML.

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

References ilTableGUI\$data, $ilCtrl, $lng, determineOffsetAndOrder(), fillActionRow(), fillFooter(), fillHiddenRow(), fillRow(), getData(), getExternalSegmentation(), getExternalSorting(), getFormAction(), getFormName(), getId(), ilTableGUI\getLimit(), getNavParameter(), getNoEntriesText(), ilTableGUI\getOffset(), ilTableGUI\getOrderDirection(), getOrderField(), getParentObject(), numericOrdering(), prepareOutput(), render(), ilTableGUI\setFooter(), ilTableGUI\setMaxCount(), ilUtil\sortArray(), and storeNavParameter().

{
global $lng, $ilCtrl, $ilUser;
$this->prepareOutput();
if (is_object($ilCtrl) && $this->getId() == "")
{
$ilCtrl->saveParameter($this->getParentObject(), $this->getNavParameter());
}
if(!$this->enabled['content'])
{
return $this->render();
}
if (!$this->getExternalSegmentation())
{
$this->setMaxCount(count($this->row_data));
}
$this->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
// sort
$data = $this->getData();
if (!$this->getExternalSorting())
{
$data = ilUtil::sortArray($data, $this->getOrderField(),
$this->getOrderDirection(), $this->numericOrdering($this->getOrderField()));
}
// slice
if (!$this->getExternalSegmentation())
{
$data = array_slice($data, $this->getOffset(), $this->getLimit());
}
// fill rows
if(count($data) > 0)
{
$this->tpl->addBlockFile("TBL_CONTENT", "tbl_content", $this->row_template,
$this->row_template_dir);
foreach($data as $set)
{
$this->tpl->setCurrentBlock("tbl_content");
$this->css_row = ($this->css_row != "tblrow1")
? "tblrow1"
: "tblrow2";
$this->tpl->setVariable("CSS_ROW", $this->css_row);
$this->fillRow($set);
$this->tpl->setCurrentBlock("tbl_content");
$this->tpl->parseCurrentBlock();
}
}
else
{
// add standard no items text (please tell me, if it messes something up, alex, 29.8.2008)
$no_items_text = (trim($this->getNoEntriesText()) != '')
? $this->getNoEntriesText()
: $lng->txt("no_items");
$this->css_row = ($this->css_row != "tblrow1")
? "tblrow1"
: "tblrow2";
$this->tpl->setCurrentBlock("tbl_no_entries");
$this->tpl->setVariable('TBL_NO_ENTRY_CSS_ROW', $this->css_row);
$this->tpl->setVariable('TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
$this->tpl->setVariable('TBL_NO_ENTRY_TEXT', trim($no_items_text));
$this->tpl->parseCurrentBlock();
}
// set form action
if ($this->form_action != "")
{
$hash = "";
if (is_object($ilUser) && $ilUser->prefs["screen_reader_optimization"])
{
$hash = "#".$this->getTopAnchor();
}
$this->tpl->setCurrentBlock("tbl_form_header");
$this->tpl->setVariable("FORMACTION", $this->getFormAction().$hash);
$this->tpl->setVariable("FORMNAME", $this->getFormName());
$this->tpl->parseCurrentBlock();
$this->tpl->touchBlock("tbl_form_footer");
}
$this->fillFooter();
$this->fillHiddenRow();
$this->fillActionRow();
return $this->render();
}

+ Here is the call graph for this function:

ilTable2GUI::getId ( )

Get element id.

Returns
string id

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

Referenced by determineOffsetAndOrder(), getHTML(), render(), renderFilter(), and storeNavParameter().

{
return $this->id;
}

+ Here is the caller graph for this function:

ilTable2GUI::getIsDataTable ( )

Get is data table.

Returns
boolean is data table

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

Referenced by render().

{
return $this->datatable;
}

+ Here is the caller graph for this function:

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

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

Referenced by fillFooter().

{
global $ilCtrl, $lng, $ilUser;
$hash = "";
if (is_object($ilUser) && $ilUser->prefs["screen_reader_optimization"])
{
$hash = "#".$this->getTopAnchor();
}
$link = $ilCtrl->getLinkTargetByClass(get_class($this->parent_obj), $this->parent_cmd).
"&".$this->getNavParameter()."=".
$this->getOrderField().":".$this->getOrderDirection().":";
$LinkBar = "";
$layout_prev = $lng->txt("previous");
$layout_next = $lng->txt("next");
// if more entries then entries per page -> show link bar
if ($this->max_count > $this->getLimit() || $this->custom_prev_next)
{
// previous link
if ($this->custom_prev_next && $this->custom_prev != "")
{
$LinkBar .= "<a href=\"".$this->custom_prev.$hash."\">".$layout_prev."&nbsp;</a>";
}
else if ($this->getOffset() >= 1 && !$this->custom_prev_next)
{
$prevoffset = $this->getOffset() - $this->getLimit();
$LinkBar .= "<a href=\"".$link.$prevoffset.$hash."\">".$layout_prev."&nbsp;</a>";
}
else
{
$LinkBar .= '<span class="ilTableFootLight">'.$layout_prev."&nbsp;</span>";
}
// current value
if ($a_num == "1")
{
$LinkBar .= '<input type="hidden" name="'.$this->getNavParameter().
'" value="'.$this->getOrderField().":".$this->getOrderDirection().":".$this->getOffset().'" />';
}
// calculate number of pages
$pages = intval($this->max_count / $this->getLimit());
// add a page if a rest remains
if (($this->max_count % $this->getLimit()))
$pages++;
// links to other pages
$offset_arr = array();
for ($i = 1 ;$i <= $pages ; $i++)
{
$newoffset = $this->getLimit() * ($i-1);
$nav_value = $this->getOrderField().":".$this->getOrderDirection().":".$newoffset;
$offset_arr[$nav_value] = $i;
if ($newoffset == $this->getOffset())
{
// $LinkBar .= "[".$i."] ";
}
else
{
// $LinkBar .= '<a '.$layout_link.' href="'.
// $link.$newoffset.'">['.$i.']</a> ';
}
}
// show next link (if not last page)
if ($this->custom_prev_next && $this->custom_next != "")
{
if ($LinkBar != "")
$LinkBar .= "<span> | </span>";
$LinkBar .= "<a href=\"".$this->custom_next.$hash."\">&nbsp;".$layout_next."</a>";
}
else if (! ( ($this->getOffset() / $this->getLimit())==($pages-1) ) && ($pages!=1) &&
!$this->custom_prev_next)
{
if ($LinkBar != "")
$LinkBar .= "<span> | </span>";
$newoffset = $this->getOffset() + $this->getLimit();
$LinkBar .= "<a href=\"".$link.$newoffset.$hash."\">&nbsp;".$layout_next."</a>";
}
else
{
if ($LinkBar != "")
$LinkBar .= "<span > | </span>";
$LinkBar .= '<span class="ilTableFootLight">&nbsp;'.$layout_next."</span>";
}
if (count($offset_arr) && !$this->getDisplayAsBlock() && !$this->custom_prev_next)
{
$LinkBar .= "&nbsp;&nbsp;&nbsp;&nbsp;".
'<label for="tab_page_sel_'.$a_num.'">'.$lng->txt("select_page").'</label> '.
ilUtil::formSelect($this->nav_value,
$this->getNavParameter().$a_num, $offset_arr, false, true, 0, "ilEditSelect",
array("id" => "tab_page_sel_".$a_num)).
' <input class="ilEditSubmit" type="submit" name="cmd['.$this->parent_cmd.']" value="'.
$lng->txt("ok").'" /> ';
}
return $LinkBar;
}
else
{
return false;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::getNavParameter ( )
final

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

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

{
return $this->prefix."_table_nav";
}

+ Here is the caller graph for this function:

ilTable2GUI::getNoEntriesText ( )

Get text for an empty table.

Returns
string Text

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

Referenced by getHTML().

{
return $this->noentriestext;
}

+ Here is the caller graph for this function:

ilTable2GUI::getOrderField ( )

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

Referenced by ilMailFolderTableGUI\fetchTableData(), getHTML(), ilAssignedUsersTableGUI\getItems(), ilUserTableGUI\getItems(), getLinkbar(), resetOffset(), and storeNavParameter().

{
return $this->order_field;
}

+ Here is the caller graph for this function:

ilTable2GUI::getParentCmd ( )

Get parent command.

Returns
string get parent gui object default command

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

Referenced by ilPageHistoryTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), and ilWikiPagesTableGUI\fillRow().

{
return $this->parent_cmd;
}

+ Here is the caller graph for this function:

ilTable2GUI::getPrefix ( )
final

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

References ilTableGUI\$prefix.

Referenced by setId().

{
return $this->prefix;
}

+ Here is the caller graph for this function:

ilTable2GUI::getResetCommand ( )

Get reset filter command.

Returns
string reset command

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

References $reset_cmd.

{
}
ilTable2GUI::getSelectAllCheckbox ( )

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

Returns
string name of the checkbox

Reimplemented from ilTableGUI.

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

References ilTableGUI\$select_all_checkbox.

Referenced by fillFooter().

+ Here is the caller graph for this function:

ilTable2GUI::getTopAnchor ( )

Get top anchor.

Returns
string top anchor

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

References $top_anchor.

Referenced by render().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::getTopCommands ( )

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

Returns
boolean top commands true/false

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

References $top_commands.

Referenced by fillActionRow().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::initFilter ( )

Init filter.

Overwrite this to initialize all filter input property objects.

Reimplemented in ilMediaPoolTableGUI, ilQuestionBrowserTableGUI, ilUserTableGUI, ilEvaluationAllTableGUI, ilSurveyQuestionsTableGUI, ilSurveyQuestionbrowserTableGUI, ilTestQuestionBrowserTableGUI, ilSurveyQuestionblockbrowserTableGUI, ilPDNewsTableGUI, ilLPObjectsTableGUI, ilLPProgressTableGUI, and ilRoleAssignmentTableGUI.

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

Referenced by executeCommand().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::numericOrdering (   $a_field)

Should this field be sorted numeric?

Returns
boolean numeric ordering; default is false

Reimplemented in ilWikiPagesTableGUI, ilEvaluationAllTableGUI, ilTestAverageReachedPointsTableGUI, ilFileSystemTableGUI, ilForumStatisticsTableGUI, and ilPageHistoryTableGUI.

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

Referenced by ilAssessmentFolderLogAdministrationTableGUI\__construct(), and getHTML().

{
return false;
}

+ Here is the caller graph for this function:

ilTable2GUI::prepareOutput ( )
protected

Anything that must be done before HTML is generated.

Reimplemented in ilMediaPoolTableGUI, ilFileSystemTableGUI, and ilObjectTranslationTableGUI.

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

Referenced by getHTML().

{
}

+ Here is the caller graph for this function:

ilTable2GUI::render ( )

render table public

Reimplemented from ilTableGUI.

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

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

Referenced by getHTML().

{
global $lng;
$this->tpl->setVariable("CSS_TABLE",$this->getStyle("table"));
$this->tpl->setVariable("DATA_TABLE", (int) $this->getIsDataTable());
if ($this->getId() != "")
{
$this->tpl->setVariable("ID", 'id="'.$this->getId().'"');
}
// description
if ($this->getDescription() != "")
{
$this->tpl->setCurrentBlock("tbl_header_description");
$this->tpl->setVariable("TBL_DESCRIPTION", $this->getDescription());
$this->tpl->parseCurrentBlock();
}
$this->renderFilter();
if ($this->getDisplayAsBlock())
{
$this->tpl->touchBlock("outer_start_1");
$this->tpl->touchBlock("outer_end_1");
}
else
{
$this->tpl->touchBlock("outer_start_2");
$this->tpl->touchBlock("outer_end_2");
}
// table title and icon
if ($this->enabled["title"] && ($this->title != ""
|| $this->icon != "" || count($this->header_commands) > 0 ||
$this->headerHTML != "" || $this->close_command != ""))
{
if ($this->enabled["icon"])
{
$this->tpl->setCurrentBlock("tbl_header_title_icon");
$this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath($this->icon));
$this->tpl->setVariable("TBL_TITLE_IMG_ALT",$this->icon_alt);
$this->tpl->parseCurrentBlock();
}
foreach($this->header_commands as $command)
{
if ($command["img"] != "")
{
$this->tpl->setCurrentBlock("tbl_header_img_link");
if ($command["target"] != "")
{
$this->tpl->setVariable("TARGET_IMG_LINK",
'target="'.$command["target"].'"');
}
$this->tpl->setVariable("ALT_IMG_LINK", $command["text"]);
$this->tpl->setVariable("HREF_IMG_LINK", $command["href"]);
$this->tpl->setVariable("SRC_IMG_LINK",
$command["img"]);
$this->tpl->parseCurrentBlock();
}
else
{
$this->tpl->setCurrentBlock("head_cmd");
$this->tpl->setVariable("TXT_HEAD_CMD", $command["text"]);
$this->tpl->setVariable("HREF_HEAD_CMD", $command["href"]);
$this->tpl->parseCurrentBlock();
}
}
if (isset ($this->headerHTML)) {
$this->tpl->setCurrentBlock("tbl_header_html");
$this->tpl->setVariable ("HEADER_HTML", $this->headerHTML);
$this->tpl->parseCurrentBlock();
}
// close command
if ($this->close_command != "")
{
$this->tpl->setCurrentBlock("tbl_header_img_link");
$this->tpl->setVariable("ALT_IMG_LINK",$lng->txt("close"));
$this->tpl->setVariable("HREF_IMG_LINK",$this->close_command);
$this->tpl->setVariable("SRC_IMG_LINK",ilUtil::getImagePath("icon_close2.gif"));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("tbl_header_title");
$this->tpl->setVariable("TBL_TITLE",$this->title);
$this->tpl->setVariable("TOP_ANCHOR",$this->getTopAnchor());
if ($this->getDisplayAsBlock())
{
$this->tpl->setVariable("BLK_CLASS", "Block");
}
$this->tpl->parseCurrentBlock();
}
// table header
if ($this->enabled["header"])
{
$this->fillHeader();
}
$this->tpl->touchBlock("tbl_table_end");
return $this->tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::renderFilter ( )
private

Render Filter section.

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

References $filter, $lng, $tpl, getDisableFilterHiding(), getFilterCols(), getFilterItems(), getId(), and ilYuiUtil\initConnection().

Referenced by render().

{
global $lng, $tpl, $ilUser;
$filter = $this->getFilterItems();
$opt_filter = $this->getFilterItems(true);
if (count($filter) == 0 && count($opt_filter) == 0)
{
return;
}
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
$tpl->addJavascript("./Services/Table/js/ServiceTable.js");
// render standard filter
if (count($filter) > 0)
{
$ccnt = 0;
foreach ($filter as $item)
{
if ($ccnt >= $this->getFilterCols())
{
$this->tpl->setCurrentBlock("filter_row");
$this->tpl->parseCurrentBlock();
$ccnt = 0;
}
$this->tpl->setCurrentBlock("filter_item");
$this->tpl->setVariable("OPTION_NAME",
$item->getTitle());
$this->tpl->setVariable("F_INPUT_ID",
$item->getFieldId());
$this->tpl->setVariable("INPUT_HTML",
$item->getTableFilterHTML());
$this->tpl->parseCurrentBlock();
$ccnt++;
}
if ($ccnt < $this->getFilterCols())
{
for($i = $ccnt; $i<=$this->getFilterCols(); $i++)
{
$this->tpl->touchBlock("filter_empty_cell");
}
}
$this->tpl->setCurrentBlock("filter_row");
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("TXT_FILTER", $lng->txt("filter"));
if (!$this->getDisableFilterHiding())
{
$this->tpl->setVariable("TXT_HIDE", $lng->txt("hide"));
}
$this->tpl->setVariable("CMD_APPLY", $this->filter_cmd);
$this->tpl->setVariable("TXT_APPLY", $lng->txt("apply_filter"));
$this->tpl->setVariable("CMD_RESET", $this->reset_cmd);
$this->tpl->setVariable("TXT_RESET", $lng->txt("reset_filter"));
$this->tpl->setCurrentBlock("filter_section");
$this->tpl->setVariable("FIL_ID", $this->getId());
if ($this->getId() != "")
{
$this->tpl->setVariable("SAVE_URL", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
$this->getId()."&cmd=hideFilter&user_id=".$ilUser->getId());
}
$this->tpl->parseCurrentBlock();
// filter hidden?
include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
$tprop = new ilTablePropertiesStorage();
if ($tprop->getProperty($this->getId(), $ilUser->getId(), "filter") != 1)
{
if (!$this->getDisableFilterHiding())
{
$this->tpl->setCurrentBlock("filter_hidden");
$this->tpl->setVariable("FI_ID", $this->getId());
$this->tpl->parseCurrentBlock();
}
}
$this->tpl->setCurrentBlock("filter_activation");
$this->tpl->setVariable("TXT_ACTIVATE_FILTER", $lng->txt("show_filter"));
$this->tpl->setVariable("FILA_ID", $this->getId());
if ($this->getId() != "")
{
$this->tpl->setVariable("SAVE_URLA", "./ilias.php?baseClass=ilTablePropertiesStorage&table_id=".
$this->getId()."&cmd=showFilter&user_id=".$ilUser->getId());
}
$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::resetFilter ( )

Reset filter.

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

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

{
global $lng;
$filter = $this->getFilterItems();
$opt_filter = $this->getFilterItems(true);
foreach ($filter as $item)
{
if ($item->checkInput())
{
$item->setValueByArray($_POST);
$item->clearFromSession();
}
}
foreach ($opt_filter as $item)
{
if ($item->checkInput())
{
$item->setValueByArray($_POST);
$item->clearFromSession();
}
}
}

+ Here is the call graph for this function:

ilTable2GUI::resetOffset (   $a_in_determination = false)

Reset offset.

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

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

Referenced by determineOffsetAndOrder(), ilMailFolderTableGUI\fetchTableData(), and ilUserTableGUI\getItems().

{
if (!$this->nav_determined && !$a_in_determination)
{
}
$this->nav_value = $this->getOrderField().":".$this->getOrderDirection().":0";
$_GET[$this->getNavParameter()] =
$_POST[$this->getNavParameter()."1"] =
$this->nav_value;
//echo $this->nav_value;
$this->setOffset(0);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::setCloseCommand (   $a_link)

Add command for closing table.

Parameters
string$a_linkclosing link

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

Referenced by ilNewsForContextTableGUI\ilNewsForContextTableGUI().

{
$this->close_command = $a_link;
}

+ Here is the caller graph for this function:

ilTable2GUI::setCustomPreviousNext (   $a_prev_link,
  $a_next_link 
)

Set custom previous/next links.

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

{
$this->custom_prev_next = true;
$this->custom_prev = $a_prev_link;
$this->custom_next = $a_next_link;
}
ilTable2GUI::setData (   $a_data)
final

set table data public

Parameters
arraytable data

Reimplemented from ilTableGUI.

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

Referenced by iliLinkConfirmationTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilStyleTableGUI\__construct(), ilMailFolderTableGUI\fetchTableData(), ilClientListTableGUI\getClients(), ilComponentsTableGUI\getComponents(), ilWikiContributorsTableGUI\getContributors(), ilFileSystemTableGUI\getEntries(), ilPCImageMapTableGUI\getItems(), ilMediaPoolPageUsagesTableGUI\getItems(), ilMediaObjectUsagesTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilStyleImageTableGUI\getItems(), ilUserTableGUI\getItems(), ilStyleColorTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilLanguageTableGUI\getItems(), ilTableTemplatesTableGUI\getItems(), ilImageMapTableGUI\getItems(), ilAdminSubItemsTableGUI\getItems(), ilMediaPoolTableGUI\getItems(), ilLinksTableGUI\getLinks(), ilPageLayoutTableGUI\getPageLayouts(), ilWikiPagesTableGUI\getPages(), ilMilestoneResponsiblesTableGUI\getParticipantsAndResponsibles(), ilPluginsTableGUI\getPlugins(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), ilTestOutputGUI\outQuestionSummary(), ilLuceneAdvancedSearchActivationTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedUserListTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilWebResourceLinkTableGUI\parse(), ilECSCommunityTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilLDAPRoleAssignmentTableGUI\parse(), ilCalendarInboxSharedTableGUI\parse(), ilCalendarCategoryTableGUI\parse(), ilWebResourceEditableLinkTableGUI\parse(), ilCourseObjectiveMaterialAssignmentTableGUI\parse(), ilSessionParticipantsTableGUI\parse(), ilECSReleasedContentTableGUI\parse(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilECSImportedContentTableGUI\parse(), ilAdvancedMDFieldTableGUI\parseDefinitions(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilShopPersonalSettingsTopicsTableGUI\parseRecords(), ilShopTopicsTableGUI\parseRecords(), ilAdvancedMDRecordTableGUI\parseRecords(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilWebResourceEditableLinkTableGUI\parseSelectedLinks(), ilMDCopyrightTableGUI\parseSelections(), ilObjectCopySelectionTableGUI\parseSource(), ilRepositoryUserResultTableGUI\parseUserIds(), ilObjTestGUI\participantsObject(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilCalendarAppointmentsTableGUI\setAppointments(), ilCalendarChangedAppointmentsTableGUI\setAppointments(), and ilWebResourceEditableLinkTableGUI\updateFromPost().

{
$this->row_data = $a_data;
}

+ Here is the caller graph for this function:

ilTable2GUI::setDefaultOrderDirection (   $a_defaultorderdirection)

Set Default order direction.

Parameters
string$a_defaultorderdirectionDefault order direction

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

Referenced by ilPageHistoryTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilClientListTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilWikiContributorsTableGUI\getContributors(), ilWikiPagesTableGUI\getPages(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), and ilSpecialUsersTableGUI\ilSpecialUsersTableGUI().

{
$this->defaultorderdirection = $a_defaultorderdirection;
}

+ Here is the caller graph for this function:

ilTable2GUI::setDefaultOrderField (   $a_defaultorderfield)

Set Default order field.

Parameters
string$a_defaultorderfieldDefault order field

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

Referenced by ilPageHistoryTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilClientListTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilWikiContributorsTableGUI\getContributors(), ilWikiPagesTableGUI\getPages(), ilWikiRecentChangesTableGUI\getRecentChanges(), ilObjectivesAlignmentTableGUI\getScos(), ilComponentsTableGUI\ilComponentsTableGUI(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), and ilSessionParticipantsTableGUI\init().

{
$this->defaultorderfield = $a_defaultorderfield;
}

+ Here is the caller graph for this function:

ilTable2GUI::setDescription (   $a_val)

Set description.

Parameters
stringdescription

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

Referenced by ilUserFieldSettingsTableGUI\__construct(), ilStyleColorTableGUI\__construct(), and ilTestFixedParticipantsTableGUI\__construct().

{
$this->description = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setDisableFilterHiding (   $a_val = true)

Set disable filter hiding.

Parameters
booleandisable filter hiding

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

Referenced by ilRoleAssignmentTableGUI\__construct(), ilLPObjectsTableGUI\initFilter(), and ilLPProgressTableGUI\initFilter().

{
$this->disable_filter_hiding = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setDisplayAsBlock (   $a_val)

Set display as block.

Parameters
booleandisplay as block

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

Referenced by ilCalendarCategoryTableGUI\__construct().

{
$this->display_as_block = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setEnableHeader (   $a_enableheader)

Set Enable Header.

Parameters
boolean$a_enableheaderEnable Header

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

Referenced by ilExcDeliveredFilesTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilUserTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilStyleTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilComponentsTableGUI\ilComponentsTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), and ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI().

{
$this->enabled["header"] = $a_enableheader;
}

+ Here is the caller graph for this function:

ilTable2GUI::setEnableNumInfo (   $a_val)
ilTable2GUI::setEnableTitle (   $a_enabletitle)

Set Enable Title.

Parameters
boolean$a_enabletitleEnable Title

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

Referenced by ilExcDeliveredFilesTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilTrashTableGUI\__construct(), ilClientListTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilUserTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilStyleTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), and ilPDNewsTableGUI\ilPDNewsTableGUI().

{
$this->enabled["title"] = $a_enabletitle;
}

+ Here is the caller graph for this function:

ilTable2GUI::setExternalSegmentation (   $a_val)

Set external segmentation.

Parameters
booleandata is segmented externally

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

Referenced by ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), and ilMailFolderTableGUI\__construct().

{
$this->ext_seg = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setExternalSorting (   $a_val)

Set external sorting.

Parameters
booleandata is sorted externally

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

Referenced by ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), and ilMailFolderTableGUI\__construct().

{
$this->ext_sort = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setFilterCols (   $a_val)

Set filter columns.

Parameters
intnumber of filter columns

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

{
$this->filter_cols = $a_val;
}
ilTable2GUI::setFilterCommand (   $a_val)
ilTable2GUI::setFormAction (   $a_form_action)
final

Set Form action parameter.

Parameters
string$a_form_actionForm action

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), iliLinkConfirmationTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilStyleTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilAddressbookTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilComponentsTableGUI\ilComponentsTableGUI(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilNewsForContextTableGUI\ilNewsForContextTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), and ilSessionParticipantsTableGUI\init().

{
$this->form_action = $a_form_action;
}

+ Here is the caller graph for this function:

ilTable2GUI::setFormName (   $a_formname)

Set Form name.

Parameters
string$a_formnameForm name

Reimplemented from ilTableGUI.

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

Referenced by iliLinkConfirmationTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), and ilSessionParticipantsTableGUI\init().

{
$this->formname = $a_formname;
}

+ Here is the caller graph for this function:

ilTable2GUI::setHeaderHTML (   $html)

set header html

Parameters
string$html

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

{
$this->headerHTML = $html;
}
ilTable2GUI::setIsDataTable (   $a_val)

Set is data table.

Parameters
booleanis data table

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

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

{
$this->datatable = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setNoEntriesText (   $a_text)

Set text for an empty table.

Parameters
string$a_textText

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

Referenced by ilObjectivesAlignmentTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\parseRecords(), and ilShopTopicsTableGUI\parseRecords().

{
$this->noentriestext = $a_text;
}

+ Here is the caller graph for this function:

ilTable2GUI::setOrderField (   $a_order_field)

set order column

Parameters
string(array) field name for ordering

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

Referenced by determineOffsetAndOrder().

{
$this->order_field = $a_order_field;
}

+ Here is the caller graph for this function:

ilTable2GUI::setOrderLink (   $sort_field,
  $order_dir 
)

Reimplemented from ilTableGUI.

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

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

Referenced by fillHeader().

{
global $ilCtrl, $ilUser;
$hash = "";
if (is_object($ilUser) && $ilUser->prefs["screen_reader_optimization"])
{
$hash = "#".$this->getTopAnchor();
}
$old = $_GET[$this->getNavParameter()];
// set order link
$ilCtrl->setParameter($this->parent_obj,
$this->getNavParameter(),
$sort_field.":".$order_dir.":".$this->offset);
$this->tpl->setVariable("TBL_ORDER_LINK",
$ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd).$hash);
// set old value of nav variable
$ilCtrl->setParameter($this->parent_obj,
$this->getNavParameter(), $old);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::setPrefix (   $a_prefix)
final

set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) public

Parameters
stringprefix

Reimplemented from ilTableGUI.

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

Referenced by iliLinkConfirmationTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), and setId().

{
$this->prefix = $a_prefix;
}

+ Here is the caller graph for this function:

ilTable2GUI::setResetCommand (   $a_val)

Set reset filter command.

Parameters
stringreset command

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

Referenced by ilEvaluationAllTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), and ilQuestionBrowserTableGUI\__construct().

{
$this->reset_cmd = $a_val;
}

+ Here is the caller graph for this function:

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), iliLinkConfirmationTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilImageMapTableGUI\__construct(), ilStyleTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilRoleSelectionTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilAdvancedMDFieldTableGUI\__construct(), ilAdvancedMDRecordExportFilesTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilShibbolethRoleAssignmentTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilECSImportedContentTableGUI\__construct(), ilECSReleasedContentTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilCourseInfoFileTableGUI\__construct(), ilSessionFileTableGUI\__construct(), ilAdvancedMDRecordTableGUI\__construct(), ilLDAPRoleAssignmentTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\__construct(), ilShopTopicsTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilComponentsTableGUI\ilComponentsTableGUI(), ilFoundUsersTableGUI\ilFoundUsersTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMediaCastTableGUI\ilMediaCastTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilNewsForContextTableGUI\ilNewsForContextTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPDNewsTableGUI\ilPDNewsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilResultsByQuestionTableGUI\ilResultsByQuestionTableGUI(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), ilSpecialUsersTableGUI\ilSpecialUsersTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), and ilSessionParticipantsTableGUI\init().

{
$this->row_template = $a_template;
$this->row_template_dir = $a_template_dir;
}

+ Here is the caller graph for this function:

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

Reimplemented from ilTableGUI.

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), iliLinkMembersTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilTrashTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilAssignedUsersTableGUI\__construct(), ilUserTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilMailFolderTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarSharedListTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyExportTableGUI\__construct(), ilTestExportTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilCalendarSharedRoleListTableGUI\__construct(), ilCalendarSharedUserListTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilSCORM2004TrackingTableGUI\ilSCORM2004TrackingTableGUI(), and ilShopTopicsTableGUI\parseRecords().

{
$this->select_all_checkbox = $a_select_all_checkbox;
}

+ Here is the caller graph for this function:

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

Set title and title icon.

Reimplemented from ilTableGUI.

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

Referenced by ilChatSmiliesTableGUI\__construct(), ilChatRoomsTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilClientListTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilSearchResultTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilUserForTagTableGUI\__construct(), ilFileSystemTableGUI\__construct(), ilBookmarkAdministrationTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilObjectCopySelectionTableGUI\__construct(), ilLPObjectsTableGUI\__construct(), ilWebResourceEditableLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilMailSearchCoursesMembersTableGUI\__construct(), ilMailSearchCoursesTableGUI\__construct(), ilWebResourceLinkTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilObjectivesAlignmentTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilClipboardTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilStyleTableGUI\__construct(), ilECSCategoryMappingTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilSurveyInviteGroupsTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilSurveyInviteUsersTableGUI\__construct(), ilSurveyInviteRolesTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCalendarInboxSharedTableGUI\__construct(), ilECSSettingsGUI\communities(), ilComponentsTableGUI\ilComponentsTableGUI(), ilLinksTableGUI\ilLinksTableGUI(), ilMilestoneResponsiblesTableGUI\ilMilestoneResponsiblesTableGUI(), ilPCFileListTableGUI\ilPCFileListTableGUI(), ilPCTabsTableGUI\ilPCTabsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), ilSubItemSelectionTableGUI\ilSubItemSelectionTableGUI(), ilWikiContributorsTableGUI\ilWikiContributorsTableGUI(), ilWikiPagesTableGUI\ilWikiPagesTableGUI(), ilWikiRecentChangesTableGUI\ilWikiRecentChangesTableGUI(), ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI(), ilObjChatGUI\recordingsObject(), ilMailFolderTableGUI\setTitleData(), and ilTestEvaluationGUI\singleResults().

{
parent::setTitle($a_title, $a_icon, $a_icon_alt);
}

+ Here is the caller graph for this function:

ilTable2GUI::setTopAnchor (   $a_val)

Set top anchor.

Parameters
stringtop anchor

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

Referenced by ilBookmarkAdministrationTableGUI\__construct().

{
$this->top_anchor = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::setTopCommands (   $a_val)

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

Parameters
booleantop commands true/false

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

Referenced by ilUserTableGUI\__construct().

{
$this->top_commands = $a_val;
}

+ Here is the caller graph for this function:

ilTable2GUI::storeNavParameter ( )

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

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

Referenced by getHTML().

{
global $ilUser;
if ($this->getId() != "" && $ilUser->getId() != ANONYMOUS_USER_ID)
{
include_once("./Services/Table/classes/class.ilTablePropertiesStorage.php");
$tab_prop = new ilTablePropertiesStorage();
if ($this->getOrderField() != "")
{
$tab_prop->storeProperty($this->getId(), $ilUser->getId(), "order",
$this->getOrderField());
}
if ($this->getOrderDirection() != "")
{
$tab_prop->storeProperty($this->getId(), $ilUser->getId(), "direction",
$this->getOrderDirection());
}
//echo "-".$this->getOffset()."-";
if ($this->getOffset() !== "")
{
$tab_prop->storeProperty($this->getId(), $ilUser->getId(), "offset",
$this->getOffset());
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTable2GUI::writeFilterToSession ( )

Write filter values to session.

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

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

{
global $lng;
$filter = $this->getFilterItems();
$opt_filter = $this->getFilterItems(true);
foreach ($filter as $item)
{
if ($item->checkInput())
{
$item->setValueByArray($_POST);
$item->writeToSession();
}
}
foreach ($opt_filter as $item)
{
if ($item->checkInput())
{
$item->setValueByArray($_POST);
$item->writeToSession();
}
}
}

+ Here is the call graph for this function:

Field Documentation

ilTable2GUI::$close_command = ""
protected

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

ilTable2GUI::$disable_filter_hiding = false
protected

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

Referenced by getDisableFilterHiding().

ilTable2GUI::$ext_seg = false
protected

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

Referenced by getExternalSegmentation().

ilTable2GUI::$ext_sort = false
protected

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

Referenced by getExternalSorting().

ilTable2GUI::$filter_cmd = 'applyFilter'
protected

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

Referenced by getFilterCommand().

ilTable2GUI::$filter_cols = 4
protected

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

Referenced by getFilterCols().

ilTable2GUI::$filters = array()
protected

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

Referenced by getFilterItems().

ilTable2GUI::$headerHTML
private

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

ilTable2GUI::$mi_sel_buttons = null
protected

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

ilTable2GUI::$optional_filters = array()
protected

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

Referenced by getFilterItems().

ilTable2GUI::$reset_cmd = 'resetFilter'
protected

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

Referenced by getResetCommand().

ilTable2GUI::$top_anchor = "il_table_top"
protected

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

Referenced by getTopAnchor().

ilTable2GUI::$top_commands = false
protected

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

Referenced by getTopCommands().

ilTable2GUI::$unique_id
private

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

Referenced by __construct().


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