Path

ez components / documentation / api reference / 1.1 / consoletools


eZ Components 1.1

ConsoleTools: ezcConsoleProgressbarOptions

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

Class: ezcConsoleProgressbarOptions

Struct class to store the options of the ezcConsoleOutput class. [source]
This class stores the options for the ezcConsoleOutput class.

Parents

ezcBaseOptions
   |
   --ezcConsoleProgressbarOptions

Member Variables

protected string $actFormat = '%.0f'
The format to display the actual value with.
protected string $barChar = "+"
The character to fill the bar with, during progress indication.
protected string $emptyChar = "-"
The character to pre-fill the bar, before indicating progress.
protected string $formatString = "%act% / %max% [%bar%] %fraction%%"
The format string to describe the complete progressbar.
protected string $fractionFormat = "%01.2f"
Format to display the fraction value.
protected string $maxFormat = '%.0f'
The format to display the actual value with.
protected string $progressChar = ">"
The character for the end of the progress area (the arrow!).
protected int $redrawFrequency = 1
How often to redraw the progressbar (on every Xth call to advance()).
protected int $step = 1
How many steps to advance the progressbar on each call to advance().
protected int $width = 78
The width of the bar itself.

Method Summary

public void __set( $key, $value )
Option write access.

Inherited Methods

From ezcBaseOptions :
public void ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.
public mixed ezcBaseOptions::__get()
Property get access.
public abstract void ezcBaseOptions::__set()

Methods

__set

void __set( string $key, mixed $value )
Option write access.

Parameters

Name Type Description
$key string Name of the property.
$value mixed The value for the property.

Throws

ClassDescription
ezcBasePropertyNotFoundException If a desired property could not be found.
ezcBaseSettingValueException If a desired property value is out of range.

Redefinition of

Method Description
ezcBaseOptions::__set()  

Last updated: Wed, 28 Nov 2007