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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )