PHP Класс Apple_Push_API\MIME_Builder

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( )

add_content_from_file() публичный метод

Add file contents to the MIME request.
public add_content_from_file ( string $filepath, string $name = null ) : string
$filepath string
$name string
Результат string

add_json_string() публичный метод

Add a JSON string to the MIME request.
public add_json_string ( string $name, string $filename, string $content ) : string
$name string
$filename string
$content string
Результат string

add_metadata() публичный метод

Add metadata to the MIME request.
public add_metadata ( mixed $meta ) : string
$meta mixed
Результат string

boundary() публичный метод

Get the boundary.
public boundary ( ) : string
Результат string

close() публичный метод

Close a file added to the MIME request.
public close ( ) : string
Результат string

get_debug_content() публичный метод

Gets the debug version of the MIME content
public get_debug_content ( array $args ) : string
$args array
Результат string