Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Row class for Zend_Text_Table

appendColumn(
\Zend_Text_Table_Column $column
)
:
\Zend_Text_Table_Row
Append a column to the row
Name | Type | Description |
---|---|---|
$column | \Zend_Text_Table_Column | The column to append to the row |
Type | Description |
---|---|
\Zend_Text_Table_Row |

createColumn(
string $content, array $options
=
null
)
:
\Zend_Text_Table_Row
Create a new column and append it to the row
Name | Type | Description |
---|---|---|
$content | string | |
$options | array |
Type | Description |
---|---|
\Zend_Text_Table_Row |

getColumn(
integer $index
)
:
\Zend_Text_Table_Column|null
Get a column by it's index
Returns null, when the index is out of range
Name | Type | Description |
---|---|---|
$index | integer |
Type | Description |
---|---|
\Zend_Text_Table_Column|null |

getColumnWidths(
)
:
integer
Get the widths of all columns, which were rendered last
Type | Description |
---|---|
integer |
Exception | Description |
---|---|
\Zend_Text_Table_Exception | When no columns were rendered yet |

render(
array $columnWidths, \Zend_Text_Table_Decorator_Interface $decorator, integer $padding
=
0
)
:
string
Render the row
Name | Type | Description |
---|---|---|
$columnWidths | array | Width of all columns |
$decorator | \Zend_Text_Table_Decorator_Interface | Decorator for the row borders |
$padding | integer | Padding for the columns |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Text_Table_Exception | When there are too many columns |