Zend Framework
3.0
|
Class representing a MIME part. More...
Public Member Functions | |
__construct ($content= '') | |
create a new Mime Part. | |
setType ($type=Mime::TYPE_OCTETSTREAM) | |
Set type. | |
getType () | |
Get type. | |
setEncoding ($encoding=Mime::ENCODING_8BIT) | |
Set encoding. | |
getEncoding () | |
Get encoding. | |
setId ($id) | |
Set id. | |
getId () | |
Get id. | |
setDisposition ($disposition) | |
Set disposition. | |
getDisposition () | |
Get disposition. | |
setDescription ($description) | |
Set description. | |
getDescription () | |
Get description. | |
setFileName ($fileName) | |
Set filename. | |
getFileName () | |
Get filename. | |
setCharset ($charset) | |
Set charset. | |
getCharset () | |
Get charset. | |
setBoundary ($boundary) | |
Set boundary. | |
getBoundary () | |
Get boundary. | |
setLocation ($location) | |
Set location. | |
getLocation () | |
Get location. | |
setLanguage ($language) | |
Set language. | |
getLanguage () | |
Get language. | |
setContent ($content) | |
Set content. | |
setIsStream ($isStream=false) | |
Set isStream. | |
getIsStream () | |
Get isStream. | |
setFilters ($filters=[]) | |
Set filters. | |
getFilters () | |
Get Filters. | |
isStream () | |
check if this part can be read as a stream. | |
getEncodedStream ($EOL=Mime::LINEEND) | |
if this was created with a stream, return a filtered stream for reading the content. | |
getContent ($EOL=Mime::LINEEND) | |
Get the Content of the current Mime Part in the given encoding. | |
getRawContent () | |
Get the RAW unencoded content from this part. | |
getHeadersArray ($EOL=Mime::LINEEND) | |
Create and return the array of headers for this MIME part. | |
getHeaders ($EOL=Mime::LINEEND) | |
Return the headers for this part as a string. | |
Public Attributes | |
$type = Mime::TYPE_OCTETSTREAM | |
$encoding = Mime::ENCODING_8BIT | |
$id | |
$disposition | |
$filename | |
$description | |
$charset | |
$boundary | |
$location | |
$language | |
Protected Attributes | |
$content | |
$isStream = false | |
$filters = [] | |
Class representing a MIME part.
__construct | ( | $content = '' | ) |
getBoundary | ( | ) |
Get boundary.
getCharset | ( | ) |
Get charset.
getContent | ( | $EOL = Mime::LINEEND | ) |
getDescription | ( | ) |
Get description.
getDisposition | ( | ) |
Get disposition.
getEncodedStream | ( | $EOL = Mime::LINEEND | ) |
if this was created with a stream, return a filtered stream for reading the content.
very useful for large file attachments.
string | $EOL |
Exception\RuntimeException | if not a stream or unable to append filter |
getEncoding | ( | ) |
Get encoding.
getFileName | ( | ) |
Get filename.
getFilters | ( | ) |
Get Filters.
getHeaders | ( | $EOL = Mime::LINEEND | ) |
Return the headers for this part as a string.
string | $EOL |
getHeadersArray | ( | $EOL = Mime::LINEEND | ) |
Create and return the array of headers for this MIME part.
public
string | $EOL |
getId | ( | ) |
Get id.
getIsStream | ( | ) |
Get isStream.
getLanguage | ( | ) |
Get language.
getLocation | ( | ) |
Get location.
getRawContent | ( | ) |
Get the RAW unencoded content from this part.
getType | ( | ) |
Get type.
isStream | ( | ) |
check if this part can be read as a stream.
if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part
setBoundary | ( | $boundary | ) |
Set boundary.
string | $boundary |
setCharset | ( | $charset | ) |
Set charset.
string | $type |
setContent | ( | $content | ) |
Set content.
mixed | $content | String or Stream containing the content |
Exception\InvalidArgumentException |
setDescription | ( | $description | ) |
Set description.
string | $description |
setDisposition | ( | $disposition | ) |
Set disposition.
string | $disposition |
setEncoding | ( | $encoding = Mime::ENCODING_8BIT | ) |
Set encoding.
string | $encoding |
setFileName | ( | $fileName | ) |
Set filename.
string | $fileName |
setFilters | ( | $filters = [] | ) |
Set filters.
array | $filters |
setId | ( | $id | ) |
Set id.
string | $id |
setIsStream | ( | $isStream = false | ) |
Set isStream.
bool | $isStream |
setLanguage | ( | $language | ) |
Set language.
string | $language |
setLocation | ( | $location | ) |
Set location.
string | $location |
setType | ( | $type = Mime::TYPE_OCTETSTREAM | ) |
Set type.
error checking for setting $type
error checking for setting $encoding
string | $type |
$boundary |
$charset |
|
protected |
$description |
$disposition |
$encoding = Mime::ENCODING_8BIT |
$filename |
|
protected |
$id |
|
protected |
$language |
$location |
$type = Mime::TYPE_OCTETSTREAM |