PHP 클래스 Apple_Push_API\MIME_Builder

파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 메소드들

메소드 설명
__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