19declare(strict_types=1);
30use Psr\Http\Message\ServerRequestInterface;
31use Psr\Http\Message\RequestInterface;
44 private ServerRequestInterface|RequestInterface
$request;
56 $this->
lng = $DIC->language();
57 $this->ui_factory =
$DIC->ui()->factory();
58 $this->ui_renderer =
$DIC->ui()->renderer();
59 $this->request =
$DIC->http()->request();
60 $this->data_factory = new \ILIAS\Data\Factory();
61 $this->
ctrl = $DIC->ctrl();
62 $this->wrapper =
$DIC->http()->wrapper();
64 $this->
id = $a_id ?:
'lti_released_objects';
72 'type' => $this->ui_factory->table()->column()->statusIcon($this->
lng->txt(
'type')),
73 'title' => $this->ui_factory->table()->column()->link($this->
lng->txt(
'title')),
74 'consumer' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'lti_consumer'))
83 foreach ($rows as $row) {
87 if ($type ==
'rolf') {
97 'consumer' => $row[
'title']
114 foreach ($this->records as $record) {
121 'type' => $this->ui_factory->symbol()->icon()->standard($record[
'type'], $record[
'type'], Icon::SMALL),
122 'title' => $this->ui_factory->link()->standard($record[
'title'], $link),
123 'consumer' => $record[
'consumer']
126 yield $row_builder->
buildDataRow((
string) $record[
'id'], $display_record);
132 return count($this->records);
139 $table = $this->ui_factory->table()
140 ->data($this->
lng->txt(
'lti_released_objects'), $this->getColumns(), $this)
141 ->withOrder(
new Order(
'title', Order::ASC))
142 ->withRequest($this->request);
144 return $this->ui_renderer->render($table);
Builds a Color from either hex- or rgb values.
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
Description of class ilLTIProviderReleasedObjectsTableGUI.
ILIAS Data Factory $data_factory
ServerRequestInterface RequestInterface $request
__construct(string $a_id='')
ILIAS Refinery Factory $refinery
getTotalRowCount(?array $filter_data, ?array $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
ILIAS UI Renderer $ui_renderer
static readReleaseObjects()
Read released objects.
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
This describes how an icon could be modified during construction of UI.
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e....
buildDataRow(string $id, array $record)
This is how the factory for UI elements looks.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...