Path

ez components / documentation / api reference / 1.1.1 / consoletools


eZ Components 1.1.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.

Properties

int read/write  $align
Alignment of the text inside the cell. Must be one of ezcConsoleTable::ALIGN_ constants. See ezcConsoleTable::ALIGN_LEFT, ezcConsoleTable::ALIGN_RIGHT and ezcConsoleTable::ALIGN_CENTER.
string read/write  $content
Text displayed in the cell.
string read/write  $format
Format applied to the displayed text.

Member Variables

protected array(string=>mixed) $properties
Container to hold the properties

Method Summary

public ezcConsoleTableCell __construct( [$content = ''], [$format = 'default'], [$align = ezcConsoleTable::ALIGN_DEFAULT], $verboseLevel, $autobreak, $useFormats )
Create a new ezcConsoleProgressbarCell.

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  

Last updated: Thu, 01 Nov 2007