ILIAS  release_8 Revision v8.24
ilOSDNotificationObject.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
25
30{
31 protected int $id;
32 protected int $user;
34 protected int $time_added = 0;
35 protected int $valid_until = 0;
36 protected int $visible_for = 0;
37 protected string $type;
39
40 public function __construct(
41 int $id,
42 int $user,
44 ?int $time_added = 0,
45 ?int $valid_until = 0,
46 ?int $visible_for = 0,
47 ?string $type = '',
49 ) {
50 $this->id = $id;
51 $this->user = $user;
52 $this->object = $object;
53 $this->time_added = $time_added;
54 $this->valid_until = $valid_until;
55 $this->visible_for = $visible_for;
56 $this->type = $type;
57 $this->identification = $identification;
58 }
59
60 public function getId(): int
61 {
62 return $this->id;
63 }
64
65 public function getUser(): int
66 {
67 return $this->user;
68 }
69
71 {
72 return $this->object;
73 }
74
75 public function getValidUntil(): int
76 {
77 return $this->valid_until;
78 }
79
80 public function setValidUntil(int $valid_until): void
81 {
82 $this->valid_until = $valid_until;
83 }
84
85 public function getVisibleFor(): int
86 {
87 return $this->visible_for;
88 }
89
90 public function setVisibleFor(int $visible_for): void
91 {
92 $this->visible_for = $visible_for;
93 }
94
95 public function getTimeAdded(): int
96 {
97 return $this->time_added;
98 }
99
100 public function setTimeAdded(int $time_added): void
101 {
102 $this->time_added = $time_added;
103 }
104
105 public function getType(): string
106 {
107 return $this->type;
108 }
109
110 public function setType(string $type): void
111 {
112 $this->type = $type;
113 }
114
116 {
118 }
119
121 {
122 $this->identification = $identification;
123 }
124}
setIdentification(NotificationIdentification $identification)
__construct(int $id, int $user, ilNotificationObject $object, ?int $time_added=0, ?int $valid_until=0, ?int $visible_for=0, ?string $type='', ?NotificationIdentification $identification=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...