PHP 클래스 Swift_Attachment, Halite

저자: Chris Corbyn
상속: extends Swift_Mime_Attachment
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) Create a new Attachment.
fromPath ( string $path, string $contentType = null ) : Swift_Mime_Attachment Create a new Attachment from a filesystem path.
newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_Attachment Create a new Attachment.

메소드 상세

__construct() 공개 메소드

Details may be optionally provided to the constructor.
public __construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null )
$data string | Swift_OutputByteStream
$filename string
$contentType string

fromPath() 공개 정적인 메소드

Create a new Attachment from a filesystem path.
public static fromPath ( string $path, string $contentType = null ) : Swift_Mime_Attachment
$path string
$contentType string optional
리턴 Swift_Mime_Attachment

newInstance() 공개 정적인 메소드

Create a new Attachment.
public static newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_Attachment
$data string | Swift_OutputByteStream
$filename string
$contentType string
리턴 Swift_Mime_Attachment