summaryrefslogtreecommitdiff
path: root/framework/IO/TTextWriter.php
blob: 5f6a92cb695f756212bbc4fb4e234d5eeff26e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

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");
	}
}

?>