Struct class to store formating entities used by ezcConsoleOutput.
Struct class to store formating entities used by ezcConsoleOutput.
Possible values of ezcConsoleOutputFormat::$color are:
Source for this file: /ConsoleTools/src/structs/output_format.php
Version: | //autogen// |
string | read/write |
$bgcolor
Contains the background color for this format. |
string | read/write |
$color
Contains the color for this format. |
array(string) | read/write |
$style
Contains the lists of styles that are associated with this format. |
string | read/write |
$target
Contains the output target to use. Pick one of ezcConsoleOutput::TARGET_OUTPUT, ezcConsoleOutput::TARGET_STDOUT or ezcConsoleOutput::TARGET_STDERR. |
protected array(string=>mixed) |
$properties
= array(
Container to hold the properties |
public ezcConsoleOutputFormat |
__construct(
[ $color
= 'default'] , [ $style
= null] , [ $bgcolor
= 'default'] , [ $target
= ezcConsoleOutput::TARGET_OUTPUT] )
Create a new ezcConsoleOutputFormat object. |
Create a new ezcConsoleOutputFormat object.
Creates a new object of this class.
Name | Type | Description |
---|---|---|
$color |
string | Name of a color value. |
$style |
array(string) | Names of style values. |
$bgcolor |
string | Name of a bgcolor value. |
$target |
string | Target output stream. |