31 protected \ILIAS\Wiki\Page\PageManager
$pm;
43 $this->
ctrl = $gui->ctrl();
44 $this->
lng = $domain->lng();
45 $this->requested_ref_id = $gui
48 $this->pm = $domain->page()->page($this->requested_ref_id);
49 $this->ot = $domain->wiki()->translation($this->requested_ref_id);
52 $this->wiki_id = $a_wiki_id;
56 if ($this->ot->getContentTranslationActivated()) {
59 $this->
addColumn($this->
lng->txt(
"wiki_last_changed_by"));
63 "tpl.table_row_recent_changes.html",
64 "components/ILIAS/Wiki" 70 $this->
setTitle($this->
lng->txt(
"wiki_recent_changes"));
76 foreach ($this->pm->getRecentChanges() as $pi) {
78 "date" => $pi->getLastChange(),
79 "user" => $pi->getLastChangedUser(),
81 "title" => $pi->getTitle(),
82 "lang" => $pi->getLanguage(),
83 "nr" => $pi->getOldNr()
91 protected function fillRow(array $a_set): void
95 if ($this->ot->getContentTranslationActivated()) {
98 $l = $this->ot->getBaseLanguage();
100 $this->tpl->setCurrentBlock(
"lang");
101 $this->tpl->setVariable(
"LANG", $this->
lng->txt(
"meta_l_" . $l));
102 $this->tpl->parseCurrentBlock();
106 $this->tpl->setVariable(
"TXT_PAGE_TITLE",
$title);
107 $this->tpl->setVariable(
111 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"wpg_id", $a_set[
"id"]);
112 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"transl", $a_set[
"lang"]);
113 $ilCtrl->setParameterByClass(
"ilwikipagegui",
"old_nr", $a_set[
"nr"] ??
"");
114 $this->tpl->setVariable(
116 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"preview")
120 $this->tpl->setVariable(
126 $ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd())
setFormAction(string $a_form_action, bool $a_multipart=false)
Class handles translation mode for an object.
ILIAS Wiki Page PageManager $pm
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
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='ilpublicuserprofilegui')
Default behaviour is:
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_wiki_id)
TableGUI class for recent changes in wiki.
setEnableHeader(bool $a_enableheader)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...