summaryrefslogtreecommitdiff
path: root/framework/ITextWriter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/ITextWriter.php')
-rw-r--r--framework/ITextWriter.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/framework/ITextWriter.php b/framework/ITextWriter.php
new file mode 100644
index 00000000..bc7fa512
--- /dev/null
+++ b/framework/ITextWriter.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Core interfaces essential for TApplication class.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package System
+ */
+
+/**
+ * ITextWriter interface.
+ *
+ * This interface must be implemented by writers.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @package System
+ * @since 3.0
+ */
+interface ITextWriter
+{
+ /**
+ * Writes a string.
+ * @param string string to be written
+ */
+ public function write($str);
+ /**
+ * Flushes the content that has been written.
+ */
+ public function flush();
+} \ No newline at end of file