summaryrefslogtreecommitdiff
path: root/framework/core.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/core.php')
-rw-r--r--framework/core.php22
1 files changed, 22 insertions, 0 deletions
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
{
}