Text/Table/Row.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Text_Table
- Version
- $Id$
\Zend_Text_Table_Row
Package: Zend_Text_Table


Returns


Row class for Zend_Text_Table
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

appendColumn(\Zend_Text_Table_Column $column) : \Zend_Text_Table_RowAppend a column to the row
Parameters
Returns
| 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_RowCreate a new column and append it to the row
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $content | string | |
| $options | array |
| Type | Description |
|---|---|
| \Zend_Text_Table_Row |

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

getColumnWidths() : integerGet the widths of all columns, which were rendered last
Returns
Throws
| 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) : stringRender the row
Parameters
Returns
Throws
| 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 |