ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Mail\Folder\MailFolderData Class Reference
+ Collaboration diagram for ILIAS\Mail\Folder\MailFolderData:

Public Member Functions

 __construct (private readonly int $folder_id, private readonly int $user_id, private readonly MailFolderType $type, private readonly string $title)
 
 getFolderId ()
 
 getUserId ()
 
 getTitle ()
 
 getType ()
 
 isInbox ()
 
 isDrafts ()
 
 isSent ()
 
 isTrash ()
 
 isUserLocalFolder ()
 
 isUserFolder ()
 
 hasIncomingMails ()
 
 hasOutgoingMails ()
 

Detailed Description

Definition at line 23 of file MailFolderData.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Mail\Folder\MailFolderData::__construct ( private readonly int  $folder_id,
private readonly int  $user_id,
private readonly MailFolderType  $type,
private readonly string  $title 
)

Definition at line 25 of file MailFolderData.php.

30  {
31  }

Member Function Documentation

◆ getFolderId()

ILIAS\Mail\Folder\MailFolderData::getFolderId ( )

Definition at line 33 of file MailFolderData.php.

33  : int
34  {
35  return $this->folder_id;
36  }

◆ getTitle()

ILIAS\Mail\Folder\MailFolderData::getTitle ( )

Definition at line 43 of file MailFolderData.php.

43  : string
44  {
45  return $this->title;
46  }

◆ getType()

ILIAS\Mail\Folder\MailFolderData::getType ( )

Definition at line 48 of file MailFolderData.php.

49  {
50  return $this->type;
51  }

◆ getUserId()

ILIAS\Mail\Folder\MailFolderData::getUserId ( )

Definition at line 38 of file MailFolderData.php.

References $user_id.

38  : int
39  {
40  return $this->user_id;
41  }

◆ hasIncomingMails()

ILIAS\Mail\Folder\MailFolderData::hasIncomingMails ( )

Definition at line 83 of file MailFolderData.php.

References ILIAS\Mail\Folder\MailFolderData\isDrafts(), and ILIAS\Mail\Folder\MailFolderData\isSent().

83  : bool
84  {
85  return !$this->isDrafts() && !$this->isSent();
86  }
+ Here is the call graph for this function:

◆ hasOutgoingMails()

ILIAS\Mail\Folder\MailFolderData::hasOutgoingMails ( )

Definition at line 88 of file MailFolderData.php.

References ILIAS\Mail\Folder\MailFolderData\isDrafts(), and ILIAS\Mail\Folder\MailFolderData\isSent().

88  : bool
89  {
90  return $this->isDrafts() || $this->isSent();
91  }
+ Here is the call graph for this function:

◆ isDrafts()

ILIAS\Mail\Folder\MailFolderData::isDrafts ( )

Definition at line 58 of file MailFolderData.php.

Referenced by ILIAS\Mail\Folder\MailFolderData\hasIncomingMails(), and ILIAS\Mail\Folder\MailFolderData\hasOutgoingMails().

58  : bool
59  {
60  return $this->type === MailFolderType::DRAFTS;
61  }
+ Here is the caller graph for this function:

◆ isInbox()

ILIAS\Mail\Folder\MailFolderData::isInbox ( )

Definition at line 53 of file MailFolderData.php.

53  : bool
54  {
55  return $this->type === MailFolderType::INBOX;
56  }

◆ isSent()

ILIAS\Mail\Folder\MailFolderData::isSent ( )

Definition at line 63 of file MailFolderData.php.

Referenced by ILIAS\Mail\Folder\MailFolderData\hasIncomingMails(), and ILIAS\Mail\Folder\MailFolderData\hasOutgoingMails().

63  : bool
64  {
65  return $this->type === MailFolderType::SENT;
66  }
+ Here is the caller graph for this function:

◆ isTrash()

ILIAS\Mail\Folder\MailFolderData::isTrash ( )

Definition at line 68 of file MailFolderData.php.

68  : bool
69  {
70  return $this->type === MailFolderType::TRASH;
71  }

◆ isUserFolder()

ILIAS\Mail\Folder\MailFolderData::isUserFolder ( )

Definition at line 78 of file MailFolderData.php.

References ILIAS\Mail\Folder\USER.

78  : bool
79  {
80  return $this->type === MailFolderType::USER;
81  }

◆ isUserLocalFolder()

ILIAS\Mail\Folder\MailFolderData::isUserLocalFolder ( )

Definition at line 73 of file MailFolderData.php.

73  : bool
74  {
75  return $this->type === MailFolderType::LOCAL;
76  }

The documentation for this class was generated from the following file: