diff options
author | xue <> | 2005-12-29 12:20:57 +0000 |
---|---|---|
committer | xue <> | 2005-12-29 12:20:57 +0000 |
commit | 3126610fdab66c4e83de00d36a762af30199238d (patch) | |
tree | 96c0e41e404303eb95d0c29c3da728dac8c29336 /framework/IO/TTextWriter.php | |
parent | 658a7e1c4cf5a53dcd61ee196658090d00f2d64a (diff) |
Modified TTextHighlighter so that it can highlight its body content including output of its child controls.
Modified ViewSource to make use of TTextHighlighter.
Diffstat (limited to 'framework/IO/TTextWriter.php')
-rw-r--r-- | framework/IO/TTextWriter.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/IO/TTextWriter.php b/framework/IO/TTextWriter.php index 17829acf..5f6a92cb 100644 --- a/framework/IO/TTextWriter.php +++ b/framework/IO/TTextWriter.php @@ -1,13 +1,19 @@ <?php
-class TTextWriter extends TComponent
+class TTextWriter extends TComponent implements ITextWriter
{
+ private $_str='';
+
public function flush()
{
+ $str=$this->_str;
+ $this->_str='';
+ return $str;
}
public function write($str)
{
+ $this->_str.=$str;
}
public function writeLine($str='')
|