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

THyperLink displays a hyperlink on a page. The hyperlink URL is specified via the {@link setNavigateUrl NavigateUrl} property, and link text is via the {@link setText Text} property. It is also possible to display an image by setting the {@link setImageUrl ImageUrl} property. In this case, the alignment of the image displayed is set by the {@link setImageAlign ImageAlign} property and {@link getText Text} is displayed as the alternate text of the image. The link target is specified via the {@link setTarget Target} property. If both {@link getImageUrl ImageUrl} and {@link getText Text} are empty, the content enclosed within the control tag will be rendered.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TWebControl, implements Prado\IDataRenderer
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getData ( ) : string Returns the URL to link to when the THyperLink component is clicked.
getImageAlign ( ) : string
getImageHeight ( ) : string
getImageUrl ( ) : string
getImageWidth ( ) : string
getNavigateUrl ( ) : string
getTarget ( ) : string
getText ( ) : string
renderContents ( $writer ) Renders the body content of the hyperlink.
setData ( $value ) Sets the URL to link to when the THyperLink component is clicked.
setImageAlign ( $value ) Sets the alignment of the image with respective to other elements on the page.
setImageHeight ( $value ) Sets the height of the image in the THyperLink
setImageUrl ( $value ) Sets the location of image file of the THyperLink.
setImageWidth ( $value ) Sets the width of the image in the THyperLink
setNavigateUrl ( $value ) Sets the URL to link to when the THyperLink component is clicked.
setTarget ( $value ) Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
setText ( $value ) Sets the text caption of the THyperLink.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes related to a hyperlink element to renderer.
createImage ( $imageUrl ) : TImage Gets the TImage for rendering the ImageUrl property. This is not for creating dynamic images.
getTagName ( ) : string

메소드 상세

addAttributesToRender() 보호된 메소드

Adds attributes related to a hyperlink element to renderer.
protected addAttributesToRender ( $writer )

createImage() 보호된 메소드

Gets the TImage for rendering the ImageUrl property. This is not for creating dynamic images.
protected createImage ( $imageUrl ) : TImage
리턴 TImage image control for rendering.

getData() 공개 메소드

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

getImageAlign() 공개 메소드

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

getImageHeight() 공개 메소드

public getImageHeight ( ) : string
리턴 string height of the image in the THyperLink

getImageUrl() 공개 메소드

public getImageUrl ( ) : string
리턴 string the location of the image file for the THyperLink

getImageWidth() 공개 메소드

public getImageWidth ( ) : string
리턴 string width of the image in the THyperLink

getNavigateUrl() 공개 메소드

public getNavigateUrl ( ) : string
리턴 string the URL to link to when the THyperLink component is clicked.

getTagName() 보호된 메소드

protected getTagName ( ) : string
리턴 string tag name of the hyperlink

getTarget() 공개 메소드

public getTarget ( ) : string
리턴 string the target window or frame to display the Web page content linked to when the THyperLink component is clicked.

getText() 공개 메소드

public getText ( ) : string
리턴 string the text caption of the THyperLink

renderContents() 공개 메소드

Renders the body content of the hyperlink.
public renderContents ( $writer )

setData() 공개 메소드

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link setText()}.
또한 보기: setText
부터: 3.1.0
public setData ( $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 )

setImageHeight() 공개 메소드

Sets the height of the image in the THyperLink
public setImageHeight ( $value )

setImageUrl() 공개 메소드

Sets the location of image file of the THyperLink.
public setImageUrl ( $value )

setImageWidth() 공개 메소드

Sets the width of the image in the THyperLink
public setImageWidth ( $value )

setNavigateUrl() 공개 메소드

Sets the URL to link to when the THyperLink component is clicked.
public setNavigateUrl ( $value )

setTarget() 공개 메소드

Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
public setTarget ( $value )

setText() 공개 메소드

Sets the text caption of the THyperLink.
public setText ( $value )