ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTableGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct (array $a_data=[], bool $a_global_tpl=true)
 
 setTemplate (ilTemplate $a_tpl)
 
 getTemplateObject ()
 
 setData (array $a_data)
 Set table data. More...
 
 getData ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setHelp (string $a_help_page, string $a_help_icon, string $a_help_icon_alt="")
 
 setHeaderNames (array $a_header_names)
 
 getColumnCount ()
 
 setHeaderVars (array $a_header_vars, array $a_header_params=[])
 
 setColumnWidth (array $a_column_width)
 set table column widths More...
 
 setOneColumnWidth (string $a_column_width, int $a_column_number)
 
 setMaxCount (int $a_max_count)
 set max. More...
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 set max. More...
 
 getLimit ()
 
 setPrefix (string $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) More...
 
 setOffset (int $a_offset)
 set dataset offset More...
 
 getOffset ()
 
 setOrderColumn (string $a_order_column="", string $a_default_column="")
 
 getOrderColumn ()
 
 setOrderDirection (string $a_order_direction)
 
 getOrderDirection ()
 
 setFooter (string $a_style, string $a_previous="", string $a_next="")
 
 enable (string $a_module_name)
 
 disable (string $a_module_name)
 
 sortData ()
 
 render ()
 
 renderHeader ()
 
 setOrderLink (string $key, string $order_dir)
 
 setStyle (string $a_element, string $a_style)
 
 getStyle (string $a_element)
 
 setBase (string $a_base)
 
 getBase ()
 
 getFormName ()
 get the name of the parent form More...
 
 setFormName (string $a_name="cmd")
 
 getSelectAllCheckbox ()
 get the name of the checkbox that should be toggled with a select all button More...
 
 setSelectAllCheckbox (string $a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton (string $btn_name, string $btn_value)
 

Static Public Member Functions

static linkbar (string $AScript, int $AHits, int $ALimit, int $AOffset, array $AParams=array(), array $ALayout=array(), string $prefix='')
 

Data Fields

string $title = ""
 
string $icon = ""
 
string $icon_alt = ""
 
string $help_page = ""
 
string $help_icon = ""
 
string $help_icon_alt = ""
 
array $header_names = []
 
array $header_vars = []
 
array $linkbar_vars = []
 
array $data = []
 
int $column_count = 0
 
array $column_width = []
 
int $max_count = 0
 
int $limit = 0
 
bool $max_limit = false
 
int $offset = 0
 
string $order_column = ""
 
string $order_direction = ""
 
string $footer_style = ""
 
string $footer_previous = ""
 
string $footer_next = ""
 
bool $lang_support = true
 
bool $global_tpl = false
 
string $form_name = ""
 
string $select_all_checkbox = ""
 
array $action_buttons = []
 
string $prefix = ""
 
string $base = ""
 
array $enabled
 
array $styles
 

Protected Attributes

string $sort_order
 
string $link_params
 
array $header_params
 
 $tpl
 
ilLanguage $lng
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning HTML table component

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Deprecated:
with ILIAS 12

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

Constructor & Destructor Documentation

◆ __construct()

ilTableGUI::__construct ( array  $a_data = [],
bool  $a_global_tpl = true 
)
Parameters
array | null$a_datacontent data (optional)
bool$a_global_tplcontent data (optional)

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

96 {
97 global $DIC;
98
99 $tpl = $DIC->ui()->mainTemplate();
100 $lng = $DIC->language();
101
102 $this->global_tpl = $a_global_tpl;
103 $this->header_vars = array();
104 $this->header_params = array();
105 $this->enabled["form"] = true;
106 $this->action_buttons = array();
107 if ($this->global_tpl) {
108 $this->tpl = $tpl;
109 } else {
110 $this->tpl = new ilTemplate("tpl.table.html", true, true, "components/ILIAS/Table");
111 }
112
113 $this->lng = $lng;
114
115 if (!$this->lng) {
116 $this->lang_support = false;
117 }
118
119 $this->setData($a_data);
120 }
ilLanguage $lng
setData(array $a_data)
Set table data.
special template class to simplify handling of ITX/PEAR
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, $tpl, ILIAS\Repository\lng(), and setData().

+ Here is the call graph for this function:

Member Function Documentation

◆ addActionButton()

ilTableGUI::addActionButton ( string  $btn_name,
string  $btn_value 
)

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

733 : void
734 {
735 $this->action_buttons[] = array(
736 "name" => $btn_name,
737 "value" => $btn_value
738 );
739 }

◆ clearActionButtons()

ilTableGUI::clearActionButtons ( )

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

728 : void
729 {
730 $this->action_buttons = array();
731 }

◆ disable()

ilTableGUI::disable ( string  $a_module_name)
Deprecated:
Use setEnable<Section>() of Table2GUI instead

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

331 : void
332 {
333 if (!in_array($a_module_name, array_keys($this->enabled))) {
334 return;
335 }
336
337 $this->enabled[$a_module_name] = false;
338 }

Referenced by ilQuestionBrowserTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilInstallationHeadingTableGUI\__construct(), ilTestPassDetailsOverviewTableGUI\__construct(), ilECSCommunityTableGUI\__construct(), ilFileVersionsTableGUI\__construct(), ilLearningSequenceEditParticipantsTableGUI\__construct(), ilStudyProgrammeAutoCategoriesTableGUI\__construct(), ilStudyProgrammeAutoMembershipsTableGUI\__construct(), ilObjectRolePermissionTableGUI\__construct(), ilTestPassOverviewTableGUI\__construct(), ILIAS\Style\Content\CharacteristicTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilMultilingualismTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilExAssignmentPeerReviewOverviewTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilObjectRoleTemplateOptionsTableGUI\__construct(), ilOrgUnitPermissionTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilObjectRoleTemplatePermissionTableGUI\__construct(), ilRoleTableGUI\init(), ilLOMemberTestResultTableGUI\init(), ilCourseReferenceDeleteConfirmationTableGUI\init(), ilTestPassOverviewTableGUI\init(), ilQuestionCumulatedStatisticsTableGUI\initData(), ilForumTopicTableGUI\initMergeThreadsTable(), and ILIAS\Test\Scoring\Manual\TestScoringByParticipantPassesOverviewTableGUI\initOrdering().

+ Here is the caller graph for this function:

◆ enable()

ilTableGUI::enable ( string  $a_module_name)
Deprecated:
Use setEnable...<Section>() of Table2GUI instead

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

319 : void
320 {
321 if (!in_array($a_module_name, array_keys($this->enabled))) {
322 return;
323 }
324
325 $this->enabled[$a_module_name] = true;
326 }

Referenced by ilQuestionBrowserTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilRepositoryUserResultTableGUI\__construct(), ilRepositoryObjectResultTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilLearningSequenceEditParticipantsTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilCourseObjectiveQuestionsTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantTableGUI\__construct(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantPassesOverviewTableGUI\__construct(), ilAdvancedMDRecordLanguageTableGUI\init(), ilTrashTableGUI\init(), ilSessionParticipantsTableGUI\init(), ilUserExportFileTableGUI\init(), assFileUploadFileTableGUI\initCommand(), ilLearningSequenceParticipantsTableGUI\initForm(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantTableGUI\initOrdering(), ilConsultationHourBookingTableGUI\initTable(), ilSCORMTrackingUsersTableGUI\initTable(), and ilLPCollectionSettingsTableGUI\initTable().

+ Here is the caller graph for this function:

◆ getBase()

ilTableGUI::getBase ( )

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

697 : string
698 {
699 return $this->base;
700 }

◆ getColumnCount()

ilTableGUI::getColumnCount ( )

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

185 : int
186 {
187 return $this->column_count;
188 }

References $column_count.

◆ getData()

ilTableGUI::getData ( )

Reimplemented in ilTable2GUI.

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

140 : array
141 {
142 return $this->data;
143 }

References $data.

◆ getFormName()

ilTableGUI::getFormName ( )

get the name of the parent form

Reimplemented in ilTable2GUI.

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

705 : string
706 {
707 return $this->form_name;
708 }

◆ getLimit()

ilTableGUI::getLimit ( )

Reimplemented in ilTable2GUI.

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

239 : int
240 {
241 return $this->limit;
242 }

References $limit.

◆ getOffset()

ilTableGUI::getOffset ( )

Reimplemented in ilTable2GUI.

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

262 : int
263 {
264 return $this->offset;
265 }

References $offset.

◆ getOrderColumn()

ilTableGUI::getOrderColumn ( )

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

285 : string
286 {
287 return $this->order_column;
288 }
string $order_column

◆ getOrderDirection()

ilTableGUI::getOrderDirection ( )

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

301 : string
302 {
304 }
string $order_direction

Referenced by ilSessionMaterialsTableGUI\getDataFromDb(), ilFileSystemTableGUI\getEntries(), ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantTableGUI\getInternalyOrderedDataValues(), ilAssignedUsersTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserLPTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilStudyProgrammeMembersTableGUI\getOrdering(), ilUserTableGUI\getUserIdsForFilter(), ilCmiXapiStatementsGUI\initLimitingAndOrdering(), ilLTIConsumerXapiStatementsGUI\initLimitingAndOrdering(), ilCourseParticipantsTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilLearningSequenceParticipantsTableGUI\parse(), ilTrashTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\parseData(), ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\parseData(), ilMStListCoursesTableGUI\parseData(), ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\parseData(), ilMStShowUserCoursesTableGUI\parseData(), ilAccessibilityTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\populate(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), and ilTable2GUI\resetOffset().

+ Here is the caller graph for this function:

◆ getSelectAllCheckbox()

ilTableGUI::getSelectAllCheckbox ( )

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

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

718 : string
719 {
721 }
string $select_all_checkbox

◆ getStyle()

ilTableGUI::getStyle ( string  $a_element)

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

684 : string
685 {
686 return $this->styles[$a_element];
687 }

Referenced by ilDclFieldListTableGUI\__construct().

+ Here is the caller graph for this function:

◆ getTemplateObject()

ilTableGUI::getTemplateObject ( )

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

127 : ilTemplate
128 {
129 return $this->tpl;
130 }

References $tpl.

◆ linkbar()

static ilTableGUI::linkbar ( string  $AScript,
int  $AHits,
int  $ALimit,
int  $AOffset,
array  $AParams = array(),
array  $ALayout = array(),
string  $prefix = '' 
)
static

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

542 : string {
543 $LinkBar = "";
544 $params = "";
545
546 $layout_link = "";
547 $layout_prev = "&lt;&lt;";
548 $layout_next = "&gt;&gt;";
549
550 // layout options
551 if ((is_array($ALayout) && (count($ALayout) > 0))) {
552 if ($ALayout["link"]) {
553 $layout_link = " class=\"" . $ALayout["link"] . "\"";
554 }
555
556 if ($ALayout["prev"]) {
557 $layout_prev = $ALayout["prev"];
558 }
559
560 if ($ALayout["next"]) {
561 $layout_next = $ALayout["next"];
562 }
563 }
564
565 // show links, if hits greater limit
566 // or offset > 0 (can be > 0 due to former setting)
567 if ($AHits > $ALimit || $AOffset > 0) {
568 if (!empty($AParams)) {
569 foreach ($AParams as $key => $value) {
570 $params .= $key . "=" . $value . "&";
571 }
572 }
573 // if ($params) $params = substr($params,0,-1);
574 if (strpos($AScript, '&')) {
575 $link = $AScript . "&" . $params . $prefix . "offset=";
576 } else {
577 $link = $AScript . "?" . $params . $prefix . "offset=";
578 }
579
580 // ?bergehe "zurck"-link, wenn offset 0 ist.
581 if ($AOffset >= 1) {
582 $prevoffset = $AOffset - $ALimit;
583 if ($prevoffset < 0) {
584 $prevoffset = 0;
585 }
586 $LinkBar .= "<a" . $layout_link . " href=\"" . $link . $prevoffset . "\">" . $layout_prev . "&nbsp;</a>";
587 }
588
589 // Ben?tigte Seitenzahl kalkulieren
590 $pages = intval($AHits / $ALimit);
591
592 // Wenn ein Rest bleibt, addiere eine Seite
593 if (($AHits % $ALimit)) {
594 $pages++;
595 }
596
597 // Bei Offset = 0 keine Seitenzahlen anzeigen : DEAKTIVIERT
598 // if ($AOffset != 0) {
599
600 // ansonsten zeige Links zu den anderen Seiten an
601 for ($i = 1 ;$i <= $pages ; $i++) {
602 $newoffset = $ALimit * ($i - 1);
603
604 if ($newoffset == $AOffset) {
605 $LinkBar .= "[" . $i . "] ";
606 } else {
607 $LinkBar .= '<a ' . $layout_link . ' href="' .
608 $link . $newoffset . '">[' . $i . ']</a> ';
609 }
610 }
611 // }
612
613 // Checken, ob letze Seite erreicht ist
614 // Wenn nicht, gebe einen "Weiter"-Link aus
615 if (!(($AOffset / $ALimit) == ($pages - 1)) && ($pages != 1)) {
616 $newoffset = $AOffset + $ALimit;
617 $LinkBar .= "<a" . $layout_link . " href=\"" . $link . $newoffset . "\">&nbsp;" . $layout_next . "</a>";
618 }
619
620 return $LinkBar;
621 }
622 return "";
623 }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

◆ render()

ilTableGUI::render ( )

Reimplemented in ilExerciseSubmissionTableGUI, ILIAS\LegalDocuments\Legacy\Table, ilMediaPoolTableGUI, and ilTable2GUI.

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

349 : string
350 {
351 if ($this->enabled['table']) {
352 $this->tpl->setVariable("CSS_TABLE", "table table-striped" /* $this->getStyle("table") */);
353 }
354
355 // table title icon
356 if ($this->enabled["icon"] && $this->enabled["title"]) {
357 $this->tpl->setCurrentBlock("tbl_header_title_icon");
358 $this->tpl->setVariable("TBL_TITLE_IMG", ilUtil::getImagePath($this->icon));
359 $this->tpl->setVariable("TBL_TITLE_IMG_ALT", $this->icon_alt);
360 $this->tpl->parseCurrentBlock();
361 }
362 // table title help
363 if ($this->enabled["help"] && $this->enabled["title"]) {
364 $this->tpl->setCurrentBlock("tbl_header_title_help");
365 $this->tpl->setVariable("TBL_HELP_IMG", ilUtil::getImagePath($this->help_icon));
366 $this->tpl->setVariable("TBL_HELP_LINK", $this->help_page);
367 $this->tpl->setVariable("TBL_HELP_IMG_ALT", $this->help_icon_alt);
368 $this->tpl->parseCurrentBlock();
369 }
370
371 // table title
372 if ($this->enabled["title"]) {
373 $this->tpl->setCurrentBlock("tbl_header_title");
374 $this->tpl->setVariable("COLUMN_COUNT", $this->column_count);
375 $this->tpl->setVariable("TBL_TITLE", $this->title);
376 $this->tpl->parseCurrentBlock();
377 }
378
379 // table header
380 if ($this->enabled["header"]) {
381 $this->renderHeader();
382 }
383
384 // table data
385 // the table content may be skipped to use an individual template blockfile
386 // To do so don't set $this->data and parse your table content by yourself
387 // The template block name for the blockfile MUST be 'TBL_CONTENT'
388
389 if ($this->enabled["content"]) {
390 if ($this->enabled['auto_sort']) {
391 $this->setMaxCount(count($this->data));
392 $this->sortData();
393 }
394 $count = 0;
395
396 foreach ($this->data as $tbl_content_row) {
397 foreach ($tbl_content_row as $key => $tbl_content_cell) {
398 if (is_array($tbl_content_cell)) {
399 $this->tpl->setCurrentBlock("tbl_cell_subtitle");
400 $this->tpl->setVariable("TBL_CELL_SUBTITLE", $tbl_content_cell[1]);
401 $this->tpl->parseCurrentBlock();
402 $tbl_content_cell = "<b>" . $tbl_content_cell[0] . "</b>";
403 }
404
405 $this->tpl->setCurrentBlock("tbl_content_cell");
406 $this->tpl->setVariable("TBL_CONTENT_CELL", $tbl_content_cell);
407 $this->tpl->parseCurrentBlock();
408 }
409
410 $this->tpl->setCurrentBlock("tbl_content_row");
411 $this->tpl->setVariable("ROWCOLOR", " ");
412 $this->tpl->parseCurrentBlock();
413
414 $count++;
415 }
416 }
417 // select all checkbox
418 if ($this->enabled["select_all"]) {
419 if ((strlen($this->getFormName())) && (strlen($this->getSelectAllCheckbox()))) {
420 $this->tpl->setVariable('SELECT_PREFIX', $this->prefix);
421 $this->tpl->setVariable("SELECT_ALL_TXT_SELECT_ALL", $this->lng->txt("select_all"));
422 $this->tpl->setVariable("SELECT_ALL_CHECKBOX_NAME", $this->getSelectAllCheckbox());
423 $this->tpl->setVariable("SELECT_ALL_FORM_NAME", $this->getFormName());
424 if (!($this->enabled["numinfo"] && $this->enabled["footer"])) {
425 $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
426 }
427 }
428 }
429
430 // table header numinfo
431 if ($this->enabled["numinfo_header"]) {
432 $start = $this->offset + 1; // compute num info
433 $end = $this->offset + $this->limit;
434
435 if ($end > $this->max_count or $this->limit == 0) {
436 $end = $this->max_count;
437 }
438
439 if ($this->lang_support) {
440 $numinfo = "(" . $this->lng->txt("dataset") . " " . $start . " - " . $end . " " . strtolower($this->lng->txt("of")) . " " . $this->max_count . ")";
441 } else {
442 $numinfo = "(Dataset " . $start . " - " . $end . " of " . $this->max_count . ")";
443 }
444 if ($this->max_count > 0) {
445 //$numinfo = $this->lng->txt("no_datasets");
446 $this->tpl->setCurrentBlock("tbl_header_numinfo");
447 $this->tpl->setVariable("NUMINFO_HEADER", $numinfo);
448 $this->tpl->setVariable("COLUMN_COUNT_HEADER", $this->getColumnCount());
449 $this->tpl->parseCurrentBlock();
450 }
451 }
452 // table footer numinfo
453 if ($this->enabled["numinfo"] && $this->enabled["footer"]) {
454 $start = $this->offset + 1; // compute num info
455 $end = $this->offset + $this->limit;
456
457 if ($end > $this->max_count or $this->limit == 0) {
458 $end = $this->max_count;
459 }
460
461 if ($this->lang_support) {
462 $numinfo = "(" . $this->lng->txt("dataset") . " " . $start . " - " . $end . " " . strtolower($this->lng->txt("of")) . " " . $this->max_count . ")";
463 } else {
464 $numinfo = "(Dataset " . $start . " - " . $end . " of " . $this->max_count . ")";
465 }
466 if ($this->max_count > 0) {
467 //$numinfo = $this->lng->txt("no_datasets");
468 $this->tpl->setCurrentBlock("tbl_footer_numinfo");
469 $this->tpl->setVariable("NUMINFO", $numinfo);
470 $this->tpl->parseCurrentBlock();
471 }
472 }
473 // table footer linkbar
474 if ($this->enabled["linkbar"] && $this->enabled["footer"] && $this->limit != 0
475 && $this->max_count > 0) {
476 $params = array(
477 $this->prefix . "sort_by" => $this->header_vars[$this->order_column],
478 $this->prefix . "sort_order" => $this->order_direction
479 );
480 $params = array_merge($this->header_params, $params);
481
482 $layout = array(
483 "link" => $this->footer_style,
484 "prev" => $this->footer_previous,
485 "next" => $this->footer_next,
486 );
487
488 $base = ($this->getBase() == "")
489 ? basename($_SERVER["PHP_SELF"])
490 : $this->getBase();
491
492 $linkbar = $this->linkbar($base, $this->max_count, $this->limit, $this->offset, $params, $layout, $this->prefix);
493 $this->tpl->setCurrentBlock("tbl_footer_linkbar");
494 $this->tpl->setVariable("LINKBAR", $linkbar);
495 $this->tpl->parseCurrentBlock();
496 }
497
498 // table footer
499 if ($this->enabled["footer"] && $this->max_count > 0) {
500 $this->tpl->setCurrentBlock("tbl_footer");
501 $this->tpl->setVariable("COLUMN_COUNT", $this->column_count);
502 $this->tpl->parseCurrentBlock();
503 }
504
505 // action buttons
506 if ($this->enabled["action"]) {
507 foreach ($this->action_buttons as $button) {
508 $this->tpl->setCurrentBlock("tbl_action_btn");
509 $this->tpl->setVariable("BTN_NAME", $button["name"]);
510 $this->tpl->setVariable("BTN_VALUE", $button["value"]);
511 $this->tpl->parseCurrentBlock();
512 }
513 $this->tpl->setCurrentBlock("tbl_action_row");
514 $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("nav/arrow_downright.svg"));
515 $this->tpl->setVariable("ALT_ARROW", $this->lng->txt("arrow_downright.svg"));
516 $this->tpl->setVariable("COLUMN_COUNT", $this->getColumnCount());
517 $this->tpl->parseCurrentBlock();
518 }
519
520 if ($this->enabled["form"]) {
521 $this->tpl->touchBlock("tbl_form_footer");
522 }
523
524 if ($this->enabled['table']) {
525 $this->tpl->touchBlock("tbl_table_end");
526 }
527
528 if (!$this->global_tpl) {
529 return $this->tpl->get();
530 }
531 return "";
532 }
getSelectAllCheckbox()
get the name of the checkbox that should be toggled with a select all button
static linkbar(string $AScript, int $AHits, int $ALimit, int $AOffset, array $AParams=array(), array $ALayout=array(), string $prefix='')
getFormName()
get the name of the parent form
setMaxCount(int $a_max_count)
set max.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26

References $_SERVER, $params, ilUtil\getImagePath(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ renderHeader()

ilTableGUI::renderHeader ( )

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

625 : void
626 {
627 foreach ($this->header_names as $key => $tbl_header_cell) {
628 if (!$this->enabled["sort"]) {
629 $this->tpl->setCurrentBlock("tbl_header_no_link");
630 if ($this->column_width[$key]) {
631 $this->tpl->setVariable("TBL_COLUMN_WIDTH_NO_LINK", " width=\"" . $this->column_width[$key] . "\"");
632 }
633 $this->tpl->setVariable("TBL_HEADER_CELL_NO_LINK", $tbl_header_cell);
634 $this->tpl->parseCurrentBlock();
635 continue;
636 }
637 if (($key == $this->order_column) && ($this->order_direction != "")) {
638 if (strcmp($this->header_vars[$key], "") != 0) {
639 $this->tpl->setCurrentBlock("tbl_order_image");
640 $this->tpl->parseCurrentBlock();
641 }
642 }
643
644 $this->tpl->setCurrentBlock("tbl_header_cell");
645 $this->tpl->setVariable("TBL_HEADER_CELL", $tbl_header_cell);
646
647 // only set width if a value is given for that column
648 if ($this->column_width[$key]) {
649 $this->tpl->setVariable("TBL_COLUMN_WIDTH", " width=\"" . $this->column_width[$key] . "\"");
650 }
651
652 $lng_sort_column = ($this->lang_support) ? $this->lng->txt("sort_by_this_column") : "Sort by this column";
653 $this->tpl->setVariable("TBL_ORDER_ALT", $lng_sort_column);
654
655 $order_dir = "asc";
656
657 if ($key == $this->order_column) {
658 $order_dir = $this->sort_order;
659
660 $lng_change_sort = ($this->lang_support) ? $this->lng->txt("change_sort_direction") : "Change sort direction";
661 $this->tpl->setVariable("TBL_ORDER_ALT", $lng_change_sort);
662 }
663
664 $this->setOrderLink($key, $order_dir);
665 $this->tpl->parseCurrentBlock();
666 }
667
668 $this->tpl->setCurrentBlock("tbl_header");
669 $this->tpl->parseCurrentBlock();
670 }
string $sort_order
setOrderLink(string $key, string $order_dir)

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setBase()

ilTableGUI::setBase ( string  $a_base)
Parameters
string$a_baseBase script name (deprecated, only use this for workarounds)

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

692 : void
693 {
694 $this->base = $a_base;
695 }

References ILIAS\UI\examples\Button\Bulky\base().

+ Here is the call graph for this function:

◆ setColumnWidth()

ilTableGUI::setColumnWidth ( array  $a_column_width)

set table column widths

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

203 : void
204 {
205 $this->column_width = $a_column_width;
206 }

◆ setData()

ilTableGUI::setData ( array  $a_data)

Set table data.

Reimplemented in ilTable2GUI.

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

135 : void
136 {
137 $this->data = $a_data;
138 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setFooter()

ilTableGUI::setFooter ( string  $a_style,
string  $a_previous = "",
string  $a_next = "" 
)

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

310 : void {
311 $this->footer_style = $a_style;
312 $this->footer_previous = $a_previous ?: "<<<";
313 $this->footer_next = $a_next ?: ">>>";
314 }

Referenced by ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), and ilDclTableViewEditFieldsTableGUI\getHTML().

+ Here is the caller graph for this function:

◆ setFormName()

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

Reimplemented in ilTable2GUI.

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

710 : void
711 {
712 $this->form_name = $a_name;
713 }

◆ setHeaderNames()

ilTableGUI::setHeaderNames ( array  $a_header_names)

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

179 : void
180 {
181 $this->header_names = $a_header_names;
182 $this->column_count = count($this->header_names);
183 }

◆ setHeaderVars()

ilTableGUI::setHeaderVars ( array  $a_header_vars,
array  $a_header_params = [] 
)

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

190 : void
191 {
192 $this->header_vars = $a_header_vars;
193 $this->header_params = $a_header_params;
194 $this->link_params = "";
195 foreach ($a_header_params as $key => $val) {
196 $this->link_params .= $key . "=" . $val . "&";
197 }
198 }

◆ setHelp()

ilTableGUI::setHelp ( string  $a_help_page,
string  $a_help_icon,
string  $a_help_icon_alt = "" 
)

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

168 : void
169 {
170 $this->help_page = $a_help_page;
171 $this->help_icon = $a_help_icon;
172 $this->help_icon_alt = $a_help_icon_alt;
173
174 if (!$this->help_icon_alt) {
175 $this->help_icon_alt = $this->help_icon;
176 }
177 }

References $help_icon.

◆ setLimit()

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

set max.

datasets displayed per page

Reimplemented in ilTable2GUI.

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

230 : void
231 {
232 $this->limit = ($a_limit) ?: $a_default_limit;
233
234 if ($this->limit == 0) {
235 $this->max_limit = true;
236 }
237 }

◆ setMaxCount()

ilTableGUI::setMaxCount ( int  $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

Reimplemented in ILIAS\LegalDocuments\Legacy\Table.

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

218 : void
219 {
220 $this->max_count = $a_max_count;
221
222 if ($this->max_limit) {
223 $this->limit = $this->max_count;
224 }
225 }

References $max_count.

Referenced by ilBookingBulkCreationTableGUI\__construct(), ilCmiXapiScoringTableGUI\__construct(), ilLTIConsumerScoringTableGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilStudyProgrammeMembersTableGUI\__construct(), ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ilAssignedUsersTableGUI\getItems(), ilBookingAssignParticipantsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserLPTableGUI\getItems(), ilUserTableGUI\getItems(), ilBookingParticipantsTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilFileVersionsTableGUI\initData(), ilCmiXapiStatementsGUI\initTableData(), ilLTIConsumerXapiStatementsGUI\initTableData(), ilAdvancedMDRecordLanguageTableGUI\parse(), ilLogComponentTableGUI\parse(), ilTrashTableGUI\parse(), ilUserClipboardTableGUI\parse(), ilRoleTableGUI\parse(), ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\parseData(), ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\parseData(), ilMStListCoursesTableGUI\parseData(), ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\parseData(), ilMStShowUserCoursesTableGUI\parseData(), ilAccessibilityTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\populate(), ilSubscriberTableGUI\readSubscriberData(), and ilWaitingListTableGUI\readUserData().

+ Here is the caller graph for this function:

◆ setOffset()

ilTableGUI::setOffset ( int  $a_offset)

set dataset offset

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

257 : void
258 {
259 $this->offset = ($a_offset) ?: 0;
260 }

Referenced by ilTable2GUI\resetOffset().

+ Here is the caller graph for this function:

◆ setOneColumnWidth()

ilTableGUI::setOneColumnWidth ( string  $a_column_width,
int  $a_column_number 
)

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

208 : void
209 {
210 $this->column_width[$a_column_number] = $a_column_width;
211 }

◆ setOrderColumn()

ilTableGUI::setOrderColumn ( string  $a_order_column = "",
string  $a_default_column = "" 
)

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

270 : void {
271 // set default sort column to first column
272 if (empty($a_order_column)) {
273 if (!empty($a_default_column)) {
274 $oc = array_search($a_default_column, $this->header_vars);
275 } else {
276 $oc = "";
277 }
278 } else {
279 $oc = array_search($a_order_column, $this->header_vars);
280 }
281
282 $this->order_column = $oc ?: "";
283 }

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

+ Here is the caller graph for this function:

◆ setOrderDirection()

ilTableGUI::setOrderDirection ( string  $a_order_direction)

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

290 : void
291 {
292 if (strtolower($a_order_direction) == "desc") {
293 $this->order_direction = "desc";
294 $this->sort_order = "asc";
295 } else {
296 $this->order_direction = "asc"; // set default sort order to "ASC"
297 $this->sort_order = "desc";
298 }
299 }

Referenced by ilCalendarManageTableGUI\resetToDefaults().

+ Here is the caller graph for this function:

◆ setOrderLink()

ilTableGUI::setOrderLink ( string  $key,
string  $order_dir 
)

Reimplemented in ilTable2GUI.

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

672 : void
673 {
674 $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);
675 }

References $_SERVER.

◆ setPrefix()

ilTableGUI::setPrefix ( string  $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)

Reimplemented in ilTable2GUI.

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

249 : void
250 {
251 $this->prefix = $a_prefix ?: "";
252 }

◆ setSelectAllCheckbox()

ilTableGUI::setSelectAllCheckbox ( string  $a_select_all_checkbox)

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

723 : void
724 {
725 $this->select_all_checkbox = $a_select_all_checkbox;
726 }

◆ setStyle()

◆ setTemplate()

ilTableGUI::setTemplate ( ilTemplate  $a_tpl)

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

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

◆ setTitle()

ilTableGUI::setTitle ( string  $a_title,
string  $a_icon = "",
string  $a_icon_alt = "" 
)
Parameters
string$a_titletable title
string$a_iconfile name of title icon
string$a_icon_altalternative text for title icon

Reimplemented in ilTable2GUI.

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

150 : void
151 {
152 $this->title = $a_title;
153 $this->icon = $a_icon;
154 $this->icon_alt = $a_icon_alt;
155
156 if (!$this->icon) {
157 $this->enabled["icon"] = false;
158
159 return;
160 }
161
162 if (!$this->icon_alt) {
163 $this->icon_alt = $this->icon;
164 }
165 $this->enabled["icon"] = true;
166 }

References $icon.

◆ sortData()

ilTableGUI::sortData ( )

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

341 : void
342 {
343 if ($this->enabled["sort"]) {
344 $this->data = ilArrayUtil::sortArray($this->data, $this->order_column, $this->order_direction);
345 }
346 $this->data = array_slice($this->data, $this->offset, $this->limit);
347 }
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)

References ilArrayUtil\sortArray().

+ Here is the call graph for this function:

Field Documentation

◆ $action_buttons

array ilTableGUI::$action_buttons = []

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

◆ $base

string ilTableGUI::$base = ""

◆ $column_count

int ilTableGUI::$column_count = 0

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

Referenced by getColumnCount().

◆ $column_width

array ilTableGUI::$column_width = []

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

Referenced by ilObjectRolePermissionTableGUI\initColumns().

◆ $data

array ilTableGUI::$data = []

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

Referenced by ilLMGlossaryTableGUI\__construct(), ilImportantPagesTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilAnswerFrequencyStatisticTableGUI\buildAddAnswerAction(), ilDclRecordListTableGUI\buildData(), ilSurveySyncTableGUI\buildPath(), ilMDCopyrightUsageTableGUI\collectData(), ilCourseObjectivesTableGUI\fillRow(), ilCmiXapiLrsTypesTableGUI\getActionsList(), ilModulesTableGUI\getComponents(), getData(), ilBenchmarkTableGUI\getDataByFirstTable(), ilMDCopyrightUsageTableGUI\getDataFromDB(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilMemberExportFileTableGUI\getFiles(), ilLearningSequenceParticipantsTableGUI\getFirstAccess(), ilNewItemGroupTableGUI\getGroups(), ilDclCreateViewTableGUI\getHTML(), ilDclEditViewTableGUI\getHTML(), ilDclFieldListTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ilTestSkillLevelThresholdsTableGUI\getInputElements(), ilBookingAssignParticipantsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilBookingAssignObjectsTableGUI\getItems(), ilCmiXapiVerificationTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilExcCriteriaCatalogueTableGUI\getItems(), ilExcCriteriaTableGUI\getItems(), ilExAssignmentTeamLogTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilLTIConsumerVerificationTableGUI\getItems(), ilPollAnswerTableGUI\getItems(), ilPortfolioPageTableGUI\getItems(), ilRecommendedContentRoleTableGUI\getItems(), ilSCORMVerificationTableGUI\getItems(), ILIAS\Style\Content\CharacteristicTableGUI\getItems(), ilTestVerificationTableGUI\getItems(), ilLPObjectStatisticsAdminTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilLPProgressTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilWikiExportOrderTableGUI\getItems(), ilPollUserTableGUI\getItems(), ilSessionOverviewTableGUI\getItems(), ilSurveyResultsCumulatedTableGUI\getItems(), ilBookingParticipantsTableGUI\getItems(), ilSurveyParticipantsTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilBookingSchedulesTableGUI\getItems(), ilLearningSequenceParticipantsTableGUI\getLastAccess(), ilLearningSequenceParticipantsTableGUI\getLastVisitedStep(), ilMDCopyrightUsageTableGUI\getObjTypesAvailable(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilSurveySkillAssignmentTableGUI\getQuestions(), ilCmiXapiStatementsTableGUI\getRawDataModal(), ilSurveySkillTableGUI\getSkills(), ilCmiXapiScoringTableGUI\getUsername(), ilLTIConsumerScoringTableGUI\getUsername(), ilWorkspaceAccessTableGUI\importData(), ilWorkspaceShareTableGUI\importData(), ilSurveyQuestionTableGUI\importData(), ilImageMapTableGUI\initActions(), ilDashboardSortationTableGUI\initData(), ilSurveyQuestionblockbrowserTableGUI\initData(), ilSurveyQuestionbrowserTableGUI\initData(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilAdvancedMDFieldDefinitionGroupTableGUI\initItems(), SurveyConstraintsTableGUI\initItems(), ilCalendarSharedListTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilExAssignmentListTextTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilMDCopyrightUsageTableGUI\parse(), ilSCORMTrackingItemPerUserTableGUI\parse(), ilSCORMTrackingItemsPerScoTableGUI\parse(), ilSCORMTrackingItemsPerUserTableGUI\parse(), ilSCORMTrackingItemsScoTableGUI\parse(), ilSCORMTrackingUsersTableGUI\parse(), ilSCGroupTableGUI\parse(), ilSCTaskTableGUI\parse(), ilECSNodeMappingTreeTableGUI\parse(), ilDclEditViewTableGUI\parseData(), ilBiblTranslationTableGUI\parseData(), ilAssignmentsPerParticipantTableGUI\parseData(), ilParticipantsPerAssignmentTableGUI\parseData(), ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\parseData(), ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\parseData(), ilMStListCoursesTableGUI\parseData(), ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\parseData(), ilMStShowUserCoursesTableGUI\parseData(), ilDclTableViewEditFieldsTableGUI\parseData(), ilAdvancedMDRecordExportFilesTableGUI\parseFiles(), ilLOTestAssignmentTableGUI\parseMultipleAssignments(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilRepositoryUserResultTableGUI\parseUserIds(), ilAccessibilityTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\preProcessData(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilQuestionBrowserTableGUI\setQuestionData(), ilDclRecordListTableGUI\setRecordData(), and ilEmployeeTalkTableGUI\setTalkData().

◆ $enabled

array 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 67 of file class.ilTableGUI.php.

◆ $footer_next

string ilTableGUI::$footer_next = ""

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

◆ $footer_previous

string ilTableGUI::$footer_previous = ""

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

◆ $footer_style

string ilTableGUI::$footer_style = ""

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

◆ $form_name

string ilTableGUI::$form_name = ""

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

◆ $global_tpl

bool ilTableGUI::$global_tpl = false

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

◆ $header_names

array ilTableGUI::$header_names = []

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

◆ $header_params

array ilTableGUI::$header_params
protected

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

◆ $header_vars

array ilTableGUI::$header_vars = []

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

◆ $help_icon

string ilTableGUI::$help_icon = ""

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

Referenced by setHelp().

◆ $help_icon_alt

string ilTableGUI::$help_icon_alt = ""

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

◆ $help_page

string ilTableGUI::$help_page = ""

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

◆ $icon

◆ $icon_alt

string ilTableGUI::$icon_alt = ""

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

Referenced by ilWorkspaceShareTableGUI\fillRow().

◆ $lang_support

bool ilTableGUI::$lang_support = true

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

◆ $limit

int ilTableGUI::$limit = 0

◆ $link_params

string ilTableGUI::$link_params
protected

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

◆ $linkbar_vars

array ilTableGUI::$linkbar_vars = []

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

◆ $lng

ilLanguage ilTableGUI::$lng
protected

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

Referenced by ilAdvancedMDFieldTableGUI\__construct(), ilTaxAssignedItemsTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilAssQuestionSkillAssignmentsTableGUI\__construct(), ilBenchmarkTableGUI\__construct(), assFileUploadFileTableGUI\__construct(), ilQuestionPoolPrintViewTableGUI\__construct(), ilTaxonomyListTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilSurveyResultsUserTableGUI\__construct(), ilLPProgressTableGUI\__construct(), ilTable2GUI\__construct(), __construct(), ilBookingBulkCreationTableGUI\__construct(), ilContentStylesTableGUI\__construct(), ilDclCreateViewTableGUI\__construct(), ilDclTableViewEditFieldsTableGUI\__construct(), ilLearningSequenceParticipantsTableGUI\__construct(), ilNewsForContextTableGUI\__construct(), ilLMGlossaryTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilModulesTableGUI\__construct(), ilNewItemGroupTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilSkillLevelTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilPageMultiLangTableGUI\__construct(), ilPageLayoutTableGUI\__construct(), ilMobMultiSrtConfirmationTable2GUI\__construct(), ilMultiSrtConfirmationTable2GUI\__construct(), ilClipboardTableGUI\__construct(), ilPollUserTableGUI\__construct(), ilSurveyCodesEditTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilStyleImageTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilUploadDirFilesTableGUI\__construct(), ilLanguageExtTableGUI\__construct(), ilSurveyResultsCumulatedTableGUI\__construct(), ilHelpModuleTableGUI\__construct(), ilSurveyAppraiseesTableGUI\__construct(), ilHelpMappingTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilSurveyMaintenanceTableGUI\__construct(), ilSurveyQuestionPoolExportTableGUI\__construct(), ilSumScoreTableGUI\__construct(), ilPasteStyleCharacteristicTableGUI\__construct(), ilFeedbackConfirmationTable2GUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilExAssignmentListTextTableGUI\__construct(), ilExcDeliveredFilesTableGUI\__construct(), ilLMMenuItemsTableGUI\__construct(), ilMediaPoolPageUsagesTableGUI\__construct(), ilLMBlockedUsersTableGUI\__construct(), ilLMPagesTableGUI\__construct(), ilMediaObjectUsagesTableGUI\__construct(), ilMobSubtitleTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilStyleMediaQueryTableGUI\__construct(), ilStyleColorTableGUI\__construct(), ilSurveyQuestionblockbrowserTableGUI\__construct(), ilSurveyQuestionbrowserTableGUI\__construct(), ilSurveySkillTableGUI\__construct(), ilSurveySkillChangesTableGUI\__construct(), SurveyConstraintsTableGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilSurveyQuestionTableGUI\__construct(), ilSurveyParticipantsTableGUI\__construct(), ilPCFileListTableGUI\__construct(), ilPCGridCellTableGUI\__construct(), ilPCTabsTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilExcCriteriaTableGUI\__construct(), ilExcCriteriaCatalogueTableGUI\__construct(), ilLinksTableGUI\__construct(), ilWorkspaceAccessTableGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilBookingObjectsTableGUI\__construct(), ilWikiContributorsTableGUI\__construct(), ilWikiPageTemplatesTableGUI\__construct(), ilWikiSearchResultsTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilHelpTooltipTableGUI\__construct(), ilSurveySyncTableGUI\__construct(), ilPageHistoryTableGUI\__construct(), ilFoundUsersTableGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilUserTableGUI\addFilterItemByUdfType(), ilAccessPermissionsStatusTableGUI\fillRow(), ilBookingObjectsTableGUI\fillRow(), ilBookingParticipantsTableGUI\fillRow(), ilBookingSchedulesTableGUI\fillRow(), ilCopySelfAssQuestionTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilPageMultiLangTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilExcCriteriaCatalogueTableGUI\fillRow(), ilExcCriteriaTableGUI\fillRow(), ilPublicSubmissionsTableGUI\fillRow(), ilHelpModuleTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilLMBlockedUsersTableGUI\fillRow(), ilLMGlossaryTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilMobMultiSrtConfirmationTable2GUI\fillRow(), ilMobSubtitleTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilNewItemGroupTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilSkillCatTableGUI\fillRow(), ILIAS\Style\Content\CharacteristicTableGUI\fillRow(), ilContentStylesTableGUI\fillRow(), ilPasteStyleCharacteristicTableGUI\fillRow(), ilStyleMediaQueryTableGUI\fillRow(), ilTableTemplatesTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), SurveyConstraintsTableGUI\fillRow(), ilSurveyQuestionTableGUI\fillRow(), ilSurveyAppraiseesTableGUI\fillRow(), ilSurveyCodesTableGUI\fillRow(), ilSurveySkillAssignmentTableGUI\fillRow(), ilSurveySkillChangesTableGUI\fillRow(), ilSurveySkillTableGUI\fillRow(), ilSurveySkillThresholdsTableGUI\fillRow(), ilSurveySyncTableGUI\fillRow(), ilBenchmarkTableGUI\fillRow(), ilTaxonomyListTableGUI\fillRow(), ilLPObjectStatisticsAdminTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSCORMTrackingItemsTableGUI\fillRowCSV(), ilSCORMTrackingItemsTableGUI\fillRowExcel(), ilModulesTableGUI\getComponents(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilNewItemGroupTableGUI\getGroups(), ilDclCreateViewTableGUI\getHTML(), ilDclTableViewEditFieldsTableGUI\getHTML(), ilExGradesTableGUI\getIconForStatus(), ilExcCriteriaCatalogueTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilUserTableGUI\getItems(), ilSurveyParticipantsTableGUI\getItems(), ilModulesTableGUI\getPluginComponents(), ilSurveyResultsCumulatedTableGUI\getSelectableColumns(), ilSurveyQuestionsTableGUI\getSelectableColumns(), ilQuestionBrowserTableGUI\getSelectableColumns(), ilQuestionPoolPrintViewTableGUI\getSelectableColumns(), ilUserTableGUI\getSelectableColumns(), ilWorkspaceShareTableGUI\importData(), ilSurveySyncTableGUI\importData(), ilImageMapTableGUI\initActions(), ilBookingObjectsTableGUI\initFilter(), ilLanguageExtTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilPDNewsTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilRoleAssignmentTableGUI\initFilter(), ilUserTableGUI\initFilter(), SurveyConstraintsTableGUI\initItems(), ilAssignmentsPerParticipantTableGUI\initMode(), ilParticipantsPerAssignmentTableGUI\initMode(), ilSCORMTrackingItemsTableGUI\parseValue(), ilMultilingualismTableGUI\prepareOutput(), and ilMediaPoolTableGUI\prepareOutput().

◆ $max_count

int ilTableGUI::$max_count = 0

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

Referenced by setMaxCount().

◆ $max_limit

bool ilTableGUI::$max_limit = false

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

◆ $offset

int ilTableGUI::$offset = 0

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

Referenced by getOffset().

◆ $order_column

string ilTableGUI::$order_column = ""

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

◆ $order_direction

string ilTableGUI::$order_direction = ""

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

◆ $prefix

string ilTableGUI::$prefix = ""

◆ $select_all_checkbox

string ilTableGUI::$select_all_checkbox = ""

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

◆ $sort_order

string ilTableGUI::$sort_order
protected

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

◆ $styles

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

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

◆ $title

string ilTableGUI::$title = ""

◆ $tpl


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