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

TLiteral displays a static text on the Web page. TLiteral is similar to the TLabel control, except that the TLiteral control does not have style properties (e.g. BackColor, Font, etc.) You can programmatically control the text displayed in the control by setting the {@link setText Text} property. The text displayed may be HTML-encoded if the {@link setEncode Encode} property is set true (defaults to false). TLiteral will render the contents enclosed within its component tag if {@link setText Text} is empty. Note, if {@link setEncode Encode} is false, make sure {@link setText Text} does not contain unwanted characters that may bring security vulnerabilities.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\Web\UI\TControl, implements Prado\IDataRenderer
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getData ( ) : string Returns the static text of the TLiteral.
getEncode ( ) : boolean
getText ( ) : string
render ( $writer ) Renders the literal control.
setData ( $value ) Sets the static text of the TLiteral.
setEncode ( $value )
setText ( $value ) Sets the static text of the TLiteral

메소드 상세

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 static text of the TLiteral

getEncode() 공개 메소드

public getEncode ( ) : boolean
리턴 boolean whether the rendered text should be HTML-encoded. Defaults to false.

getText() 공개 메소드

public getText ( ) : string
리턴 string the static text of the TLiteral

render() 공개 메소드

Renders the literal control.
public render ( $writer )

setData() 공개 메소드

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

setEncode() 공개 메소드

public setEncode ( $value )

setText() 공개 메소드

Sets the static text of the TLiteral
public setText ( $value )