TextOutput.class.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************************
00003  *   Copyright (C) 2006-2007 by Konstantin V. Arkhipov                     *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Lesser General Public License as        *
00007  *   published by the Free Software Foundation; either version 3 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  ***************************************************************************/
00011 /* $Id: TextOutput.class.php 4687 2007-12-09 18:57:18Z voxus $ */
00012 
00016     class TextOutput
00017     {
00021         public function write($text)
00022         {
00023             echo $text;
00024             
00025             return $this;
00026         }
00027         
00031         public function writeLine($text)
00032         {
00033             echo $text."\n";
00034             
00035             return $this;
00036         }
00037         
00041         public function newLine()
00042         {
00043             echo "\n";
00044             
00045             return $this;
00046         }
00047         
00051         public function setMode(
00052             $attribute = ConsoleMode::ATTR_RESET_ALL,
00053             $foreground = ConsoleMode::FG_WHITE,
00054             $background = ConsoleMode::BG_BLACK
00055         )
00056         {
00057             // nop
00058             
00059             return $this;
00060         }
00061         
00065         public function resetAll()
00066         {
00067             // nop
00068             
00069             return $this;
00070         }
00071     }
00072 ?>

Generated on Sun Dec 9 21:56:24 2007 for onPHP by  doxygen 1.5.4