Row class for Zend_Text_Table

category Zend
package Zend_Text_Table
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 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

\Zend_Text_Table_Row

Create a new column and append it to the row

createColumn(string $content, array $options = null) : \Zend_Text_Table_Row

Parameters

$content

string

$options

array

Returns

\Zend_Text_Table_Row

Get a column by it's index

getColumn(integer $index) : \Zend_Text_Table_Column | null

Returns null, when the index is out of range

Parameters

$index

integer

Returns

\Zend_Text_Table_Columnnull

Get the widths of all columns, which were rendered last

getColumnWidths() : integer

Exceptions

\Zend_Text_Table_Exception When no columns were rendered yet

Returns

integer

Get all columns of the row

getColumns() : array

Returns

array

Render the row

render(array $columnWidths, \Zend_Text_Table_Decorator_Interface $decorator, integer $padding = 0) : string

Parameters

$columnWidths

array

Width of all columns

$decorator

\Zend_Text_Table_Decorator_Interface

Decorator for the row borders

$padding

integer

Padding for the columns

Exceptions

\Zend_Text_Table_Exception When there are too many columns

Returns

string

 Properties

 

Temporary stored column widths

$_columnWidths : array

Default

null
 

List of all columns

$_columns : array

Default

array()