ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Settings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Blog\Settings;
22
24{
25 public function __construct(
26 protected int $id,
27 protected bool $profile_picture,
28 protected string $bg_color,
29 protected string $font_color,
30 protected bool $rss_active,
31 protected bool $approval,
32 protected bool $abs_shorten,
33 protected int $abs_shorten_len,
34 protected bool $abs_image,
35 protected int $abs_img_width,
36 protected int $abs_img_height,
37 protected bool $keywords,
38 protected bool $authors,
39 protected int $nav_mode,
40 protected int $nav_list_mon_with_post,
41 protected int $nav_list_mon,
42 protected int $ov_post,
43 protected array $nav_order
44 ) {
45 }
46
47 public function getId(): int
48 {
49 return $this->id;
50 }
51
52 public function withId(int $id): self
53 {
54 $clone = clone $this;
55 $clone->id = $id;
56 return $clone;
57 }
58
59 public function getProfilePicture(): bool
60 {
61 return $this->profile_picture;
62 }
63
64 public function getBackgroundColor(): string
65 {
66 return $this->bg_color;
67 }
68
69 public function getFontColor(): string
70 {
71 return $this->font_color;
72 }
73
74 public function getRSS(): bool
75 {
76 return $this->rss_active;
77 }
78
79 public function getApproval(): bool
80 {
81 return $this->approval;
82 }
83
84 public function getAbstractShorten(): bool
85 {
86 return $this->abs_shorten;
87 }
88
89 public function getAbstractShortenLength(): int
90 {
91 return $this->abs_shorten_len;
92 }
93
94 public function getAbstractImage(): bool
95 {
96 return $this->abs_image;
97 }
98
99 public function getAbstractImageWidth(): int
100 {
101 return $this->abs_img_width;
102 }
103
104 public function getAbstractImageHeight(): int
105 {
106 return $this->abs_img_height;
107 }
108
109 public function getKeywords(): bool
110 {
111 return $this->keywords;
112 }
113
114 public function getAuthors(): bool
115 {
116 return $this->authors;
117 }
118
119 public function getNavMode(): int
120 {
121 return $this->nav_mode;
122 }
123
125 {
126 return $this->nav_list_mon_with_post;
127 }
128
129 public function getNavModeListMonths(): int
130 {
131 return $this->nav_list_mon;
132 }
133
134 public function getOverviewPostings(): int
135 {
136 return $this->ov_post;
137 }
138
139 public function getOrder(): array
140 {
141 return $this->nav_order;
142 }
143}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(protected int $id, protected bool $profile_picture, protected string $bg_color, protected string $font_color, protected bool $rss_active, protected bool $approval, protected bool $abs_shorten, protected int $abs_shorten_len, protected bool $abs_image, protected int $abs_img_width, protected int $abs_img_height, protected bool $keywords, protected bool $authors, protected int $nav_mode, protected int $nav_list_mon_with_post, protected int $nav_list_mon, protected int $ov_post, protected array $nav_order)
Definition: Settings.php:25