36     protected \ILIAS\Wiki\Page\PageManager 
$pm;
    51         $this->lang = ($lang == 
"")
    57         $this->
ctrl = $gui->ctrl();
    58         $this->
lng = $domain->lng();
    59         $this->requested_ref_id = $gui
    62         $this->requested_lang = $gui->request()->getTranslation();
    63         $this->pm = $domain->page()->page($this->requested_ref_id);
    64         $this->link_manager = $domain->links($this->requested_ref_id);
    65         $this->ot = $domain->wiki()->translation($a_wiki_id);
    68         $this->pg_list_mode = $a_mode;
    69         $this->wiki_id = $a_wiki_id;
    70         $this->page_id = $a_page_id;
    72         switch ($this->pg_list_mode) {
    77                 $this->
addColumn($this->
lng->txt(
"wiki_created_by"), 
"user_sort");
    79                     "tpl.table_row_wiki_new_page.html",
    87                 $this->
addColumn($this->
lng->txt(
"wiki_page_hits"), 
"cnt");
    89                     "tpl.table_row_wiki_popular_page.html",
    98                     "tpl.table_row_wiki_orphaned_page.html",
   104                 $this->
addColumn($this->
lng->txt(
"wiki_page"), 
"title");
   105                 $this->
addColumn($this->
lng->txt(
"wiki_last_changed"), 
"date");
   109                 $this->
addColumn($this->
lng->txt(
"wiki_last_changed_by"), 
"user_sort");
   111                     "tpl.table_row_wiki_page.html",
   122         switch ($this->pg_list_mode) {
   126                         $this->
lng->txt(
"wiki_what_links_to_page"),
   133                 $this->
setTitle($this->
lng->txt(
"wiki_" . $a_mode . 
"_pages"));
   140         if ($this->ot->getContentActivated()) {
   147         if ($this->ot->getContentActivated()) {
   157         switch ($this->pg_list_mode) {
   159                 foreach ($this->link_manager->getLinksToPage($this->page_id, $this->lang) as $pi) {
   161                         "date" => $pi->getLastChange(),
   162                         "id" => $pi->getId(),
   163                         "user" => $pi->getLastChangedUser(),
   164                         "title" => $pi->getTitle(),
   165                         "lang" => $pi->getLanguage()
   171                 foreach ($this->pm->getAllPagesInfo() as $pi) {
   173                         "date" => $pi->getLastChange(),
   174                         "id" => $pi->getId(),
   175                         "user" => $pi->getLastChangedUser(),
   176                         "title" => $pi->getTitle()
   185                 foreach ($this->pm->getNewPages() as $pi) {
   187                         "created" => $pi->getCreated(),
   188                         "id" => $pi->getId(),
   189                         "user" => $pi->getCreateUser(),
   190                         "title" => $pi->getTitle(),
   191                         "lang" => $pi->getLanguage()
   200                 foreach ($this->pm->getPopularPages() as $pi) {
   202                         "id" => $pi->getId(),
   203                         "title" => $pi->getTitle(),
   204                         "lang" => $pi->getLanguage(),
   205                         "cnt" => $pi->getViewCnt(),
   211                 foreach ($this->pm->getOrphanedPages() as $pi) {
   213                         "id" => $pi->getId(),
   214                         "title" => $pi->getTitle(),
   215                         "date" => $pi->getLastChange()
   223             foreach (array_keys($pages) as $idx) {
   224                 if (isset($pages[$idx][
"user"])) {
   235         if ($a_field === 
"cnt") {
   241     protected function fillRow(array $a_set): void
   247                 $l = $a_set[
"lang"] === 
"-"   248                     ? $this->ot->getMasterLanguage()
   250                 $this->tpl->setCurrentBlock(
"lang");
   251                 $this->tpl->setVariable(
"LANG", $this->
lng->txt(
"meta_l_" . $l));
   252                 $this->tpl->parseCurrentBlock();
   254             $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
   255             $this->tpl->setVariable(
   260             if ($this->ot->getContentActivated()) {
   261                 $l = $a_set[
"lang"] === 
"-"   262                     ? $this->ot->getMasterLanguage()
   264                 $this->tpl->setCurrentBlock(
"lang");
   265                 $this->tpl->setVariable(
"LANG", $this->
lng->txt(
"meta_l_" . $l));
   266                 $this->tpl->parseCurrentBlock();
   268             $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
   269             $this->tpl->setVariable(
"HITS", $a_set[
"cnt"]);
   271             $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
   272             $this->tpl->setVariable(
   277                 $this->tpl->setCurrentBlock(
"lang");
   278                 $this->tpl->setVariable(
"LANG", implode(
", ", $this->pm->getLanguages($a_set[
"id"])));
   279                 $this->tpl->parseCurrentBlock();
   282         $this->tpl->setVariable(
   284             $this->pm->getPermaLink($a_set[
"id"], $a_set[
"lang"] ?? 
"")
   288         $this->tpl->setVariable(
   294                 $ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd())
 
ILIAS Wiki Links LinkManager $link_manager
 
const IL_WIKI_POPULAR_PAGES
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
static lookupTitle(int $a_page_id, string $lang="-")
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
TableGUI class for wiki pages table. 
 
numericOrdering(string $a_field)
 
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)
 
ILIAS Wiki Page PageManager $pm
 
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="")
 
const IL_WIKI_WHAT_LINKS_HERE
 
const IL_WIKI_ALL_PAGES
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_wiki_id, string $a_mode=IL_WIKI_ALL_PAGES, int $a_page_id=0, string $lang="-")
 
const IL_WIKI_ORPHANED_PAGES
 
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)
 
setEnableHeader(bool $a_enableheader)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...