ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Mail\Mime\MailMimeAttachment Class Reference
+ Collaboration diagram for ILIAS\Mail\Mime\MailMimeAttachment:

Public Member Functions

 isResource ()
 
 getPath ()
 
 getResourceIdentification ()
 
 getMimeType ()
 
 getDisposition ()
 
 getDisplayName ()
 

Static Public Member Functions

static fromPath (string $path, string $mime_type='', string $disposition='inline', ?string $display_name=null)
 
static fromResource (ResourceIdentification $resource_identification, string $display_name, string $mime_type='', string $disposition='inline')
 

Private Member Functions

 __construct (private readonly ?string $path, private readonly ?ResourceIdentification $resource_identification, private readonly string $mime_type, private readonly string $disposition, private readonly string $display_name,)
 

Detailed Description

Definition at line 25 of file MailMimeAttachment.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Mail\Mime\MailMimeAttachment::__construct ( private readonly ?string  $path,
private readonly ?ResourceIdentification  $resource_identification,
private readonly string  $mime_type,
private readonly string  $disposition,
private readonly string  $display_name 
)
private

Definition at line 27 of file MailMimeAttachment.php.

33 {
34 }

Member Function Documentation

◆ fromPath()

static ILIAS\Mail\Mime\MailMimeAttachment::fromPath ( string  $path,
string  $mime_type = '',
string  $disposition = 'inline',
?string  $display_name = null 
)
static

Definition at line 36 of file MailMimeAttachment.php.

41 : self {
42 return new self(
43 $path,
44 null,
45 $mime_type !== '' ? $mime_type : 'application/octet-stream',
46 $disposition,
47 $display_name ?? ''
48 );
49 }

◆ fromResource()

static ILIAS\Mail\Mime\MailMimeAttachment::fromResource ( ResourceIdentification  $resource_identification,
string  $display_name,
string  $mime_type = '',
string  $disposition = 'inline' 
)
static

Definition at line 51 of file MailMimeAttachment.php.

56 : self {
57 return new self(
58 null,
59 $resource_identification,
60 $mime_type !== '' ? $mime_type : 'application/octet-stream',
61 $disposition,
62 $display_name
63 );
64 }

◆ getDisplayName()

ILIAS\Mail\Mime\MailMimeAttachment::getDisplayName ( )

Definition at line 91 of file MailMimeAttachment.php.

91 : string
92 {
93 return $this->display_name;
94 }

Referenced by ilMailMimeTransportBase\addMimeAttachment(), and ilMailMimeTransportBase\addResourceAttachment().

+ Here is the caller graph for this function:

◆ getDisposition()

ILIAS\Mail\Mime\MailMimeAttachment::getDisposition ( )

Definition at line 86 of file MailMimeAttachment.php.

86 : string
87 {
88 return $this->disposition;
89 }

Referenced by ilMailMimeTransportBase\addMimeAttachment(), and ilMailMimeTransportBase\addResourceAttachment().

+ Here is the caller graph for this function:

◆ getMimeType()

ILIAS\Mail\Mime\MailMimeAttachment::getMimeType ( )

Definition at line 81 of file MailMimeAttachment.php.

81 : string
82 {
83 return $this->mime_type;
84 }

Referenced by ilMailMimeTransportBase\addMimeAttachment(), and ilMailMimeTransportBase\addResourceAttachment().

+ Here is the caller graph for this function:

◆ getPath()

ILIAS\Mail\Mime\MailMimeAttachment::getPath ( )

Definition at line 71 of file MailMimeAttachment.php.

71 : ?string
72 {
73 return $this->path;
74 }

Referenced by ilMailMimeTransportBase\addMimeAttachment().

+ Here is the caller graph for this function:

◆ getResourceIdentification()

ILIAS\Mail\Mime\MailMimeAttachment::getResourceIdentification ( )

Definition at line 76 of file MailMimeAttachment.php.

77 {
78 return $this->resource_identification;
79 }

Referenced by ilMailMimeTransportBase\addResourceAttachment().

+ Here is the caller graph for this function:

◆ isResource()

ILIAS\Mail\Mime\MailMimeAttachment::isResource ( )

Definition at line 66 of file MailMimeAttachment.php.

66 : bool
67 {
68 return $this->resource_identification !== null;
69 }

Referenced by ilMailMimeTransportBase\addMimeAttachment().

+ Here is the caller graph for this function:

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