ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilTableGUI. More...
Public Member Functions | |
ilTableGUI ($a_data=0, $a_global_tpl=true) | |
Constructor. | |
setTemplate (&$a_tpl) | |
set template public | |
& | getTemplateObject () |
setData ($a_data) | |
set table data public | |
getData () | |
setTitle ($a_title, $a_icon=0, $a_icon_alt=0) | |
set table title public | |
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. | |
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 | |
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 public | |
disable ($a_module_name) | |
diesables particular modules of table public | |
sortData () | |
render () | |
render table public | |
renderHeader () | |
setOrderLink ($key, $order_dir) | |
setStyle ($a_element, $a_style) | |
getStyle ($a_element) | |
setBase ($a_base) | |
Set Base script name (deprecated, only use this for workarounds). | |
getBase () | |
Get Base script name (deprecated, only use this for workarounds). | |
getFormName () | |
setFormName ($a_name="cmd") | |
getSelectAllCheckbox () | |
setSelectAllCheckbox ($a_select_all_checkbox) | |
clearActionButtons () | |
addActionButton ($btn_name, $btn_value) |
Class ilTableGUI.
HTML table component
Definition at line 37 of file class.ilTableGUI.php.
ilTableGUI::addActionButton | ( | $btn_name, | |
$btn_value | |||
) |
Definition at line 863 of file class.ilTableGUI.php.
ilTableGUI::clearActionButtons | ( | ) |
Definition at line 851 of file class.ilTableGUI.php.
ilTableGUI::disable | ( | $a_module_name | ) |
diesables particular modules of table public
string | module name |
Definition at line 455 of file class.ilTableGUI.php.
Referenced by ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilShopPersonalSettingsTopicsTableGUI\parseRecords(), and ilShopTopicsTableGUI\parseRecords().
ilTableGUI::enable | ( | $a_module_name | ) |
enables particular modules of table public
string | module name |
Definition at line 440 of file class.ilTableGUI.php.
Referenced by ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), and ilSessionParticipantsTableGUI\init().
ilTableGUI::getBase | ( | ) |
Get Base script name (deprecated, only use this for workarounds).
Definition at line 801 of file class.ilTableGUI.php.
References $base.
Referenced by render().
ilTableGUI::getColumnCount | ( | ) |
Returns the column count based on the number of the header row columns public.
Definition at line 231 of file class.ilTableGUI.php.
References $column_count.
Referenced by ilTable2GUI\fillActionRow(), ilTable2GUI\fillFooter(), and render().
ilTableGUI::getData | ( | ) |
Reimplemented in ilTable2GUI.
Definition at line 164 of file class.ilTableGUI.php.
References $data.
ilTableGUI::getFormName | ( | ) |
Reimplemented in ilTable2GUI.
Definition at line 811 of file class.ilTableGUI.php.
References $form_name.
Referenced by render().
ilTableGUI::getLimit | ( | ) |
Get limit.
Definition at line 318 of file class.ilTableGUI.php.
References $limit.
Referenced by ilTable2GUI\getHTML(), and ilTable2GUI\getLinkbar().
ilTableGUI::getOffset | ( | ) |
Get offset.
Definition at line 347 of file class.ilTableGUI.php.
References $offset.
Referenced by ilTable2GUI\getHTML(), and ilTable2GUI\getLinkbar().
ilTableGUI::getOrderColumn | ( | ) |
ilTableGUI::getOrderDirection | ( | ) |
Get order direction.
Definition at line 415 of file class.ilTableGUI.php.
References $order_direction.
Referenced by ilTable2GUI\getHTML(), and ilTable2GUI\getLinkbar().
ilTableGUI::getSelectAllCheckbox | ( | ) |
Reimplemented in ilTable2GUI.
Definition at line 831 of file class.ilTableGUI.php.
References $select_all_checkbox.
Referenced by render().
ilTableGUI::getStyle | ( | $a_element | ) |
Definition at line 781 of file class.ilTableGUI.php.
Referenced by render(), and ilTable2GUI\render().
& ilTableGUI::getTemplateObject | ( | ) |
ilTableGUI::ilTableGUI | ( | $a_data = 0 , |
|
$a_global_tpl = true |
|||
) |
Constructor.
array | content data (optional) |
boolean | use global template (default) public |
Definition at line 106 of file class.ilTableGUI.php.
References $lng, $tpl, and setData().
ilTableGUI::render | ( | ) |
render table public
Reimplemented in ilTable2GUI.
Definition at line 479 of file class.ilTableGUI.php.
References $_SESSION, $base, $limit, $max_count, getBase(), getColumnCount(), getFormName(), ilUtil\getImagePath(), getSelectAllCheckbox(), getStyle(), ilUtil\Linkbar(), renderHeader(), setMaxCount(), sortData(), and ilUtil\switchColor().
ilTableGUI::renderHeader | ( | ) |
Definition at line 705 of file class.ilTableGUI.php.
References $lang_support, ilUtil\getImagePath(), and setOrderLink().
Referenced by render().
ilTableGUI::setBase | ( | $a_base | ) |
Set Base script name (deprecated, only use this for workarounds).
string | $a_base | Base script name (deprecated, only use this for workarounds) |
Definition at line 791 of file class.ilTableGUI.php.
ilTableGUI::setColumnWidth | ( | $a_column_width | ) |
set table column widths public
array | column widths |
Definition at line 266 of file class.ilTableGUI.php.
ilTableGUI::setData | ( | $a_data | ) |
set table data public
array | table data |
Reimplemented in ilTable2GUI.
Definition at line 156 of file class.ilTableGUI.php.
Referenced by ilTableGUI().
ilTableGUI::setFooter | ( | $a_style, | |
$a_previous = 0 , |
|||
$a_next = 0 |
|||
) |
set order direction public
string | css format for links |
string | value of previous link |
string | value of next link |
Definition at line 427 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\getHTML().
ilTableGUI::setFormName | ( | $a_name = "cmd" | ) |
Reimplemented in ilTable2GUI.
Definition at line 821 of file class.ilTableGUI.php.
ilTableGUI::setHeaderNames | ( | $a_header_names | ) |
set table header names public
array | table header names |
Definition at line 220 of file class.ilTableGUI.php.
ilTableGUI::setHeaderVars | ( | $a_header_vars, | |
$a_header_params = 0 |
|||
) |
set table header vars public
array | table header vars |
array | additional link params |
Definition at line 242 of file class.ilTableGUI.php.
ilTableGUI::setHelp | ( | $a_help_page, | |
$a_help_icon, | |||
$a_help_icon_alt = 0 |
|||
) |
set table help page public
string | help page file name |
string | file name of help icon |
string | alternative text for help icon |
Definition at line 203 of file class.ilTableGUI.php.
References $help_icon.
ilTableGUI::setLimit | ( | $a_limit = 0 , |
|
$a_default_limit = 0 |
|||
) |
set max.
datasets displayed per page public
integer | limit |
integer | default limit |
Definition at line 305 of file class.ilTableGUI.php.
Referenced by ilCourseObjectiveQuestionsTableGUI\__construct(), ilTable2GUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveMaterialAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilComponentsTableGUI\ilComponentsTableGUI(), ilPluginsTableGUI\ilPluginsTableGUI(), and ilWikiSearchResultsTableGUI\ilWikiSearchResultsTableGUI().
ilTableGUI::setMaxCount | ( | $a_max_count | ) |
set max.
count of database query you don't need to set max count if using integrated content rendering feature if max_limit is true, no limit is given -> set limit to max_count public
integer | max_count |
Definition at line 289 of file class.ilTableGUI.php.
References $max_count.
Referenced by ilTable2GUI\getHTML(), and render().
ilTableGUI::setOffset | ( | $a_offset | ) |
set dataset offset public
integer | offset |
Definition at line 339 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\getHTML().
ilTableGUI::setOneColumnWidth | ( | $a_column_width, | |
$a_column_number | |||
) |
set one table column width public
string | column width |
integer | column number |
Definition at line 277 of file class.ilTableGUI.php.
ilTableGUI::setOrderColumn | ( | $a_order_column = 0 , |
|
$a_default_column = 0 |
|||
) |
set order column public
string | order column |
string | default column |
Definition at line 358 of file class.ilTableGUI.php.
ilTableGUI::setOrderDirection | ( | $a_order_direction | ) |
set order direction public
string | order direction |
Definition at line 398 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\getHTML().
ilTableGUI::setOrderLink | ( | $key, | |
$order_dir | |||
) |
Reimplemented in ilTable2GUI.
Definition at line 760 of file class.ilTableGUI.php.
Referenced by renderHeader().
ilTableGUI::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
string | prefix |
Reimplemented in ilTable2GUI.
Definition at line 329 of file class.ilTableGUI.php.
ilTableGUI::setSelectAllCheckbox | ( | $a_select_all_checkbox | ) |
Reimplemented in ilTable2GUI.
Definition at line 841 of file class.ilTableGUI.php.
ilTableGUI::setStyle | ( | $a_element, | |
$a_style | |||
) |
Definition at line 771 of file class.ilTableGUI.php.
ilTableGUI::setTemplate | ( | & | $a_tpl | ) |
set template public
object | template object |
Definition at line 141 of file class.ilTableGUI.php.
ilTableGUI::setTitle | ( | $a_title, | |
$a_icon = 0 , |
|||
$a_icon_alt = 0 |
|||
) |
set table title public
string | table title |
string | file name of title icon |
string | alternative text for title icon |
Reimplemented in ilTable2GUI.
Definition at line 176 of file class.ilTableGUI.php.
References $icon.
ilTableGUI::sortData | ( | ) |
Definition at line 466 of file class.ilTableGUI.php.
References ilUtil\sortArray().
Referenced by render().
ilTableGUI::$action_buttons |
Definition at line 71 of file class.ilTableGUI.php.
ilTableGUI::$base = "" |
Definition at line 74 of file class.ilTableGUI.php.
ilTableGUI::$column_count |
Definition at line 53 of file class.ilTableGUI.php.
Referenced by getColumnCount().
ilTableGUI::$column_width |
Definition at line 54 of file class.ilTableGUI.php.
ilTableGUI::$data |
Definition at line 51 of file class.ilTableGUI.php.
Referenced by ilImageMapTableGUI\__construct(), ilCalendarCategoryTableGUI\buildPath(), ilCourseObjectivesTableGUI\fillRow(), getData(), ilTable2GUI\getHTML(), ilCalendarSharedListTableGUI\parse(), ilCalendarInboxSharedTableGUI\parse(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), and ilSubscriberTableGUI\readSubscriberData().
ilTableGUI::$enabled |
Definition at line 77 of file class.ilTableGUI.php.
ilTableGUI::$footer_next |
Definition at line 65 of file class.ilTableGUI.php.
ilTableGUI::$footer_previous |
Definition at line 64 of file class.ilTableGUI.php.
ilTableGUI::$footer_style |
Definition at line 63 of file class.ilTableGUI.php.
ilTableGUI::$form_name |
Definition at line 69 of file class.ilTableGUI.php.
Referenced by getFormName().
ilTableGUI::$global_tpl |
Definition at line 68 of file class.ilTableGUI.php.
ilTableGUI::$header_names |
Definition at line 47 of file class.ilTableGUI.php.
ilTableGUI::$header_vars |
Definition at line 48 of file class.ilTableGUI.php.
ilTableGUI::$help_icon |
Definition at line 44 of file class.ilTableGUI.php.
Referenced by setHelp().
ilTableGUI::$help_icon_alt |
Definition at line 45 of file class.ilTableGUI.php.
ilTableGUI::$help_page |
Definition at line 43 of file class.ilTableGUI.php.
ilTableGUI::$icon |
Definition at line 40 of file class.ilTableGUI.php.
Referenced by setTitle().
ilTableGUI::$icon_alt |
Definition at line 41 of file class.ilTableGUI.php.
ilTableGUI::$lang_support = true |
Definition at line 67 of file class.ilTableGUI.php.
Referenced by renderHeader().
ilTableGUI::$limit |
Definition at line 57 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\fillFooter(), getLimit(), and render().
ilTableGUI::$linkbar_vars |
Definition at line 49 of file class.ilTableGUI.php.
ilTableGUI::$max_count |
Definition at line 56 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\fillFooter(), render(), and setMaxCount().
ilTableGUI::$max_limit = false |
Definition at line 58 of file class.ilTableGUI.php.
ilTableGUI::$offset |
Definition at line 59 of file class.ilTableGUI.php.
Referenced by getOffset().
ilTableGUI::$order_column |
Definition at line 60 of file class.ilTableGUI.php.
Referenced by getOrderColumn().
ilTableGUI::$order_direction |
Definition at line 61 of file class.ilTableGUI.php.
Referenced by getOrderDirection().
ilTableGUI::$prefix |
Definition at line 73 of file class.ilTableGUI.php.
Referenced by ilWaitingListTableGUI\fillRow(), and ilSubscriberTableGUI\fillRow().
ilTableGUI::$select_all_checkbox |
Definition at line 70 of file class.ilTableGUI.php.
Referenced by ilTable2GUI\getSelectAllCheckbox(), and getSelectAllCheckbox().
ilTableGUI::$styles |
Definition at line 95 of file class.ilTableGUI.php.
ilTableGUI::$title |
Definition at line 39 of file class.ilTableGUI.php.
Referenced by ilCourseEditParticipantsTableGUI\__construct(), ilWikiSearchResultsTableGUI\fillRow(), ilAdvancedMDRecordExportFilesTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), and ilCourseObjectivesTableGUI\fillRow().