Row class for Zend\Text\Table

 Methods

Append a column to the row

appendColumn(\Zend\Text\Table\Column $column) : \Zend\Text\Table\Row

Parameters

$column

\Zend\Text\Table\Column

The column to append to the row

Returns

Create a new column and append it to the row

createColumn(string $content, array $options) : \Zend\Text\Table\Row

Parameters

$content

string

$options

array

Returns

Get a column by it's index

getColumn(int $index) : \Zend\Text\Table\Column | null

Returns null, when the index is out of range

Parameters

$index

int

Returns

Get the widths of all columns, which were rendered last

getColumnWidths() : int

Exceptions

\Zend\Text\Table\Exception\UnexpectedValueException When no columns were rendered yet

Returns

int

Get all columns of the row

getColumns() : array

Returns

array

Render the row

render(array $columnWidths, \Zend\Text\Table\Decorator\DecoratorInterface $decorator, int $padding) : string

Parameters

$columnWidths

array

Width of all columns

$decorator

\Zend\Text\Table\Decorator\DecoratorInterface

Decorator for the row borders

$padding

int

Padding for the columns

Exceptions

\Zend\Text\Table\Exception\OverflowException When there are too many columns

Returns

string

 Properties

 

Temporary stored column widths

$columnWidths : array

 

List of all columns

$columns : array