Prado\Web\UI\WebControls\TTextProcessor::renderContents PHP Method

renderContents() public method

This method overrides the parent implementation by replacing the body content with the processed text content.
public renderContents ( $writer )
    public function renderContents($writer)
    {
        if (($text = $this->getText()) === '' && $this->getHasControls()) {
            $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
            parent::renderContents($htmlWriter);
            $text = $htmlWriter->flush();
        }
        if ($text !== '') {
            $writer->write($this->processText($text));
        }
    }