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

Class ilTableGUI. More...

+ Inheritance diagram for ilTableGUI:
+ Collaboration diagram for ilTableGUI:

Public Member Functions

 __construct ($a_data=0, $a_global_tpl=true)
 Constructor. More...
 
 setTemplate ($a_tpl)
 set template public More...
 
getTemplateObject ()
 
 setData ($a_data)
 set table data public More...
 
 getData ()
 
 setTitle ($a_title, $a_icon=0, $a_icon_alt=0)
 set table title public More...
 
 setHelp ($a_help_page, $a_help_icon, $a_help_icon_alt=0)
 set table help page public More...
 
 setHeaderNames ($a_header_names)
 set table header names public More...
 
 getColumnCount ()
 Returns the column count based on the number of the header row columns public. More...
 
 setHeaderVars ($a_header_vars, $a_header_params=0)
 set table header vars public More...
 
 setColumnWidth ($a_column_width)
 set table column widths public More...
 
 setOneColumnWidth ($a_column_width, $a_column_number)
 set one table column width public More...
 
 setMaxCount ($a_max_count)
 set max. More...
 
 setLimit ($a_limit=0, $a_default_limit=0)
 set max. More...
 
 getLimit ()
 Get limit. More...
 
 setPrefix ($a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) public More...
 
 setOffset ($a_offset)
 set dataset offset public More...
 
 getOffset ()
 Get offset. More...
 
 setOrderColumn ($a_order_column=0, $a_default_column=0)
 set order column public More...
 
 getOrderColumn ()
 Get order column. More...
 
 setOrderDirection ($a_order_direction)
 set order direction public More...
 
 getOrderDirection ()
 Get order direction. More...
 
 setFooter ($a_style, $a_previous=0, $a_next=0)
 set order direction public More...
 
 enable ($a_module_name)
 enables particular modules of table More...
 
 disable ($a_module_name)
 diesables particular modules of table More...
 
 sortData ()
 
 render ()
 render table public More...
 
 renderHeader ()
 
 setOrderLink ($key, $order_dir)
 
 setStyle ($a_element, $a_style)
 
 getStyle ($a_element)
 
 setBase ($a_base)
 Set Base script name (deprecated, only use this for workarounds). More...
 
 getBase ()
 Get Base script name (deprecated, only use this for workarounds). More...
 
 getFormName ()
 
 setFormName ($a_name="cmd")
 
 getSelectAllCheckbox ()
 
 setSelectAllCheckbox ($a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton ($btn_name, $btn_value)
 

Data Fields

 $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 ilTableGUI.

HTML table component

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilTableGUI::__construct (   $a_data = 0,
  $a_global_tpl = true 
)

Constructor.

Parameters
arraycontent data (optional)
booleanuse global template (default) public

Definition at line 87 of file class.ilTableGUI.php.

References $lng, $tpl, array, and setData().

88  {
89  global $ilias, $tpl, $lng;
90 
91  $this->global_tpl = $a_global_tpl;
92  $this->ilias = $ilias;
93  $this->header_vars = array();
94  $this->header_params = array();
95  $this->enabled["form"] = true;
96  $this->action_buttons = array();
97  if ($this->global_tpl)
98  {
99  $this->tpl = $tpl;
100  }
101  else
102  {
103  $this->tpl = new ilTemplate("tpl.table.html", true, true, "Services/Table");
104  }
105 
106  $this->lng = $lng;
107 
108  if (!$this->lng)
109  {
110  $this->lang_support = false;
111  }
112 
113  $this->setData($a_data);
114  }
global $tpl
Definition: ilias.php:8
special template class to simplify handling of ITX/PEAR
setData($a_data)
set table data public
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:

Member Function Documentation

◆ addActionButton()

ilTableGUI::addActionButton (   $btn_name,
  $btn_value 
)

Definition at line 849 of file class.ilTableGUI.php.

References array.

850  {
851  array_push($this->action_buttons,
852  array(
853  "name" => $btn_name,
854  "value" => $btn_value
855  )
856  );
857  }
Create styles array
The data for the language used.

◆ clearActionButtons()

ilTableGUI::clearActionButtons ( )

Definition at line 837 of file class.ilTableGUI.php.

References array.

838  {
839  $this->action_buttons = array();
840  }
Create styles array
The data for the language used.

◆ disable()

ilTableGUI::disable (   $a_module_name)

diesables particular modules of table

DEPRECATED for Table2GUI: Use setEnable<Section>() of Table2GUI instead

public

Parameters
stringmodule name

Definition at line 442 of file class.ilTableGUI.php.

Referenced by ilTestDetailedEvaluationStatisticsTableGUI\__construct(), ilQuestionPoolImportVerificationTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilLanguageTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilObjectTranslation2TableGUI\__construct(), ilObjectTranslationTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilConfirmationTableGUI\__construct(), ilClientListTableGUI\__construct(), ilSetupLanguageTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilRepDependenciesTableGUI\__construct(), ilStyleTableGUI\__construct(), ilUserFieldSettingsTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilCustomUserFieldSettingsTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilRendererTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilFileVersionTableGUI\__construct(), ilExAssignmentPeerReviewTableGUI\__construct(), ilPresentationListTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), SurveyMaterialsSourceTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilLuceneAdvancedSearchActivationTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), ilTestPassOverviewTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilRoleTableGUI\init(), ilAssQuestionHintsTableGUI\initAdministrationColumns(), ilQuestionCumulatedStatisticsTableGUI\initData(), ilForumTopicTableGUI\initMergeThreadsTable(), ilTestPassManualScoringOverviewTableGUI\initOrdering(), and ilAuthLoginPageEditorTableGUI\initTable().

443  {
444  if (!in_array($a_module_name,array_keys($this->enabled)))
445  {
446  return false;
447  }
448 
449  $this->enabled[$a_module_name] = false;
450  }
+ Here is the caller graph for this function:

◆ enable()

ilTableGUI::enable (   $a_module_name)

enables particular modules of table

DEPRECATED for Table2GUI: Use setEnable...<Section>() of Table2GUI instead

public

Parameters
stringmodule name

Definition at line 424 of file class.ilTableGUI.php.

Referenced by ilObjectCustomUserFieldsTableGUI\__construct(), ilTestAverageReachedPointsTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilForumStatisticsTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilCalendarCategoryTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilSessionParticipantsTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilTestQuestionBrowserTableGUI\__construct(), ilTestRandomQuestionSetNonAvailablePoolsTableGUI\build(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\build(), assFileUploadFileTableGUI\initCommand(), ilTestManScoringParticipantsTableGUI\initOrdering(), ilConsultationHourGroupTableGUI\initTable(), ilConsultationHourBookingTableGUI\initTable(), ilSCORMOfflineModeUsersTableGUI\initTable(), ilAuthLoginPageEditorTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), ilConditionHandlerTableGUI\initTable(), and ilLPCollectionSettingsTableGUI\initTable().

425  {
426  if (!in_array($a_module_name,array_keys($this->enabled)))
427  {
428  return false;
429  }
430 
431  $this->enabled[$a_module_name] = true;
432  }
+ Here is the caller graph for this function:

◆ getBase()

ilTableGUI::getBase ( )

Get Base script name (deprecated, only use this for workarounds).

Returns
string Base script name (deprecated, only use this for workarounds)

Definition at line 787 of file class.ilTableGUI.php.

References $base.

Referenced by render().

788  {
789  return $this->base;
790  }
+ Here is the caller graph for this function:

◆ getColumnCount()

ilTableGUI::getColumnCount ( )

Returns the column count based on the number of the header row columns public.

Returns
int Number of columns

Definition at line 212 of file class.ilTableGUI.php.

References $column_count.

Referenced by ilTable2GUI\fillFooter(), and render().

213  {
214  return $this->column_count;
215  }
+ Here is the caller graph for this function:

◆ getData()

ilTableGUI::getData ( )

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

References $data.

146  {
147  return $this->data;
148  }

◆ getFormName()

ilTableGUI::getFormName ( )

Definition at line 797 of file class.ilTableGUI.php.

References $form_name.

Referenced by render().

798  {
799  return $this->form_name;
800  }
+ Here is the caller graph for this function:

◆ getLimit()

ilTableGUI::getLimit ( )

Get limit.

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

References $limit.

300  {
301  return $this->limit;
302  }

◆ getOffset()

ilTableGUI::getOffset ( )

Get offset.

Definition at line 328 of file class.ilTableGUI.php.

References $offset.

329  {
330  return $this->offset;
331  }

◆ getOrderColumn()

ilTableGUI::getOrderColumn ( )

Get order column.

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

References $order_column.

370  {
371  return $this->order_column;
372  }

◆ getOrderDirection()

◆ getSelectAllCheckbox()

ilTableGUI::getSelectAllCheckbox ( )

Definition at line 817 of file class.ilTableGUI.php.

References $select_all_checkbox.

Referenced by render().

818  {
820  }
+ Here is the caller graph for this function:

◆ getStyle()

ilTableGUI::getStyle (   $a_element)

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

Referenced by ilDclTableListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), and ilTable2GUI\render().

768  {
769  return $this->styles[$a_element];
770  }
+ Here is the caller graph for this function:

◆ getTemplateObject()

& ilTableGUI::getTemplateObject ( )

Definition at line 127 of file class.ilTableGUI.php.

References $tpl.

128  {
129  return $this->tpl;
130  }
global $tpl
Definition: ilias.php:8

◆ render()

ilTableGUI::render ( )

render table public

Definition at line 466 of file class.ilTableGUI.php.

References $_SERVER, $_SESSION, $layout, $limit, $max_count, $params, $start, array, data, getBase(), getColumnCount(), getFormName(), ilUtil\getImagePath(), getSelectAllCheckbox(), ilUtil\Linkbar(), renderHeader(), setMaxCount(), sortData(), and ilUtil\switchColor().

467  {
468  if($this->enabled['table'])
469  {
470  $this->tpl->setVariable("CSS_TABLE", "table table-striped" /* $this->getStyle("table") */);
471  }
472 
473  // table title icon
474  if ($this->enabled["icon"] && $this->enabled["title"])
475  {
476  $this->tpl->setCurrentBlock("tbl_header_title_icon");
477  $this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath($this->icon));
478  $this->tpl->setVariable("TBL_TITLE_IMG_ALT",$this->icon_alt);
479  $this->tpl->parseCurrentBlock();
480  }
481  // table title help
482  if ($this->enabled["help"] && $this->enabled["title"])
483  {
484  $this->tpl->setCurrentBlock("tbl_header_title_help");
485  $this->tpl->setVariable("TBL_HELP_IMG",ilUtil::getImagePath($this->help_icon));
486  $this->tpl->setVariable("TBL_HELP_LINK",$this->help_page);
487  $this->tpl->setVariable("TBL_HELP_IMG_ALT",$this->help_icon_alt);
488  $this->tpl->parseCurrentBlock();
489  }
490 
491  // hits per page selector
492  if ($this->enabled["hits"] && $this->enabled["title"])
493  {
494  $this->tpl->setCurrentBlock("tbl_header_hits_page");
495  $this->tpl->setVariable("LIMIT",$_SESSION["tbl_limit"]);
496  $this->tpl->setVariable("HITS_PER_PAGE",$this->lng->txt("hits_per_page"));
497  $this->tpl->parseCurrentBlock();
498  }
499 
500  // table title
501  if ($this->enabled["title"])
502  {
503  $this->tpl->setCurrentBlock("tbl_header_title");
504  $this->tpl->setVariable("COLUMN_COUNT",$this->column_count);
505  $this->tpl->setVariable("TBL_TITLE",$this->title);
506  $this->tpl->parseCurrentBlock();
507  }
508 
509  // table header
510  if ($this->enabled["header"])
511  {
512  $this->renderHeader();
513  }
514 
515  // table data
516  // the table content may be skipped to use an individual template blockfile
517  // To do so don't set $this->data and parse your table content by yourself
518  // The template block name for the blockfile MUST be 'TBL_CONTENT'
519 
520  if ($this->enabled["content"] && is_array($this->data))
521  {
522  if($this->enabled['auto_sort'])
523  {
524  $this->setMaxCount(count($this->data));
525  $this->sortData();
526  }
527  $count = 0;
528 
529  foreach ($this->data as $tbl_content_row)
530  {
531  foreach ($tbl_content_row as $key => $tbl_content_cell)
532  {
533  if (is_array($tbl_content_cell))
534  {
535  $this->tpl->setCurrentBlock("tbl_cell_subtitle");
536  $this->tpl->setVariable("TBL_CELL_SUBTITLE",$tbl_content_cell[1]);
537  $this->tpl->parseCurrentBlock();
538  $tbl_content_cell = "<b>".$tbl_content_cell[0]."</b>";
539  }
540 
541  $this->tpl->setCurrentBlock("tbl_content_cell");
542  $this->tpl->setVariable("TBL_CONTENT_CELL",$tbl_content_cell);
543  $this->tpl->parseCurrentBlock();
544  }
545 
546  $this->tpl->setCurrentBlock("tbl_content_row");
547  $rowcolor = ilUtil::switchColor($count,"tblrow1","tblrow2");
548  $this->tpl->setVariable("ROWCOLOR", $rowcolor);
549  $this->tpl->parseCurrentBlock();
550 
551  $count++;
552  }
553  }
554  // select all checkbox
555  if ($this->enabled["select_all"])
556  {
557  if ((strlen($this->getFormName())) && (strlen($this->getSelectAllCheckbox())))
558  {
559  $this->tpl->setVariable('SELECT_PREFIX',$this->prefix);
560  $this->tpl->setVariable("SELECT_ALL_TXT_SELECT_ALL", $this->lng->txt("select_all"));
561  $this->tpl->setVariable("SELECT_ALL_CHECKBOX_NAME", $this->getSelectAllCheckbox());
562  $this->tpl->setVariable("SELECT_ALL_FORM_NAME", $this->getFormName());
563  if (!($this->enabled["numinfo"] && $this->enabled["footer"]))
564  {
565  $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
566  }
567  }
568  }
569 
570  // table header numinfo
571  if ($this->enabled["numinfo_header"])
572  {
573  $start = $this->offset + 1; // compute num info
574  $end = $this->offset + $this->limit;
575 
576  if ($end > $this->max_count or $this->limit == 0)
577  {
578  $end = $this->max_count;
579  }
580 
581  if ($this->lang_support)
582  {
583  $numinfo = "(".$this->lng->txt("dataset")." ".$start." - ".$end." ".strtolower($this->lng->txt("of"))." ".$this->max_count.")";
584  }
585  else
586  {
587  $numinfo = "(Dataset ".$start." - ".$end." of ".$this->max_count.")";
588  }
589  if ($this->max_count > 0)
590  {
591  //$numinfo = $this->lng->txt("no_datasets");
592  $this->tpl->setCurrentBlock("tbl_header_numinfo");
593  $this->tpl->setVariable("NUMINFO_HEADER", $numinfo);
594  $this->tpl->setVariable("COLUMN_COUNT_HEADER", $this->getColumnCount());
595  $this->tpl->parseCurrentBlock();
596  }
597  }
598  // table footer numinfo
599  if ($this->enabled["numinfo"] && $this->enabled["footer"])
600  {
601  $start = $this->offset + 1; // compute num info
602  $end = $this->offset + $this->limit;
603 
604  if ($end > $this->max_count or $this->limit == 0)
605  {
606  $end = $this->max_count;
607  }
608 
609  if ($this->lang_support)
610  {
611  $numinfo = "(".$this->lng->txt("dataset")." ".$start." - ".$end." ".strtolower($this->lng->txt("of"))." ".$this->max_count.")";
612  }
613  else
614  {
615  $numinfo = "(Dataset ".$start." - ".$end." of ".$this->max_count.")";
616  }
617  if ($this->max_count > 0)
618  {
619  //$numinfo = $this->lng->txt("no_datasets");
620  $this->tpl->setCurrentBlock("tbl_footer_numinfo");
621  $this->tpl->setVariable("NUMINFO", $numinfo);
622  $this->tpl->parseCurrentBlock();
623  }
624  }
625  // table footer linkbar
626  if ($this->enabled["linkbar"] && $this->enabled["footer"] && $this->limit != 0
627  && $this->max_count > 0)
628  {
629  $params = array(
630  $this->prefix."sort_by" => $this->header_vars[$this->order_column],
631  $this->prefix."sort_order" => $this->order_direction
632  );
633  $params = array_merge($this->header_params,$params);
634 
635  $layout = array(
636  "link" => $this->footer_style,
637  "prev" => $this->footer_previous,
638  "next" => $this->footer_next,
639  );
640 
641  $base = ($this->getBase() == "")
642  ? basename($_SERVER["PHP_SELF"])
643  : $this->getBase();
644 
645  $linkbar = ilUtil::Linkbar($base,$this->max_count,$this->limit,$this->offset,$params,$layout, $this->prefix);
646  $this->tpl->setCurrentBlock("tbl_footer_linkbar");
647  $this->tpl->setVariable("LINKBAR", $linkbar);
648  $this->tpl->parseCurrentBlock();
649  }
650 
651  // table footer
652  if ($this->enabled["footer"] && $this->max_count > 0)
653  {
654  $this->tpl->setCurrentBlock("tbl_footer");
655  $this->tpl->setVariable("FOOTER_COLUMN_COUNT",$this->column_count);
656  $this->tpl->parseCurrentBlock();
657  }
658 
659  // action buttons
660  if ($this->enabled["action"] && is_array($this->action_buttons))
661  {
662  foreach ($this->action_buttons as $button)
663  {
664  $this->tpl->setCurrentBlock("tbl_action_btn");
665  $this->tpl->setVariable("BTN_NAME", $button["name"]);
666  $this->tpl->setVariable("BTN_VALUE", $button["value"]);
667  $this->tpl->parseCurrentBlock();
668  }
669  $this->tpl->setCurrentBlock("tbl_action_row");
670  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
671  $this->tpl->setVariable("ALT_ARROW", $this->lng->txt("arrow_downright.svg"));
672  $this->tpl->setVariable("COLUMN_COUNTS", $this->getColumnCount());
673  $this->tpl->parseCurrentBlock();
674  }
675 
676  if ($this->enabled["form"])
677  {
678  $this->tpl->touchBlock("tbl_form_footer");
679  }
680 
681  if($this->enabled['table'])
682  {
683  $this->tpl->touchBlock("tbl_table_end");
684  }
685 
686  if (!$this->global_tpl)
687  {
688  return $this->tpl->get();
689  }
690  }
Add some data
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$_SESSION["AccountId"]
getColumnCount()
Returns the column count based on the number of the header row columns public.
static Linkbar($AScript, $AHits, $ALimit, $AOffset, $AParams=array(), $ALayout=array(), $prefix='')
Linkbar Diese Funktion erzeugt einen typischen Navigationsbalken mit "Previous"- und "Next"-Links und...
getBase()
Get Base script name (deprecated, only use this for workarounds).
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Create styles array
The data for the language used.
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
setMaxCount($a_max_count)
set max.
$params
Definition: example_049.php:96
+ Here is the call graph for this function:

◆ renderHeader()

ilTableGUI::renderHeader ( )

Definition at line 692 of file class.ilTableGUI.php.

References $lang_support, and setOrderLink().

Referenced by render().

693  {
694  foreach ($this->header_names as $key => $tbl_header_cell)
695  {
696  if (!$this->enabled["sort"])
697  {
698  $this->tpl->setCurrentBlock("tbl_header_no_link");
699  if ($this->column_width[$key])
700  {
701  $this->tpl->setVariable("TBL_COLUMN_WIDTH_NO_LINK"," width=\"".$this->column_width[$key]."\"");
702  }
703  $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK",$tbl_header_cell);
704  $this->tpl->parseCurrentBlock();
705  continue;
706  }
707  if (($key == $this->order_column) && ($this->order_direction != ""))
708  {
709  if (strcmp($this->header_vars[$key], "") != 0)
710  {
711  $this->tpl->setCurrentBlock("tbl_order_image");
712  $this->tpl->parseCurrentBlock();
713  }
714  }
715 
716  $this->tpl->setCurrentBlock("tbl_header_cell");
717  $this->tpl->setVariable("TBL_HEADER_CELL",$tbl_header_cell);
718 
719  // only set width if a value is given for that column
720  if ($this->column_width[$key])
721  {
722  $this->tpl->setVariable("TBL_COLUMN_WIDTH"," width=\"".$this->column_width[$key]."\"");
723  }
724 
725  $lng_sort_column = ($this->lang_support) ? $this->lng->txt("sort_by_this_column") : "Sort by this column";
726  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_sort_column);
727 
728  $order_dir = "asc";
729 
730  if ($key == $this->order_column)
731  {
732  $order_dir = $this->sort_order;
733 
734  $lng_change_sort = ($this->lang_support) ? $this->lng->txt("change_sort_direction") : "Change sort direction";
735  $this->tpl->setVariable("TBL_ORDER_ALT",$lng_change_sort);
736  }
737 
738  $this->setOrderLink($key, $order_dir);
739  $this->tpl->parseCurrentBlock();
740  }
741 
742  $this->tpl->setCurrentBlock("tbl_header");
743  $this->tpl->parseCurrentBlock();
744  }
setOrderLink($key, $order_dir)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBase()

ilTableGUI::setBase (   $a_base)

Set Base script name (deprecated, only use this for workarounds).

Parameters
string$a_baseBase script name (deprecated, only use this for workarounds)

Definition at line 777 of file class.ilTableGUI.php.

References base().

778  {
779  $this->base = $a_base;
780  }
base()
Definition: base.php:2
+ Here is the call graph for this function:

◆ setColumnWidth()

ilTableGUI::setColumnWidth (   $a_column_width)

set table column widths public

Parameters
arraycolumn widths

Definition at line 247 of file class.ilTableGUI.php.

248  {
249  $this->column_width = $a_column_width;
250  }

◆ setData()

ilTableGUI::setData (   $a_data)

set table data public

Parameters
arraytable data

Definition at line 137 of file class.ilTableGUI.php.

References data.

Referenced by __construct().

138  {
139  if (is_array($a_data))
140  {
141  $this->data = $a_data;
142  }
143  }
Add some data
+ Here is the caller graph for this function:

◆ setFooter()

ilTableGUI::setFooter (   $a_style,
  $a_previous = 0,
  $a_next = 0 
)

set order direction public

Parameters
stringcss format for links
stringvalue of previous link
stringvalue of next link

Definition at line 408 of file class.ilTableGUI.php.

Referenced by ilTable2GUI\getHTML().

409  {
410  $this->footer_style = $a_style;
411 
412  $this->footer_previous = ($a_previous) ? $a_previous : "<<<";
413  $this->footer_next = ($a_next) ? $a_next : ">>>";
414  }
+ Here is the caller graph for this function:

◆ setFormName()

ilTableGUI::setFormName (   $a_name = "cmd")

Definition at line 807 of file class.ilTableGUI.php.

808  {
809  $this->form_name = $a_name;
810  }

◆ setHeaderNames()

ilTableGUI::setHeaderNames (   $a_header_names)

set table header names public

Parameters
arraytable header names

Definition at line 201 of file class.ilTableGUI.php.

202  {
203  $this->header_names = $a_header_names;
204  $this->column_count = count($this->header_names);
205  }

◆ setHeaderVars()

ilTableGUI::setHeaderVars (   $a_header_vars,
  $a_header_params = 0 
)

set table header vars public

Parameters
arraytable header vars
arrayadditional link params

Definition at line 223 of file class.ilTableGUI.php.

224  {
225  $this->header_vars = $a_header_vars;
226 
227  if ($a_header_params == 0 or !is_array($a_header_params))
228  {
229  $this->link_params = "";
230  }
231  else
232  {
233  $this->header_params = $a_header_params; // temp. solution for linkbar
234 
235  foreach ($a_header_params as $key => $val)
236  {
237  $this->link_params .= $key."=".$val."&";
238  }
239  }
240  }

◆ setHelp()

ilTableGUI::setHelp (   $a_help_page,
  $a_help_icon,
  $a_help_icon_alt = 0 
)

set table help page public

Parameters
stringhelp page file name
stringfile name of help icon
stringalternative text for help icon

Definition at line 184 of file class.ilTableGUI.php.

References $help_icon.

185  {
186  $this->help_page = $a_help_page;
187  $this->help_icon = $a_help_icon;
188  $this->help_icon_alt = $a_help_icon_alt;
189 
190  if (!$this->help_icon_alt)
191  {
192  $this->help_icon_alt = $this->help_icon;
193  }
194  }

◆ setLimit()

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

set max.

datasets displayed per page public

Parameters
integerlimit
integerdefault limit

Definition at line 286 of file class.ilTableGUI.php.

287  {
288  $this->limit = ($a_limit) ? $a_limit : $a_default_limit;
289 
290  if ($this->limit == 0)
291  {
292  $this->max_limit = true;
293  }
294  }

◆ setMaxCount()

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

Parameters
integermax_count

Definition at line 270 of file class.ilTableGUI.php.

References $max_count.

Referenced by ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilMilestoneResponsiblesTableGUI\__construct(), ilLMDownloadTableGUI\__construct(), ilTable2GUI\getHTML(), ilUserLPTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilRatingCategoryTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilCourseParticipantsGroupsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilLogComponentTableGUI\parse(), ilUserClipboardTableGUI\parse(), ilRoleTableGUI\parse(), ilTermsOfServiceTableGUI\populate(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), render(), and arIndexTableGUI\setOrderAndSegmentation().

271  {
272  $this->max_count = $a_max_count;
273 
274  if ($this->max_limit)
275  {
276  $this->limit = $this->max_count;
277  }
278  }
+ Here is the caller graph for this function:

◆ setOffset()

ilTableGUI::setOffset (   $a_offset)

set dataset offset public

Parameters
integeroffset

Definition at line 320 of file class.ilTableGUI.php.

Referenced by ilTable2GUI\determineOffsetAndOrder(), and ilTable2GUI\resetOffset().

321  {
322  $this->offset = ($a_offset) ? $a_offset : 0;
323  }
+ Here is the caller graph for this function:

◆ setOneColumnWidth()

ilTableGUI::setOneColumnWidth (   $a_column_width,
  $a_column_number 
)

set one table column width public

Parameters
stringcolumn width
integercolumn number

Definition at line 258 of file class.ilTableGUI.php.

259  {
260  $this->column_width[$a_column_number] = $a_column_width;
261  }

◆ setOrderColumn()

ilTableGUI::setOrderColumn (   $a_order_column = 0,
  $a_default_column = 0 
)

set order column public

Parameters
stringorder column
stringdefault column

Definition at line 339 of file class.ilTableGUI.php.

Referenced by ilUserClipboardTableGUI\init(), and ilObjectTableGUI\init().

340  {
341  // set default sort column to first column
342  if (empty($a_order_column))
343  {
344  if (!empty($a_default_column))
345  {
346  $this->order_column = array_search($a_default_column,$this->header_vars);
347  }
348  else
349  {
350  $this->order_column = 0;
351  return;
352  }
353  }
354  else
355  {
356  $this->order_column = array_search($a_order_column,$this->header_vars);
357  }
358 
359  if ($this->order_column === false)
360  {
361  // if not found, set default sort column to first column
362  $this->order_column = 0;
363  }
364  }
+ Here is the caller graph for this function:

◆ setOrderDirection()

ilTableGUI::setOrderDirection (   $a_order_direction)

set order direction public

Parameters
stringorder direction

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

Referenced by ilTable2GUI\determineOffsetAndOrder(), and ilCalendarManageTableGUI\resetToDefaults().

380  {
381  if (strtolower($a_order_direction) == "desc")
382  {
383  $this->order_direction = "desc";
384  $this->sort_order = "asc";
385  }
386  else
387  {
388  $this->order_direction = "asc"; // set default sort order to "ASC"
389  $this->sort_order = "desc";
390  }
391  }
+ Here is the caller graph for this function:

◆ setOrderLink()

ilTableGUI::setOrderLink (   $key,
  $order_dir 
)

Definition at line 746 of file class.ilTableGUI.php.

References $_SERVER.

Referenced by renderHeader().

747  {
748  $this->tpl->setVariable("TBL_ORDER_LINK",basename($_SERVER["PHP_SELF"])."?".$this->link_params.$this->prefix."sort_by=".$this->header_vars[$key]."&".$this->prefix."sort_order=".$order_dir."&".$this->prefix."offset=".$this->offset);
749  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
+ Here is the caller graph for this function:

◆ setPrefix()

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

Parameters
stringprefix

Definition at line 310 of file class.ilTableGUI.php.

311  {
312  $this->prefix = ($a_prefix) ? $a_prefix : "";
313  }

◆ setSelectAllCheckbox()

ilTableGUI::setSelectAllCheckbox (   $a_select_all_checkbox)

Definition at line 827 of file class.ilTableGUI.php.

828  {
829  $this->select_all_checkbox = $a_select_all_checkbox;
830  }

◆ setStyle()

ilTableGUI::setStyle (   $a_element,
  $a_style 
)

Definition at line 757 of file class.ilTableGUI.php.

Referenced by ilTestAverageReachedPointsTableGUI\__construct(), ilTestPassManualScoringOverviewTableGUI\__construct(), ilAssessmentFolderLogAdministrationTableGUI\__construct(), ilTestAggregatedResultsTableGUI\__construct(), ilTestInviteGroupsTableGUI\__construct(), ilTestInviteRolesTableGUI\__construct(), ilTestInviteUsersTableGUI\__construct(), ilAssessmentFolderLogTableGUI\__construct(), ilTestHistoryTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilEvaluationAllTableGUI\__construct(), ilTestFixedParticipantsTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilTestManScoringParticipantsTableGUI\__construct(), ilTestParticipantsTableGUI\__construct(), ilDclTableListTableGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ilListOfQuestionsTableGUI\__construct(), ilDclTableViewTableGUI\__construct(), ilSurveyMaterialsTableGUI\__construct(), ilTestDynamicQuestionSetStatisticTableGUI\__construct(), ilTestQuestionsTableGUI\__construct(), ilSurveyInvitedUsersTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilSurveySavePhraseTableGUI\__construct(), ilSurveyPhrasesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSCORM2004ExportTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), and ilTestQuestionBrowserTableGUI\__construct().

758  {
759  $this->styles[$a_element] = $a_style;
760  }
+ Here is the caller graph for this function:

◆ setTemplate()

ilTableGUI::setTemplate (   $a_tpl)

set template public

Parameters
objecttemplate object

Definition at line 122 of file class.ilTableGUI.php.

123  {
124  $this->tpl = $a_tpl;
125  }

◆ setTitle()

ilTableGUI::setTitle (   $a_title,
  $a_icon = 0,
  $a_icon_alt = 0 
)

set table title public

Parameters
stringtable title
stringfile name of title icon
stringalternative text for title icon

Definition at line 157 of file class.ilTableGUI.php.

References $icon.

158  {
159  $this->title = $a_title;
160  $this->icon = $a_icon;
161  $this->icon_alt = $a_icon_alt;
162 
163  if (!$this->icon)
164  {
165  $this->enabled["icon"] = false;
166 
167  return;
168  }
169 
170  if (!$this->icon_alt)
171  {
172  $this->icon_alt = $this->icon;
173  }
174  $this->enabled["icon"] = true;
175  }

◆ sortData()

ilTableGUI::sortData ( )

Definition at line 453 of file class.ilTableGUI.php.

References data, and ilUtil\sortArray().

Referenced by render().

454  {
455  if($this->enabled["sort"])
456  {
457  $this->data = ilUtil::sortArray($this->data,$this->order_column,$this->order_direction);
458  }
459  $this->data = array_slice($this->data,$this->offset,$this->limit);
460  }
Add some data
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $action_buttons

ilTableGUI::$action_buttons

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

◆ $base

ilTableGUI::$base = ""

Definition at line 55 of file class.ilTableGUI.php.

Referenced by ilLPTableBaseGUI\buildValueScale(), and getBase().

◆ $column_count

ilTableGUI::$column_count

Definition at line 34 of file class.ilTableGUI.php.

Referenced by getColumnCount().

◆ $column_width

ilTableGUI::$column_width

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

Referenced by ilObjectRolePermissionTableGUI\initColumns().

◆ $data

ilTableGUI::$data

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

Referenced by ilCourseStartObjectsTableGUI\__construct(), ilContainerStartObjectsTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilAccessKeyTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilAssQuestionHintsTableGUI\__construct(), ilCourseGroupingAssignmentTableGUI\__formatPath(), ilDclRecordListTableGUI\buildData(), ilSurveySyncTableGUI\buildPath(), ilObjectOwnershipManagementTableGUI\buildPath(), ilCalendarCategoryTableGUI\buildPath(), ilLPTableBaseGUI\buildPath(), arIndexTableGUI\checkColumnVisibile(), ilTimingOverviewTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilTestAggregatedResultsTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), SurveyMaterialsSourceTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilTestInviteGroupsTableGUI\fillRow(), ilTestInviteRolesTableGUI\fillRow(), ilTestInviteUsersTableGUI\fillRow(), ilSurveyCodesEditTableGUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilSurveyMaterialsTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), ilSurveySavePhraseTableGUI\fillRow(), ilTestAverageReachedPointsTableGUI\fillRow(), ilTestSkillLevelThresholdsTableGUI\fillRow(), ilSurveyInvitedUsersTableGUI\fillRow(), ilSurveyCodesTableGUI\fillRow(), ilAssQuestionSkillUsagesTableGUI\fillRow(), ilSurveyResultsUserTableGUI\fillRow(), ilSurveyPhrasesTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilSurveyMaintenanceTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilSurveyAppraiseesTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilTestDynamicQuestionSetStatisticTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilSurveyResultsCumulatedTableGUI\fillRow(), ilSCORM2004TrackingItemsTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilEvaluationAllTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTestQuestionBrowserTableGUI\fillRow(), ilRoleDesktopItemsTableGUI\formatPath(), ilComponentsTableGUI\getComponents(), ilModulesTableGUI\getComponents(), getData(), ilBenchmarkTableGUI\getDataByFirstTable(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilLPTableBaseGUI\getExportMeta(), ilMemberExportFileTableGUI\getFiles(), ilNewItemGroupTableGUI\getGroups(), ilTable2GUI\getHTML(), ilTestSkillLevelThresholdsTableGUI\getInputElements(), ilSurveyParticipantsTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilTestVerificationTableGUI\getItems(), ilSCORMVerificationTableGUI\getItems(), ilRoleDesktopItemsTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilCourseGroupingAssignmentTableGUI\getItems(), ilLPObjectStatisticsAdminTableGUI\getItems(), ilRatingCategoryTableGUI\getItems(), ilPollUserTableGUI\getItems(), ilExAssignmentTeamLogTableGUI\getItems(), ilCourseGroupingTableGUI\getItems(), ilPortfolioTableGUI\getItems(), ilExcCriteriaTableGUI\getItems(), ilExcCriteriaCatalogueTableGUI\getItems(), ilBadgeTypesTableGUI\getItems(), ilBadgeImageTemplateTableGUI\getItems(), ilLicenseOverviewTableGUI\getItems(), ilContributorTableGUI\getItems(), ilPortfolioPageTableGUI\getItems(), ilLanguageTableGUI\getItems(), ilPollAnswerTableGUI\getItems(), ilWikiExportOrderTableGUI\getItems(), ilRbacLogTableGUI\getItems(), ilExAssignmentPeerReviewOverviewTableGUI\getItems(), ilExAssignmentPeerReviewTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilBadgePersonalTableGUI\getItems(), ilObjectBadgeTableGUI\getItems(), ilSessionOverviewTableGUI\getItems(), ilBadgeTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilSurveyResultsCumulatedTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilLPProgressTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilCronManagerTableGUI\getItems(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilTrSummaryTableGUI\getItemsPercentages(), ilTrSummaryTableGUI\getItemsPercentagesStatus(), ilCourseStartObjectsTableGUI\getPossibleObjects(), ilContainerStartObjectsTableGUI\getPossibleObjects(), ilSurveySkillAssignmentTableGUI\getQuestions(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilSurveySkillTableGUI\getSkills(), ilCourseStartObjectsTableGUI\getStartObjects(), ilContainerStartObjectsTableGUI\getStartObjects(), ilLDAPServerTableGUI\importData(), ilWorkspaceAccessTableGUI\importData(), ilSurveyQuestionTableGUI\importData(), ilWorkspaceShareTableGUI\importData(), ilImageMapTableGUI\initActions(), ilPCIIMTriggerTableGUI\initActions(), ilOrgUnitTypeTableGUI\initColumns(), ilStudyProgrammeTypeTableGUI\initColumns(), ilSurveyQuestionblockbrowserTableGUI\initData(), ilMarkSchemaTableGUI\initData(), ilSurveyQuestionbrowserTableGUI\initData(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilObjectOwnershipManagementTableGUI\initItems(), SurveyConstraintsTableGUI\initItems(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilForumTopicTableGUI\numericOrdering(), ilSCORMTrackingItemsPerScoTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilSCORMOfflineModeUsersTableGUI\parse(), ilSCORMTrackingItemsPerUserTableGUI\parse(), ilSCORMTrackingItemsScoTableGUI\parse(), ilDidacticTemplateSettingsTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilExAssignmentListTextTableGUI\parse(), ilSCGroupTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilECSNodeMappingTreeTableGUI\parse(), ilSCTaskTableGUI\parse(), ilCalendarInboxSharedTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExParticipantTableGUI\parseData(), ilExerciseMemberTableGUI\parseData(), ilDclTableViewEditFieldsTableGUI\parseData(), ilOrgUnitOtherRolesTableGUI\parseData(), ilOrgUnitStaffTableGUI\parseData(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilLOTestAssignmentTableGUI\parseMultipleAssignments(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilOrgUnitOtherRolesTableGUI\parseRows(), ilOrgUnitStaffTableGUI\parseRows(), ilRepositoryUserResultTableGUI\parseUserIds(), ilBuddySystemRelationsTableGUI\populate(), ilTermsOfServiceTableGUI\populate(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilTrSummaryTableGUI\renderPercentages(), ilTable2GUI\restoreTemplate(), and ilDclRecordListTableGUI\setRecordData().

◆ $enabled

ilTableGUI::$enabled
Initial value:
= array( "table" => true,
"title" => true,
"icon" => true,
"help" => false,
"content" => true,
"action" => false,
"header" => true,
"footer" => true,
"linkbar" => true,
"numinfo" => true,
"numinfo_header" => false,
"sort" => true,
"hits" => false,
"auto_sort" => true,
"select_all" => false
)

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

◆ $footer_next

ilTableGUI::$footer_next

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

◆ $footer_previous

ilTableGUI::$footer_previous

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

◆ $footer_style

ilTableGUI::$footer_style

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

◆ $form_name

ilTableGUI::$form_name

Definition at line 50 of file class.ilTableGUI.php.

Referenced by getFormName().

◆ $global_tpl

ilTableGUI::$global_tpl

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

◆ $header_names

ilTableGUI::$header_names

Definition at line 28 of file class.ilTableGUI.php.

◆ $header_vars

ilTableGUI::$header_vars

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

◆ $help_icon

ilTableGUI::$help_icon

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

Referenced by setHelp().

◆ $help_icon_alt

ilTableGUI::$help_icon_alt

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

◆ $help_page

ilTableGUI::$help_page

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

◆ $icon

◆ $icon_alt

ilTableGUI::$icon_alt

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

Referenced by ilWorkspaceShareTableGUI\fillRow().

◆ $lang_support

ilTableGUI::$lang_support = true

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

Referenced by renderHeader().

◆ $limit

◆ $linkbar_vars

ilTableGUI::$linkbar_vars

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

◆ $max_count

ilTableGUI::$max_count

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

Referenced by ilTable2GUI\fillFooter(), render(), and setMaxCount().

◆ $max_limit

ilTableGUI::$max_limit = false

Definition at line 39 of file class.ilTableGUI.php.

◆ $offset

ilTableGUI::$offset

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

Referenced by ilStudyProgrammeMembersTableGUI\fetchData(), and getOffset().

◆ $order_column

ilTableGUI::$order_column

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

Referenced by getOrderColumn().

◆ $order_direction

ilTableGUI::$order_direction

◆ $prefix

◆ $select_all_checkbox

ilTableGUI::$select_all_checkbox

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

Referenced by getSelectAllCheckbox(), and ilTable2GUI\getSelectAllCheckbox().

◆ $styles

ilTableGUI::$styles
Initial value:
"table" => "fullwidth"
)

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

◆ $title

ilTableGUI::$title

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

Referenced by ilNotificationSettingsTable\__construct(), ilBadgeUserTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilDclRecordListTableGUI\buildData(), ilTable2GUI\fillHeaderCSV(), ilTable2GUI\fillHeaderExcel(), ilLDAPRoleMappingTableGUI\fillRow(), ilWikiSearchResultsTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilStudyProgrammeIndividualPlanTableGUI\fillRow(), ilAdvancedMDRecordExportFilesTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilLOTestAssignmentTableGUI\fillRow(), ilCourseParticipantsGroupsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilContributorTableGUI\getItems(), ilTrMatrixTableGUI\getSelectableColumns(), ilSurveySyncTableGUI\importData(), ilWorkspaceAccessTableGUI\importData(), ilObjectBadgeTableGUI\initFilter(), ilBadgeTableGUI\initFilter(), ilBookingObjectsTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilRoleTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilBadgePersonalTableGUI\initFilters(), SurveyConstraintsTableGUI\initItems(), ilLOTestAssignmentTableGUI\parse(), ilRoleTableGUI\parse(), ilLinkCheckerTableGUI\prepareHTML(), ilMediaPoolTableGUI\render(), and ilCalendarAppointmentsTableGUI\setAppointments().


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