PHP Class 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.
Since: 3.0.1
Author: Qiang Xue ([email protected])
Inheritance: extends TWebControl
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
addParsedObject ( $object ) HTML-decodes static text.
getText ( ) : string
processText ( $text ) : string Processes a text string.
renderContents ( $writer ) Renders body content.
setText ( $value )

Method Details

addParsedObject() public method

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

getText() public method

public getText ( ) : string
return string text to be processed

processText() abstract public method

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

renderContents() public method

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

setText() public method

public setText ( $value )