diff options
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='')
|