ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\SystemCheck\Table\Group\Handler Class Reference
+ Inheritance diagram for ILIAS\SystemCheck\Table\Group\Handler:
+ Collaboration diagram for ILIAS\SystemCheck\Table\Group\Handler:

Public Member Functions

 __construct (protected DataFactory $data_factory, protected UIServices $ui, protected ilLanguage $lng, protected HTTPServices $http, protected DataRetrievalInterface $data_retrieval)
 
 getHTML ()
 
 getHTML ()
 

Data Fields

const string TABLE_COL_TITLE = 'title'
 
const string TABLE_COL_DESCRIPTION = 'description'
 
const string TABLE_COL_LAST_UPDATE = 'last_update'
 
const string TABLE_COL_SOLVED_TASKS = 'sysc_completed_num'
 
const string TABLE_COL_UNSOLVED_TASKS = 'sysc_failed_num'
 

Protected Member Functions

 getColumns ()
 
 getTable ()
 

Protected Attributes

const string TABLE_ID = "sc_groups"
 
const string LNG_TABLE_COL_TITLE = 'title'
 
const string LNG_TABLE_COL_DESCRIPTION = 'description'
 
const string LNG_TABLE_COL_LAST_UPDATE = 'last_update'
 
const string LNG_TABLE_COL_SOLVED_TASKS = 'sysc_completed_num'
 
const string LNG_TABLE_COL_UNSOLVED_TASKS = 'sysc_failed_num'
 
const string LNG_TABLE_TITLE = 'sysc_overview'
 
DataTable $table
 

Detailed Description

Definition at line 31 of file Handler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\SystemCheck\Table\Group\Handler::__construct ( protected DataFactory  $data_factory,
protected UIServices  $ui,
protected ilLanguage  $lng,
protected HTTPServices  $http,
protected DataRetrievalInterface  $data_retrieval 
)

Definition at line 48 of file Handler.php.

54 {
55 }

Member Function Documentation

◆ getColumns()

ILIAS\SystemCheck\Table\Group\Handler::getColumns ( )
finalprotected

Definition at line 57 of file Handler.php.

57 : array
58 {
59 return [
60 self::TABLE_COL_TITLE => $this->ui->factory()->table()->column()->link(
61 $this->lng->txt(self::LNG_TABLE_COL_TITLE)
62 )->withIsSortable(true),
63 self::TABLE_COL_DESCRIPTION => $this->ui->factory()->table()->column()->text(
64 $this->lng->txt(self::LNG_TABLE_COL_DESCRIPTION)
65 )->withIsSortable(true),
66 self::TABLE_COL_LAST_UPDATE => $this->ui->factory()->table()->column()->text(
67 $this->lng->txt(self::LNG_TABLE_COL_LAST_UPDATE)
68 )->withIsSortable(true),
69 self::TABLE_COL_SOLVED_TASKS => $this->ui->factory()->table()->column()->number(
70 $this->lng->txt(self::LNG_TABLE_COL_SOLVED_TASKS)
71 )->withIsSortable(true),
72 self::TABLE_COL_UNSOLVED_TASKS => $this->ui->factory()->table()->column()->number(
73 $this->lng->txt(self::LNG_TABLE_COL_UNSOLVED_TASKS)
74 )->withIsSortable(true)
75 ];
76 }

References ILIAS\Repository\lng(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ getHTML()

ILIAS\SystemCheck\Table\Group\Handler::getHTML ( )
final

Implements ILIAS\SystemCheck\I\Table\Group\HandlerInterface.

Definition at line 90 of file Handler.php.

90 : string
91 {
92 return $this->ui->renderer()->render([$this->getTable()]);
93 }

References ILIAS\SystemCheck\Table\Group\Handler\getTable(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ getTable()

ILIAS\SystemCheck\Table\Group\Handler::getTable ( )
finalprotected

Definition at line 78 of file Handler.php.

78 : DataTable
79 {
80 if (!isset($this->table)) {
81 $this->table = $this->ui->factory()->table()->data(
82 $this->data_retrieval,
83 $this->lng->txt(self::LNG_TABLE_TITLE),
84 $this->getColumns(),
85 )->withId(self::TABLE_ID)->withRequest($this->http->request());
86 }
87 return $this->table;
88 }
static http()
Fetches the global http state from ILIAS.

References ILIAS\SystemCheck\Table\Group\Handler\$table, ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

Referenced by ILIAS\SystemCheck\Table\Group\Handler\getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $table

DataTable ILIAS\SystemCheck\Table\Group\Handler::$table
protected

Definition at line 46 of file Handler.php.

Referenced by ILIAS\SystemCheck\Table\Group\Handler\getTable().

◆ LNG_TABLE_COL_DESCRIPTION

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_COL_DESCRIPTION = 'description'
protected

Definition at line 40 of file Handler.php.

◆ LNG_TABLE_COL_LAST_UPDATE

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_COL_LAST_UPDATE = 'last_update'
protected

Definition at line 41 of file Handler.php.

◆ LNG_TABLE_COL_SOLVED_TASKS

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_COL_SOLVED_TASKS = 'sysc_completed_num'
protected

Definition at line 42 of file Handler.php.

◆ LNG_TABLE_COL_TITLE

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_COL_TITLE = 'title'
protected

Definition at line 39 of file Handler.php.

◆ LNG_TABLE_COL_UNSOLVED_TASKS

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_COL_UNSOLVED_TASKS = 'sysc_failed_num'
protected

Definition at line 43 of file Handler.php.

◆ LNG_TABLE_TITLE

const string ILIAS\SystemCheck\Table\Group\Handler::LNG_TABLE_TITLE = 'sysc_overview'
protected

Definition at line 44 of file Handler.php.

◆ TABLE_COL_DESCRIPTION

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_COL_DESCRIPTION = 'description'

Definition at line 35 of file Handler.php.

◆ TABLE_COL_LAST_UPDATE

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_COL_LAST_UPDATE = 'last_update'

Definition at line 36 of file Handler.php.

◆ TABLE_COL_SOLVED_TASKS

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_COL_SOLVED_TASKS = 'sysc_completed_num'

Definition at line 37 of file Handler.php.

◆ TABLE_COL_TITLE

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_COL_TITLE = 'title'

Definition at line 34 of file Handler.php.

◆ TABLE_COL_UNSOLVED_TASKS

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_COL_UNSOLVED_TASKS = 'sysc_failed_num'

Definition at line 38 of file Handler.php.

◆ TABLE_ID

const string ILIAS\SystemCheck\Table\Group\Handler::TABLE_ID = "sc_groups"
protected

Definition at line 33 of file Handler.php.


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