Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Text_Table_Row Class Reference

Public Member Functions

 createColumn ($content, array $options=null)
 Create a new column and append it to the row.
 
 appendColumn (Zend_Text_Table_Column $column)
 Append a column to the row.
 
 getColumn ($index)
 Get a column by it's index.
 
 getColumns ()
 Get all columns of the row.
 
 getColumnWidths ()
 Get the widths of all columns, which were rendered last.
 
 render (array $columnWidths, Zend_Text_Table_Decorator_Interface $decorator, $padding=0)
 Render the row.
 

Protected Attributes

 $_columns = array()
 
 $_columnWidths = null
 

Member Function Documentation

appendColumn ( Zend_Text_Table_Column  $column)

Append a column to the row.

Parameters
Zend_Text_Table_Column$columnThe column to append to the row
Returns
Zend_Text_Table_Row
createColumn (   $content,
array  $options = null 
)

Create a new column and append it to the row.

Parameters
string$content
array$options
Returns
Zend_Text_Table_Row
getColumn (   $index)

Get a column by it's index.

Returns null, when the index is out of range

Parameters
integer$index
Returns
Zend_Text_Table_Column|null
getColumns ( )

Get all columns of the row.

Returns
array
getColumnWidths ( )

Get the widths of all columns, which were rendered last.

Exceptions
Zend_Text_Table_ExceptionWhen no columns were rendered yet
Returns
integer
render ( array  $columnWidths,
Zend_Text_Table_Decorator_Interface  $decorator,
  $padding = 0 
)

Render the row.

Parameters
array$columnWidthsWidth of all columns
Zend_Text_Table_Decorator_Interface$decoratorDecorator for the row borders
integer$paddingPadding for the columns
Exceptions
Zend_Text_Table_ExceptionWhen there are too many columns
Returns
string

Member Data Documentation

$_columns = array()
protected
$_columnWidths = null
protected