PHP 클래스 Bootstrapper\MediaObject

상속: extends bootstrapper\RenderedObject
파일 보기 프로젝트 열기: patricktalmadge/bootstrapper 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contents The contents of the media object
$list Whether the list

공개 메소드들

메소드 설명
asList ( ) Force the media object to become a list
render ( ) : string Renders the media object
withContents ( array $contents ) Sets the contents of the media object

보호된 메소드들

메소드 설명
getBody ( array $contents ) : string Get the body of the contents array
getHeading ( array $contents ) : string Get the heading of the media object
getImage ( array $contents, string $alt ) : string Get the image of the media object
getLink ( array $contents, string $image, string $position ) : string Turn the image into a link/div
getPosition ( array $contents ) : string Get the position
renderItem ( array $contents, string $tag ) : string Renders an item in the string
renderList ( ) : string Renders a list

메소드 상세

asList() 공개 메소드

Force the media object to become a list
public asList ( )

getBody() 보호된 메소드

Get the body of the contents array
protected getBody ( array $contents ) : string
$contents array
리턴 string

getHeading() 보호된 메소드

Get the heading of the media object
protected getHeading ( array $contents ) : string
$contents array
리턴 string

getImage() 보호된 메소드

Get the image of the media object
protected getImage ( array $contents, string $alt ) : string
$contents array
$alt string The alt text of the image
리턴 string

getPosition() 보호된 메소드

Get the position
protected getPosition ( array $contents ) : string
$contents array
리턴 string pull-right if the position key equals right. pull-left otherwise

render() 공개 메소드

Renders the media object
public render ( ) : string
리턴 string

renderItem() 보호된 메소드

Renders an item in the string
protected renderItem ( array $contents, string $tag ) : string
$contents array
$tag string The tag to wrap the item in
리턴 string

renderList() 보호된 메소드

Renders a list
protected renderList ( ) : string
리턴 string

withContents() 공개 메소드

Sets the contents of the media object
public withContents ( array $contents )
$contents array The contents of the media object

프로퍼티 상세

$contents 보호되어 있는 프로퍼티

The contents of the media object
protected $contents

$list 보호되어 있는 프로퍼티

Whether the list
protected $list