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
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getText() public méthode

public getText ( ) : string
Résultat string text to be processed

processText() abstract public méthode

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

renderContents() public méthode

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

setText() public méthode

public setText ( $value )