PHP 클래스 Crummy\Phlack\Builder\AttachmentBuilder

상속: implements Crummy\Phlack\Builder\BuilderInterface
파일 보기 프로젝트 열기: mcrumm/phlack

공개 메소드들

메소드 설명
__construct ( MessageBuilder $parent = null ) Constructor.
addField ( string $title, string $value, boolean $isShort )
create ( ) : Attachment
end ( ) : MessageBuilder
setAuthorIcon ( $author_icon )
setAuthorLink ( $author_link )
setAuthorName ( $author_name )
setColor ( $color )
setFallback ( $fallback )
setImageUrl ( $image_url )
setMrkdwnIn ( $mrkdwn_in )
setPretext ( $pretext )
setText ( $text )
setThumbUrl ( $thumb_url )
setTitle ( $title )
setTitleLink ( $title_link )

보호된 메소드들

메소드 설명
refresh ( ) Reset the attachment data and the fields collection.

비공개 메소드들

메소드 설명
setParameter ( string $name, $value ) Sets values on non-empty parameters.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( MessageBuilder $parent = null )
$parent MessageBuilder

addField() 공개 메소드

public addField ( string $title, string $value, boolean $isShort )
$title string
$value string
$isShort boolean

create() 공개 메소드

public create ( ) : Attachment
리턴 Crummy\Phlack\Message\Attachment

end() 공개 메소드

public end ( ) : MessageBuilder
리턴 MessageBuilder

refresh() 보호된 메소드

Reset the attachment data and the fields collection.
protected refresh ( )

setAuthorIcon() 공개 메소드

public setAuthorIcon ( $author_icon )
$author_icon

setAuthorName() 공개 메소드

public setAuthorName ( $author_name )
$author_name

setColor() 공개 메소드

public setColor ( $color )
$color

setFallback() 공개 메소드

public setFallback ( $fallback )
$fallback

setImageUrl() 공개 메소드

public setImageUrl ( $image_url )
$image_url

setMrkdwnIn() 공개 메소드

public setMrkdwnIn ( $mrkdwn_in )
$mrkdwn_in

setPretext() 공개 메소드

public setPretext ( $pretext )
$pretext

setText() 공개 메소드

public setText ( $text )
$text

setThumbUrl() 공개 메소드

public setThumbUrl ( $thumb_url )
$thumb_url

setTitle() 공개 메소드

public setTitle ( $title )
$title