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

TTextProcessor is the base class for classes that process or transform text content into different forms. The text content to be processed is specified by {@link setText Text} property. If it is not set, the body content enclosed within the processor control will be processed and rendered. The body content includes static text strings and the rendering result of child controls. Note, all child classes must implement {@link processText} method.
부터: 3.0.1
저자: Qiang Xue ([email protected])
상속: extends TWebControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
addParsedObject ( $object ) HTML-decodes static text.
getText ( ) : string
processText ( $text ) : string Processes a text string.
renderContents ( $writer ) Renders body content.
setText ( $value )

메소드 상세

addParsedObject() 공개 메소드

This method overrides parent implementation.
public addParsedObject ( $object )

getText() 공개 메소드

public getText ( ) : string
리턴 string text to be processed

processText() 추상적인 공개 메소드

This method must be implemented by child classes.
abstract public processText ( $text ) : string
리턴 string the processed text result

renderContents() 공개 메소드

This method overrides the parent implementation by replacing the body content with the processed text content.
public renderContents ( $writer )

setText() 공개 메소드

public setText ( $value )