From 57b6793551d29bad2b3b89f9a3f77a11682ccb48 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 18 Jan 2006 02:43:31 +0000 Subject: Updated phpbuilder and the file list. Added pradolite.php. --- framework/core.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'framework/core.php') diff --git a/framework/core.php b/framework/core.php index de307cad..57c683b2 100644 --- a/framework/core.php +++ b/framework/core.php @@ -771,6 +771,28 @@ class PradoBase } } +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='') + { + $this->write($str."\n"); + } +} + class TDate extends TComponent { } -- cgit v1.2.3