ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
MailFolderData.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Mail\Folder
;
22
23
class
MailFolderData
24
{
25
public
function
__construct
(
26
private
readonly
int
$folder_id,
27
private
readonly
int
$user_id
,
28
private
readonly
MailFolderType
$type,
29
private
readonly
string
$title
30
) {
31
}
32
33
public
function
getFolderId
():
int
34
{
35
return
$this->folder_id;
36
}
37
38
public
function
getUserId
():
int
39
{
40
return
$this->user_id
;
41
}
42
43
public
function
getTitle
(): string
44
{
45
return
$this->title;
46
}
47
48
public
function
getType
():
MailFolderType
49
{
50
return
$this->type;
51
}
52
53
public
function
isInbox
(): bool
54
{
55
return
$this->type === MailFolderType::INBOX;
56
}
57
58
public
function
isDrafts
(): bool
59
{
60
return
$this->type === MailFolderType::DRAFTS;
61
}
62
63
public
function
isSent
(): bool
64
{
65
return
$this->type === MailFolderType::SENT;
66
}
67
68
public
function
isTrash
(): bool
69
{
70
return
$this->type === MailFolderType::TRASH;
71
}
72
73
public
function
isUserLocalFolder
(): bool
74
{
75
return
$this->type === MailFolderType::LOCAL;
76
}
77
78
public
function
isUserFolder
(): bool
79
{
80
return
$this->type ===
MailFolderType::USER
;
81
}
82
83
public
function
hasIncomingMails
(): bool
84
{
85
return
!$this->
isDrafts
() && !$this->
isSent
();
86
}
87
88
public
function
hasOutgoingMails
(): bool
89
{
90
return
$this->
isDrafts
() || $this->
isSent
();
91
}
92
}
ILIAS\Mail\Folder\MailFolderData\hasOutgoingMails
hasOutgoingMails()
Definition:
MailFolderData.php:88
ILIAS\Mail\Folder\MailFolderData\isUserLocalFolder
isUserLocalFolder()
Definition:
MailFolderData.php:73
ILIAS\Mail\Folder\MailFolderData\isInbox
isInbox()
Definition:
MailFolderData.php:53
ILIAS\Mail\Folder\MailFolderData\getUserId
getUserId()
Definition:
MailFolderData.php:38
ILIAS\Mail\Folder\MailFolderData
Definition:
MailFolderData.php:23
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
ILIAS\Mail\Folder\MailFolderData\getType
getType()
Definition:
MailFolderData.php:48
ILIAS\Mail\Folder\USER
Definition:
MailFolderType.php:31
ILIAS\Mail\Folder\MailFolderData\getFolderId
getFolderId()
Definition:
MailFolderData.php:33
ILIAS\Mail\Folder\MailFolderData\isTrash
isTrash()
Definition:
MailFolderData.php:68
ILIAS\Mail\Folder\MailFolderType
MailFolderType
Definition:
MailFolderType.php:23
ILIAS\Mail\Folder\MailFolderData\getTitle
getTitle()
Definition:
MailFolderData.php:43
ILIAS\Mail\Folder
Definition:
MailFilterData.php:21
ILIAS\Mail\Folder\MailFolderData\isDrafts
isDrafts()
Definition:
MailFolderData.php:58
ILIAS\Mail\Folder\MailFolderData\isUserFolder
isUserFolder()
Definition:
MailFolderData.php:78
ILIAS\Mail\Folder\MailFolderData\__construct
__construct(private readonly int $folder_id, private readonly int $user_id, private readonly MailFolderType $type, private readonly string $title)
Definition:
MailFolderData.php:25
ILIAS\Mail\Folder\MailFolderData\hasIncomingMails
hasIncomingMails()
Definition:
MailFolderData.php:83
ILIAS\Mail\Folder\MailFolderData\isSent
isSent()
Definition:
MailFolderData.php:63
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
Mail
classes
Folder
MailFolderData.php
Generated on Thu Apr 10 2025 23:03:34 for ILIAS by
1.8.13 (using
Doxyfile
)