ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
PageInfo.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Wiki\Page;
22 
26 class PageInfo
27 {
28  protected int $old_nr;
29  protected int $id;
30  protected string $title;
31  protected string $lang = "-";
32  protected int $last_change_user;
33  protected string $last_change;
34  protected int $create_user;
35  protected int $view_cnt;
36  protected string $created;
37 
38  public function __construct(
39  int $id,
40  string $lang,
41  string $title,
42  int $last_change_user,
43  string $last_change,
44  int $create_user,
45  string $created,
46  int $view_cnt,
47  int $old_nr
48  ) {
49  $this->id = $id;
50  $this->title = $title;
51  $this->lang = $lang;
52  $this->last_change_user = $last_change_user;
53  $this->last_change = $last_change;
54  $this->create_user = $create_user;
55  $this->created = $created;
56  $this->view_cnt = $view_cnt;
57  $this->old_nr = $old_nr;
58  }
59 
60  public function getId(): int
61  {
62  return $this->id;
63  }
64  public function getTitle(): string
65  {
66  return $this->title;
67  }
68  public function getLanguage(): string
69  {
70  return $this->lang;
71  }
72  public function getLastChangedUser(): int
73  {
75  }
76  public function getLastChange(): string
77  {
78  return $this->last_change;
79  }
80  public function getCreateUser(): int
81  {
82  return $this->create_user;
83  }
84  public function getCreated(): string
85  {
86  return $this->created;
87  }
88  public function getViewCnt(): int
89  {
90  return $this->view_cnt;
91  }
92 
93  public function getOldNr(): int
94  {
95  return $this->old_nr;
96  }
97 }
Wiki page info.
Definition: PageInfo.php:26
__construct(int $id, string $lang, string $title, int $last_change_user, string $last_change, int $create_user, string $created, int $view_cnt, int $old_nr)
Definition: PageInfo.php:38