19declare(strict_types=1);
50 $this->ui_factory = $this->gui->ui()->factory();
54 protected function getId(): string
56 return "ilCOPgHistoryTable";
61 return $this->domain->lng()->txt(
"content_page_history");
66 return $this->domain->historyRetrieval(
75 $ctrl = $this->gui->ctrl();
77 $nr = (
int) $data_row[
"nr"];
79 $ctrl->setParameter($this->parent_gui,
"old_nr", $nr);
80 $ctrl->setParameter($this->parent_gui,
"history_mode",
"1");
81 $date_link = $this->ui_factory->link()->standard(
83 $ctrl->getLinkTarget($this->parent_gui,
"preview")
85 $ctrl->setParameter($this->parent_gui,
"history_mode",
"");
86 $ctrl->setParameter($this->parent_gui,
"old_nr",
"");
91 (
int) $data_row[
"user"],
94 $ctrl->getLinkTarget($this->parent_gui, $this->parent_cmd)
100 "date" => $date_link,
107 if ($action ===
"rollbackConfirmation" && $data_row[
"nr"] > 0) {
115 $lng = $this->domain->lng();
119 ->textColumn(
"user",
$lng->txt(
"user"))
120 ->multiAction(
"compareVersion",
$lng->txt(
"cont_page_compare"))
121 ->singleAction(
"rollbackConfirmation",
$lng->txt(
"cont_rollback"));
ILIAS UI Factory $ui_factory
build(TableAdapterGUI $table)
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui, object $parent_gui, string $parent_cmd, int $page_id, string $parent_type, string $lang)
transformRow(array $data_row)
transform raw data array to table row data array
activeAction(string $action, array $data_row)
linkColumn(string $key, string $title, bool $sortable=false)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc