Path

ez components / documentation / api reference / 1.0.1 / consoletools


eZ Components 1.0.1

ConsoleTools: ezcConsoleTableCell

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

Class: ezcConsoleTableCell

Representation of a table cell. [source]
An object of this class represents a table cell. A cell has a certain content, may apply a format to this data, align the data in the cell and so on.
This class stores the cells for the ezcConsoleTable class.

Member Variables

protected int $align = ezcConsoleTable::ALIGN_DEFAULT
Alignment of the text inside the cell.
protected string $content = ''
Text displayed in the cell.
protected string $format = 'default'
Format applied to the displayed text.

Method Summary

public ezcConsoleTableCell __construct( [$content = ''], [$format = 'default'], [$align = ezcConsoleTable::ALIGN_DEFAULT], $verboseLevel, $autobreak, $useFormats )
Create a new ezcConsoleProgressbarCell.
public mixed __get( $key )
Property read access.
public bool __isset( $key )
Property isset access.
public void __set( $key, $val )
Property write access.

Methods

__construct

ezcConsoleTableCell __construct( [ $content = ''], [ $format = 'default'], [ $align = ezcConsoleTable::ALIGN_DEFAULT], int $verboseLevel, int $autobreak, bool $useFormats )
Create a new ezcConsoleProgressbarCell.
Creates a new ezcConsoleProgressbarCell. You can either submit the cell data through the constructor or set them as properties.

Parameters

Name Type Description
$verboseLevel int Verbosity of the output to show.
$autobreak int Auto wrap lines after num chars (0 = unlimited)
$useFormats bool Whether to enable formated output
$content  
$format  
$align  

__get

mixed __get( string $key )
Property read access.

Parameters

Name Type Description
$key string Name of the property.

Throws

ClassDescription
ezcBasePropertyNotFoundException If the the desired property is not found.

__isset

bool __isset( string $key )
Property isset access.

Parameters

Name Type Description
$key string Name of the property.

__set

void __set( string $key, mixed $val )
Property write access.

Parameters

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

Throws

ClassDescription
ezcBaseValueException If a the value submitted for the align is not in the range of ezcConsoleTable::ALIGN_LEFT, ezcConsoleTable::ALIGN_CENTER, ezcConsoleTable::ALIGN_RIGHT, ezcConsoleTable::ALIGN_DEFAULT

Last updated: Fri, 02 Nov 2007