Path

ez components / documentation / api reference / 1.1.1 / consoletools


eZ Components 1.1.1

ConsoleTools: ezcConsoleOutputFormat

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcConsoleOutputFormat

Struct class to store formating entities used by ezcConsoleOutput. [source]
Struct class to store formating entities used by ezcConsoleOutput.
Possible values of ezcConsoleOutputFormat::$color are:
  • gray
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • default (representing the consoles default color)
For ezcConsoleOutputFormat::$bgcolor the following values are valid:
  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • default (representing the consoles default background color)
The ezcConsoleOutputFormat::$style attribute takes an array of (possibly) multiple attributes. Choose from the lists below:
  • default (resets all attributes to default)
  • bold
  • faint
  • normal
  • italic
  • notitalic
  • underlined
  • doubleunderlined
  • notunderlined
  • blink
  • blinkfast
  • noblink
  • negative
  • positive

Properties

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.

Member Variables

protected array(string=>mixed) $properties = array(
'color' => 'default',
'style' => array( 'default' ),'bgcolor'=>'default',)

Container to hold the properties

Method Summary

public ezcConsoleOutputFormat __construct( [$color = 'default'], [$style = null], [$bgcolor = 'default'] )
Create a new ezcConsoleOutputFormat object.

Methods

__construct

ezcConsoleOutputFormat __construct( [string $color = 'default'], [ $style = null], [string $bgcolor = 'default'] )
Create a new ezcConsoleOutputFormat object.
Creates a new object of this class.

Parameters

Name Type Description
$color string Name of a color value.
$style array(int=>string) Names of style values.
$bgcolor string Name of a bgcolor value.

Last updated: Thu, 01 Nov 2007