ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
GlossariesTableBuilder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
29{
30 public function __construct(
31 protected InternalDomainService $domain,
32 protected \ilObjLearningModule $lm,
33 object $parent_gui,
34 string $parent_cmd
35 ) {
36 parent::__construct($parent_gui, $parent_cmd);
37 }
38
39 protected function getId(): string
40 {
41 return "lm_glossaries";
42 }
43
44 protected function getTitle(): string
45 {
46 return $this->domain->lng()->txt("cont_auto_glossaries");
47 }
48
49 protected function getRetrieval(): RetrievalInterface
50 {
51 return $this->domain->glossariesRetrieval($this->lm);
52 }
53
54 protected function transformRow(array $data_row): array
55 {
56 return [
57 "id" => $data_row["id"],
58 "title" => $data_row["title"]
59 ];
60 }
61
63 {
64 $lng = $this->domain->lng();
65
66 return $table
67 ->textColumn("title", $lng->txt("title"))
68 ->singleAction("confirmRemoveLMGlossary", $lng->txt("remove"), true);
69 }
70}
transformRow(array $data_row)
transform raw data array to table row data array
__construct(protected InternalDomainService $domain, protected \ilObjLearningModule $lm, object $parent_gui, string $parent_cmd)
textColumn(string $key, string $title, bool $sortable=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $lng
Definition: privfeed.php:26