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 
00015     class TextOutput
00016     {
00020         public function write($text)
00021         {
00022             echo $text;
00023             
00024             return $this;
00025         }
00026         
00030         public function writeLine($text)
00031         {
00032             echo $text."\n";
00033             
00034             return $this;
00035         }
00036         
00040         public function newLine()
00041         {
00042             echo "\n";
00043             
00044             return $this;
00045         }
00046         
00050         public function setMode(
00051             $attribute = ConsoleMode::ATTR_RESET_ALL,
00052             $foreground = ConsoleMode::FG_WHITE,
00053             $background = ConsoleMode::BG_BLACK
00054         )
00055         {
00056             // nop
00057             
00058             return $this;
00059         }
00060         
00064         public function resetAll()
00065         {
00066             // nop
00067             
00068             return $this;
00069         }
00070     }
00071 ?>