ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.Note.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Notes
;
22
26
class
Note
27
{
28
public
const
PRIVATE
= 1;
29
public
const
PUBLIC
= 2;
30
public
const
MESSAGE
= 3;
31
32
protected
int
$id
= 0;
33
protected
?
string
$update_date
;
34
protected
?
string
$creation_date
;
35
protected
int
$author
= 0;
36
protected
int
$type
= 0;
37
protected
string
$text
=
""
;
38
protected
int
$recipient
= 0;
39
protected
Context
$context
;
40
41
public
function
__construct
(
42
int
$id,
43
Context
$context,
44
string
$text,
45
int
$author,
46
int
$type = self::PRIVATE,
47
?
string
$creation_date =
null
,
48
?
string
$update_date =
null
,
49
?
int
$recipient = 0
50
) {
51
$this->
id
=
$id
;
52
$this->context =
$context
;
53
$this->text =
$text
;
54
$this->author =
$author
;
55
$this->type =
$type
;
56
$this->update_date =
$update_date
;
57
$this->creation_date =
$creation_date
;
58
$this->recipient =
$recipient
;
59
}
60
61
public
function
withCreationDate
(
string
$creation_date): self
62
{
63
$note = clone $this;
64
$note->creation_date =
$creation_date
;
65
return
$note;
66
}
67
68
public
function
getId
():
int
69
{
70
return
$this->id
;
71
}
72
73
public
function
getContext
():
Context
74
{
75
return
$this->context
;
76
}
77
78
public
function
getText
(): string
79
{
80
return
$this->text
;
81
}
82
83
public
function
getAuthor
():
int
84
{
85
return
$this->author
;
86
}
87
88
public
function
getType
():
int
89
{
90
return
$this->type
;
91
}
92
93
public
function
getCreationDate
(): ?string
94
{
95
return
$this->creation_date
;
96
}
97
98
public
function
getUpdateDate
(): ?string
99
{
100
return
$this->update_date
;
101
}
102
103
public
function
getRecipient
():
int
104
{
105
return
$this->recipient
;
106
}
107
108
}
ILIAS\Notes\Note\getUpdateDate
getUpdateDate()
Definition:
class.Note.php:98
ILIAS\Notes\Note\getId
getId()
Definition:
class.Note.php:68
ILIAS\Notes\Note\$type
int $type
Definition:
class.Note.php:36
ILIAS\Notes\Note\getText
getText()
Definition:
class.Note.php:78
ILIAS\Notes\Note\$context
Context $context
Definition:
class.Note.php:39
ILIAS\Notes\Note\getContext
getContext()
Definition:
class.Note.php:73
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\Notes\Note\$creation_date
string $creation_date
Definition:
class.Note.php:34
ILIAS\Notes
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.Context.php:21
ILIAS\Notes\Note\$id
int $id
Definition:
class.Note.php:32
ILIAS\Notes\Note\$recipient
int $recipient
Definition:
class.Note.php:38
ILIAS\Notes\Note\$author
int $author
Definition:
class.Note.php:35
ILIAS\Notes\Note\__construct
__construct(int $id, Context $context, string $text, int $author, int $type=self::PRIVATE, ?string $creation_date=null, ?string $update_date=null, ?int $recipient=0)
Definition:
class.Note.php:41
ILIAS\Notes\Note
Definition:
class.Note.php:26
ILIAS\Notes\Note\getAuthor
getAuthor()
Definition:
class.Note.php:83
ILIAS\Notes\Note\$update_date
string $update_date
Definition:
class.Note.php:33
ILIAS\Notes\Note\getType
getType()
Definition:
class.Note.php:88
ILIAS\Notes\Note\withCreationDate
withCreationDate(string $creation_date)
Definition:
class.Note.php:61
ILIAS\Notes\Note\$text
string $text
Definition:
class.Note.php:37
ILIAS\Notes\Note\PRIVATE
const PRIVATE
Definition:
class.Note.php:28
ILIAS\Notes\Context
Definition:
class.Context.php:27
ILIAS\Notes\Note\getRecipient
getRecipient()
Definition:
class.Note.php:103
ILIAS\Notes\Note\MESSAGE
const MESSAGE
Definition:
class.Note.php:30
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Notes\Note\getCreationDate
getCreationDate()
Definition:
class.Note.php:93
ILIAS\Notes\Note\PUBLIC
const PUBLIC
Definition:
class.Note.php:29
components
ILIAS
Notes
Note
class.Note.php
Generated on Sun Aug 31 2025 23:03:28 for ILIAS by
1.8.13 (using
Doxyfile
)