Версия: 6.x
burger close
Класс IncomingMailAttachment

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

 __get (string $name)
 
 setFilePath (string $filePath)
 
 addDataPartInfo (DataPartInfo $dataInfo)
 
 getFileInfo (int $fileinfo_const=FILEINFO_NONE)
 
 getContents ()
 
 saveToDisk ()
 

Поля данных

 $id
 
 $contentId
 
 $type
 
 $encoding
 
 $subtype
 
 $description
 
 $name
 
 $sizeInBytes
 
 $disposition
 
 $charset
 
 $emlOrigin
 
 $fileInfoRaw
 
 $fileInfo
 
 $mime
 
 $mimeEncoding
 
 $fileExtension
 
 $mimeType
 

Методы

__get ( string  $name)
Возвращает
false|string
addDataPartInfo ( DataPartInfo  $dataInfo)

Sets the data part info.

Аргументы
DataPartInfo$dataInfoDate info (file content)
getContents ( )

Gets the file content.

getFileInfo ( int  $fileinfo_const = FILEINFO_NONE)

Gets information about a file.

Аргументы
int$fileinfo_constAny predefined constant. See https://www.php.net/manual/en/fileinfo.constants.php

-param fileinfoconst $fileinfo_const

saveToDisk ( )

Saves the attachment object on the disk.

Возвращает
bool True, if it could save the attachment on the disk
setFilePath ( string  $filePath)

Sets the file path.

Аргументы
string$filePathFile path incl. file name and optional extension

Поля

$charset
$contentId
$description
$disposition
$emlOrigin
$encoding
$fileExtension
$fileInfo
$fileInfoRaw
$id
$mime
$mimeEncoding
$mimeType
$name
$sizeInBytes
$subtype
$type