PHP Class gui\Output

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

Protected Properties

Свойство Type Description
$err resource The resource for err
$out resource The resource for out

Méthodes publiques

Méthode 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

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

Method Details

err() public static méthode

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
Résultat void

out() public static méthode

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
Résultat void

Property Details

$err protected_oe static_oe property

The resource for err
protected static resource $err
Résultat resource

$out protected_oe static_oe property

The resource for out
protected static resource $out
Résultat resource