Версия: 6.x
burger close
Класс IncomingMail
Граф наследования:IncomingMail:
IncomingMailHeader

Открытые члены

 __isset (string $name)
 
 setHeader (IncomingMailHeader $header)
 
 addDataPartInfo (DataPartInfo $dataInfo, int $type)
 
 addAttachment (IncomingMailAttachment $attachment)
 
 setHasAttachments (bool $hasAttachments)
 
 hasAttachments ()
 
 getAttachments ()
 
 removeAttachment (string $id)
 
 getInternalLinksPlaceholders ()
 
 replaceInternalLinks (string $baseUri)
 

Защищенные данные

 $attachments = []
 
 $hasAttachments = false
 
 $dataInfo = [[], []]
 

Дополнительные унаследованные члены

- Поля данных унаследованные от IncomingMailHeader
 $id
 
 $imapPath
 
 $mailboxFolder
 
 $isSeen = false
 
 $isAnswered = false
 
 $isRecent = false
 
 $isFlagged = false
 
 $isDeleted = false
 
 $isDraft = false
 
 $date
 
 $headersRaw
 
 $headers
 
 $mimeVersion
 
 $xVirusScanned
 
 $organization
 
 $contentType
 
 $xMailer
 
 $contentLanguage
 
 $xSenderIp
 
 $priority
 
 $importance
 
 $sensitivity
 
 $autoSubmitted
 
 $precedence
 
 $failedRecipients
 
 $subject
 
 $fromHost
 
 $fromName
 
 $fromAddress
 
 $senderHost
 
 $senderName
 
 $senderAddress
 
 $xOriginalTo
 
 $to = []
 
 $toString
 
 $cc = []
 
 $ccString
 
 $bcc = []
 
 $replyTo = []
 
 $messageId
 

Методы

__isset ( string  $name)

The method __isset() is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.

Аргументы
string$nameName of the property (eg. textPlain)
Возвращает
bool True, if property is set or empty
addAttachment ( IncomingMailAttachment  $attachment)
addDataPartInfo ( DataPartInfo  $dataInfo,
int  $type 
)
getAttachments ( )
Возвращает
IncomingMailAttachment[]
getInternalLinksPlaceholders ( )

Get array of internal HTML links placeholders.

Возвращает
array attachmentId => link placeholder

-return array<string, string>

-var array{1:list<string>, 2:list<string>}

hasAttachments ( )

Returns, if the mail has attachments or not.

Возвращает
bool true or false
removeAttachment ( string  $id)
Аргументы
string$idThe attachment id
replaceInternalLinks ( string  $baseUri)

-var string

setHasAttachments ( bool  $hasAttachments)

Sets property $hasAttachments.

Аргументы
bool$hasAttachmentsTrue, if IncomingMail[] has one or more attachments
setHeader ( IncomingMailHeader  $header)

-var array<string, scalar|array|object|null>

Поля

$attachments = []
protected
$dataInfo = [[], []]
protected
$hasAttachments = false
protected