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

Public Member Functions

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

Protected Member Functions

 getColumns ()
 
 buildTableTitle ()
 
 initTable ()
 

Protected Attributes

const string LNG_TABLE_COL_TITLE = 'title'
 
const string LNG_TABLE_COL_SUGGESTION = 'crs_timings_short_start_end'
 
const string LNG_TABLE_COL_TIMINGS_PLANNED = 'crs_timings_planned_start'
 
const string LNG_TABLE_TITLE = 'timings_of'
 
const string TABLE_ID = 'tmgsvw'
 
DataTable $table
 

Additional Inherited Members

- Data Fields inherited from ILIAS\Course\I\Table\TimingsView\HandlerInterface
const string TABLE_COL_TITLE = 'title'
 
const string TABLE_COL_SUGGESTION = 'crs_timings_suggestion'
 
const string TABLE_COL_TIMINGS_PLANNED = 'crs_timings_planned'
 

Detailed Description

Definition at line 30 of file Handler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Course\Table\TimingsView\Handler::__construct ( protected readonly UIServices  $ui,
protected readonly HTTPServices  $http,
protected readonly DataRetrievalInterface  $data_retrieval,
protected readonly ilLanguage  $lng 
)

Definition at line 40 of file Handler.php.

45 {
46 }

Member Function Documentation

◆ buildTableTitle()

ILIAS\Course\Table\TimingsView\Handler::buildTableTitle ( )
finalprotected

Definition at line 65 of file Handler.php.

65 : string
66 {
67 return $this->lng->txt(self::LNG_TABLE_TITLE) . ': ' . $this->data_retrieval->getUsername();
68 }

References ILIAS\Repository\lng().

Referenced by ILIAS\Course\Table\TimingsView\Handler\initTable().

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

◆ getColumns()

ILIAS\Course\Table\TimingsView\Handler::getColumns ( )
finalprotected

Definition at line 48 of file Handler.php.

48 : array
49 {
50 return [
51 self::TABLE_COL_TITLE => $this->ui->factory()->table()->column()->link(
52 $this->lng->txt(self::LNG_TABLE_COL_TITLE)
53 ),
54 self::TABLE_COL_SUGGESTION => $this->ui->factory()->table()->column()->timeSpan(
55 $this->lng->txt(self::LNG_TABLE_COL_SUGGESTION),
56 $this->data_retrieval->getDateFormat()
57 ),
58 self::TABLE_COL_TIMINGS_PLANNED => $this->ui->factory()->table()->column()->timeSpan(
59 $this->lng->txt(self::LNG_TABLE_COL_TIMINGS_PLANNED),
60 $this->data_retrieval->getDateFormat()
61 )
62 ];
63 }

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

Referenced by ILIAS\Course\Table\TimingsView\Handler\initTable().

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

◆ getHTML()

ILIAS\Course\Table\TimingsView\Handler::getHTML ( )
final

Implements ILIAS\Course\I\Table\TimingsView\HandlerInterface.

Definition at line 84 of file Handler.php.

84 : string
85 {
86 $this->initTable();
87 return $this->ui->renderer()->render([$this->table]);
88 }

References ILIAS\Course\Table\TimingsView\Handler\initTable(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ initTable()

ILIAS\Course\Table\TimingsView\Handler::initTable ( )
finalprotected

Definition at line 70 of file Handler.php.

70 : void
71 {
72 if (isset($this->table)) {
73 return;
74 }
75 $this->table = $this->ui->factory()->table()->data(
76 $this->data_retrieval,
77 $this->buildTableTitle(),
78 $this->getColumns(),
79 )
80 ->withId(self::TABLE_ID)
81 ->withRequest($this->http->request());
82 }
static http()
Fetches the global http state from ILIAS.

References ILIAS\Course\Table\TimingsView\Handler\buildTableTitle(), ILIAS\Course\Table\TimingsView\Handler\getColumns(), ILIAS\FileDelivery\http(), and ILIAS\Repository\ui().

Referenced by ILIAS\Course\Table\TimingsView\Handler\getHTML().

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

Field Documentation

◆ $table

DataTable ILIAS\Course\Table\TimingsView\Handler::$table
protected

Definition at line 38 of file Handler.php.

◆ LNG_TABLE_COL_SUGGESTION

const string ILIAS\Course\Table\TimingsView\Handler::LNG_TABLE_COL_SUGGESTION = 'crs_timings_short_start_end'
protected

Definition at line 33 of file Handler.php.

◆ LNG_TABLE_COL_TIMINGS_PLANNED

const string ILIAS\Course\Table\TimingsView\Handler::LNG_TABLE_COL_TIMINGS_PLANNED = 'crs_timings_planned_start'
protected

Definition at line 34 of file Handler.php.

◆ LNG_TABLE_COL_TITLE

const string ILIAS\Course\Table\TimingsView\Handler::LNG_TABLE_COL_TITLE = 'title'
protected

Definition at line 32 of file Handler.php.

◆ LNG_TABLE_TITLE

const string ILIAS\Course\Table\TimingsView\Handler::LNG_TABLE_TITLE = 'timings_of'
protected

Definition at line 35 of file Handler.php.

◆ TABLE_ID

const string ILIAS\Course\Table\TimingsView\Handler::TABLE_ID = 'tmgsvw'
protected

Definition at line 36 of file Handler.php.


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