PHP Class gui\Output

This class is used to send the output easier
Since: 0.1
Author: Rafael Reis @reisraff
Mostrar archivo Open project: gabrielrcouto/php-gui Class Usage Examples

Protected Properties

Property Type Description
$err resource The resource for err
$out resource The resource for out

Public Methods

Method Description
err ( string $string ) : void This method is used to send some text to STDERR
out ( string $string, string $color = 'white' ) : void This method is used to send some text to STDOUT, maybe with some color

Private Methods

Method Description
colorize ( string $string, string $color ) : string This method is used to colorize some text

Method Details

err() public static method

This method is used to send some text to STDERR
public static err ( string $string ) : void
$string string the text to be sent to STDERR
return void

out() public static method

This method is used to send some text to STDOUT, maybe with some color
public static out ( string $string, string $color = 'white' ) : void
$string string the text to be sent to STDOUT
$color string the color to colorize your text
return void

Property Details

$err protected_oe static_oe property

The resource for err
protected static resource $err
return resource

$out protected_oe static_oe property

The resource for out
protected static resource $out
return resource