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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )