ILIAS  release_8 Revision v8.24
LSItem.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
24class LSItem
25{
26 protected string $type;
27 protected string $title;
28 protected string $description;
29 protected string $icon_path;
30 protected bool $is_online;
31 protected int $order_number;
33 protected int $ref_id;
34
35 public function __construct(
36 string $type,
37 string $title,
38 string $description,
39 string $icon_path,
40 bool $is_online,
41 int $order_number,
43 int $ref_id
44 ) {
45 $this->type = $type;
46 $this->title = $title;
47 $this->description = $description;
48 $this->icon_path = $icon_path;
49 $this->is_online = $is_online;
50 $this->order_number = $order_number;
51 $this->post_condition = $post_condition;
52 $this->ref_id = $ref_id;
53 }
54
55 public function getType(): string
56 {
57 return $this->type;
58 }
59
60 public function getTitle(): string
61 {
62 return $this->title;
63 }
64
65 public function getDescription(): string
66 {
67 return $this->description;
68 }
69
70 public function getIconPath(): string
71 {
72 return $this->icon_path;
73 }
74
75 public function isOnline(): bool
76 {
77 return $this->is_online;
78 }
79
80 public function getOrderNumber(): int
81 {
83 }
84
86 {
88 }
89
90 public function getRefId(): int
91 {
92 return $this->ref_id;
93 }
94
95 public function withOnline(bool $online): LSItem
96 {
97 $clone = clone $this;
98 $clone->is_online = $online;
99 return $clone;
100 }
101
103 {
104 $clone = clone $this;
105 $clone->order_number = $order_number;
106 return $clone;
107 }
108
110 {
111 $clone = clone $this;
112 $clone->post_condition = $post_condition;
113 return $clone;
114 }
115}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:25
__construct(string $type, string $title, string $description, string $icon_path, bool $is_online, int $order_number, ilLSPostCondition $post_condition, int $ref_id)
Definition: LSItem.php:35
getRefId()
Definition: LSItem.php:90
ilLSPostCondition $post_condition
Definition: LSItem.php:32
withPostCondition(ilLSPostCondition $post_condition)
Definition: LSItem.php:109
getIconPath()
Definition: LSItem.php:70
getOrderNumber()
Definition: LSItem.php:80
string $type
Definition: LSItem.php:26
int $order_number
Definition: LSItem.php:31
getType()
Definition: LSItem.php:55
int $ref_id
Definition: LSItem.php:33
getDescription()
Definition: LSItem.php:65
withOrderNumber(int $order_number)
Definition: LSItem.php:102
getTitle()
Definition: LSItem.php:60
string $icon_path
Definition: LSItem.php:29
bool $is_online
Definition: LSItem.php:30
withOnline(bool $online)
Definition: LSItem.php:95
string $title
Definition: LSItem.php:27
getPostCondition()
Definition: LSItem.php:85
isOnline()
Definition: LSItem.php:75
string $description
Definition: LSItem.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...