ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
StepTableBuilder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
30{
31 public function __construct(
32 protected InternalDomainService $domain,
33 protected InternalGUIService $gui,
34 protected int $tour_id,
35 object $parent_gui,
36 string $parent_cmd
37 ) {
38 parent::__construct($parent_gui, $parent_cmd);
39 }
40
41 protected function getId(): string
42 {
43 return "gdtr_steps";
44 }
45
46 protected function getTitle(): string
47 {
48 return $this->domain->lng()->txt("gdtr_tour_steps");
49 }
50
51 protected function getRetrieval(): RetrievalInterface
52 {
53 //$request = $this->gui->editing()->request();
54 return $this->domain->stepRetrieval(
55 $this->tour_id,
56 );
57 }
58
59 protected function getOrderingCommand(): string
60 {
61 return "saveOrder";
62 }
63
64 protected function transformRow(array $data_row): array
65 {
66 return $data_row;
67 }
68
70 {
71 $lng = $this->domain->lng();
72 $user = $this->domain->user();
74 ->textColumn("type", $lng->txt("gdtr_type"))
75 ->textColumn("element_id", $lng->txt("gdtr_element_id"))
76 ->singleAction("editStep", $lng->txt("gdtr_edit_properties"))
77 ->singleAction("editPage", $lng->txt("gdtr_edit_content"))
78 ->singleAction("confirmStepDeletion", $lng->txt("delete"), true);
79 return $table;
80 }
81
82}
transformRow(array $data_row)
transform raw data array to table row data array
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $tour_id, object $parent_gui, string $parent_cmd)
textColumn(string $key, string $title, bool $sortable=false)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31