19declare(strict_types=1);
45 $this->
ctrl = $DIC->ctrl();
46 $this->question_info =
$DIC->testQuestion();
47 $this->
lng = $DIC->language();
48 $this->ui_factory =
$DIC->ui()->factory();
50 $this->
lng->loadLanguageModule(
'cont');
55 protected function getId(): string
57 return 'question_usage';
62 return $this->
lng->txt(
'cont_question_page_usage');
77 'id' => $data_row[
'id'],
78 'title' => $data_row[
'title'] ??
'',
79 'page' => $this->ui_factory->link()->standard(
80 $data_row[
'page_title'] ??
'',
81 $data_row[
'page_link'] ??
''
91 ->linkColumn(
'page', $this->
lng->txt(
'cont_page_usage'));
Builds a Color from either hex- or rgb values.
build(TableAdapterGUI $table)
QuestionInfo $question_info
transformRow(array $data_row)
transform raw data array to table row data array
__construct(object $parent_gui, string $parent_cmd, protected int $obj_id)
textColumn(string $key, string $title, bool $sortable=false)
Class ilCtrl provides processing control methods.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc