PHP 클래스 Prado\Web\UI\WebControls\TImage

TImage displays an image on a page. The image is specified via the {@link setImageUrl ImageUrl} property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the {@link setImageAlign ImageAlign} property. To set alternative texts or long description of the image, use {@link setAlternateText AlternateText} or {@link setDescriptionUrl DescriptionUrl} property, respectively.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TWebControl, implements Prado\IDataRenderer
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getAlternateText ( ) : string
getData ( ) : string Returns the URL of the image file.
getDescriptionUrl ( ) : string
getImageAlign ( ) : string
getImageUrl ( ) : string
renderContents ( $writer ) Renders the body content of the image.
setAlternateText ( $value ) Sets the alternative text to be displayed in the TImage when the image is unavailable.
setData ( $value ) Sets the URL of the image.
setDescriptionUrl ( $value )
setImageAlign ( $value ) Sets the alignment of the image with respective to other elements on the page.
setImageUrl ( $value )

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes related to an HTML image element to renderer.
getTagName ( ) : string

메소드 상세

addAttributesToRender() 보호된 메소드

Adds attributes related to an HTML image element to renderer.
protected addAttributesToRender ( $writer )

getAlternateText() 공개 메소드

public getAlternateText ( ) : string
리턴 string the alternative text displayed in the TImage component when the image is unavailable.

getData() 공개 메소드

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link getImageUrl()}.
또한 보기: getImageUrl
부터: 3.1.0
public getData ( ) : string
리턴 string the URL of the image file.

getDescriptionUrl() 공개 메소드

public getDescriptionUrl ( ) : string
리턴 string the URL to long description

getImageAlign() 공개 메소드

public getImageAlign ( ) : string
리턴 string the alignment of the image with respective to other elements on the page, defaults to empty.

getImageUrl() 공개 메소드

public getImageUrl ( ) : string
리턴 string the URL of the image file

getTagName() 보호된 메소드

protected getTagName ( ) : string
리턴 string tag name of image control

renderContents() 공개 메소드

Nothing to be rendered within image tags.
public renderContents ( $writer )

setAlternateText() 공개 메소드

Sets the alternative text to be displayed in the TImage when the image is unavailable.
public setAlternateText ( $value )

setData() 공개 메소드

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link setImageUrl()}.
또한 보기: setImageUrl
부터: 3.1.0
public setData ( $value )

setDescriptionUrl() 공개 메소드

public setDescriptionUrl ( $value )

setImageAlign() 공개 메소드

Possible values include: absbottom, absmiddle, baseline, bottom, left, middle, right, texttop, and top. If an empty string is passed in, imagealign attribute will not be rendered.
public setImageAlign ( $value )

setImageUrl() 공개 메소드

public setImageUrl ( $value )