19declare(strict_types=1);
49 protected DataFactory $data_factory,
52 protected HTTPServices
$http,
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)
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),
85 )->withId(self::TABLE_ID)->withRequest($this->
http->request());
92 return $this->
ui->renderer()->render([$this->
getTable()]);
Provides fluid interface to RBAC services.
const string TABLE_COL_DESCRIPTION
const string TABLE_COL_LAST_UPDATE
const string LNG_TABLE_COL_TITLE
const string LNG_TABLE_TITLE
__construct(protected DataFactory $data_factory, protected UIServices $ui, protected ilLanguage $lng, protected HTTPServices $http, protected DataRetrievalInterface $data_retrieval)
const string TABLE_COL_UNSOLVED_TASKS
const string LNG_TABLE_COL_LAST_UPDATE
const string LNG_TABLE_COL_UNSOLVED_TASKS
const string TABLE_COL_TITLE
const string LNG_TABLE_COL_DESCRIPTION
const string LNG_TABLE_COL_SOLVED_TASKS
const string TABLE_COL_SOLVED_TASKS
This describes a Data Table.
readonly HttpService $http
static http()
Fetches the global http state from ILIAS.