ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Page.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26class Page
27{
28 protected int $id;
29 protected int $wiki_id;
30 protected string $title;
31 protected string $lang = "-";
32 protected bool $blocked = false;
33 protected bool $rating = false;
34 protected bool $hide_adv_md = false;
35
36 public function __construct(
37 int $id,
38 int $wiki_id,
39 string $title,
40 string $lang = "-",
41 bool $blocked = false,
42 bool $rating = false,
43 bool $hide_adv_md = false
44 ) {
45 $this->id = $id;
46 $this->wiki_id = $wiki_id;
47 $this->title = $title;
48 $this->lang = $lang;
49 $this->blocked = $blocked;
50 $this->rating = $rating;
51 $this->hide_adv_md = $hide_adv_md;
52 }
53
54 public function getId(): int
55 {
56 return $this->id;
57 }
58 public function getWikiId(): int
59 {
60 return $this->wiki_id;
61 }
62 public function getTitle(): string
63 {
64 return $this->title;
65 }
66 public function getLanguage(): string
67 {
68 return $this->lang;
69 }
70 public function getBlocked(): bool
71 {
72 return $this->blocked;
73 }
74 public function getRating(): bool
75 {
76 return $this->rating;
77 }
78 public function getHideAdvMetadata(): bool
79 {
80 return $this->hide_adv_md;
81 }
82
83}
Wiki page.
Definition: Page.php:27
__construct(int $id, int $wiki_id, string $title, string $lang="-", bool $blocked=false, bool $rating=false, bool $hide_adv_md=false)
Definition: Page.php:36