summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2005-12-29 12:20:57 +0000
committerxue <>2005-12-29 12:20:57 +0000
commit3126610fdab66c4e83de00d36a762af30199238d (patch)
tree96c0e41e404303eb95d0c29c3da728dac8c29336 /framework
parent658a7e1c4cf5a53dcd61ee196658090d00f2d64a (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')
-rw-r--r--framework/IO/TTextWriter.php8
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='')