Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
add_content_from_file ( string $filepath, string $name = null ) : string | Add file contents to the MIME request. | |
add_json_string ( string $name, string $filename, string $content ) : string | Add a JSON string to the MIME request. | |
add_metadata ( mixed $meta ) : string | Add metadata to the MIME request. | |
boundary ( ) : string | Get the boundary. | |
close ( ) : string | Close a file added to the MIME request. | |
get_debug_content ( array $args ) : string | Gets the debug version of the MIME content |
Method | Description | |
---|---|---|
build_attachment ( string $name, string $filename, string $content, string $mime_type, integer $size ) : string | Build an attachment in the MIME request. | |
get_mime_type_for ( string $filepath ) : string | Get the MIME type for a file. | |
is_valid_mime_type ( string $type ) : boolean | Check if this file is a valid MIME type to be included in the bundle. |
public add_metadata ( mixed $meta ) : string | ||
$meta | mixed | |
return | string |
public get_debug_content ( array $args ) : string | ||
$args | array | |
return | string |