Collection of static methods that return callables for common IMultiPart child filters.
- author Zaahid Bateson
Methods |
public static fromAttachmentFilter() : callable Provides an 'attachment' filter used by Message::getAttachmentPart. The method filters out the following types of parts:
|
public static fromContentType(string $mimeType) : callable Includes only parts that match the passed $mimeType in the return value of a call to 'getContentType()'.
|
public static fromDisposition(string $disposition, bool $includeMultipart = false, bool $includeSignedParts = false) : callable Finds parts with the passed disposition (matching against IMessagePart::getContentDisposition()), optionally including multipart parts and signed parts.
|
public static fromHeaderValue(string $name, string $value, bool $excludeSignedParts = true) : callable Provides a filter that keeps parts that contain a header of $name with a value that matches $value (case insensitive). By default signed parts are excluded. Pass FALSE to the third parameter to include them.
|
public static fromInlineContentType(string $mimeType) : callable Returns parts matching $mimeType that do not have a Content-Disposition set to 'attachment'.
|
Methods |
public static fromAttachmentFilter() : callable Provides an 'attachment' filter used by Message::getAttachmentPart. The method filters out the following types of parts:
|
public static fromContentType(string $mimeType) : callable Includes only parts that match the passed $mimeType in the return value of a call to 'getContentType()'.
|
public static fromDisposition(string $disposition, bool $includeMultipart = false, bool $includeSignedParts = false) : callable Finds parts with the passed disposition (matching against IMessagePart::getContentDisposition()), optionally including multipart parts and signed parts.
|
public static fromHeaderValue(string $name, string $value, bool $excludeSignedParts = true) : callable Provides a filter that keeps parts that contain a header of $name with a value that matches $value (case insensitive). By default signed parts are excluded. Pass FALSE to the third parameter to include them.
|
public static fromInlineContentType(string $mimeType) : callable Returns parts matching $mimeType that do not have a Content-Disposition set to 'attachment'.
|