API Documentation

Zend/Text/Table/Row.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Text_Table  
Version
$Id: Row.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Text_Table_Row

Package: Zend\Text\Table

Row class for Zend_Text_Table

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedarray  $_columnWidths= 'null'

Temporary stored column widths

Default valuenullDetails
Type
array
Propertyprotectedarray  $_columns= 'array()'

List of all columns

Default valuearray()Details
Type
array

Methods

methodpublicappendColumn( \Zend_Text_Table_Column $column ) : \Zend_Text_Table_Row

Append a column to the row

Parameters
Name Type Description
$column \Zend_Text_Table_Column

The column to append to the row

Returns
Type Description
\Zend_Text_Table_Row
methodpubliccreateColumn( string $content, array $options = null ) : \Zend_Text_Table_Row

Create a new column and append it to the row

Parameters
Name Type Description
$content string
$options array
Returns
Type Description
\Zend_Text_Table_Row
methodpublicgetColumn( integer $index ) : \Zend_Text_Table_Column|null

Get a column by it's index

Returns null, when the index is out of range

Parameters
Name Type Description
$index integer
Returns
Type Description
\Zend_Text_Table_Column|null
methodpublicgetColumnWidths( ) : integer

Get the widths of all columns, which were rendered last

Returns
Type Description
integer
Throws
Exception Description
\Zend_Text_Table_Exception When no columns were rendered yet
methodpublicgetColumns( ) : array

Get all columns of the row

Returns
Type Description
array
methodpublicrender( array $columnWidths, \Zend_Text_Table_Decorator_Interface $decorator, integer $padding = 0 ) : string

Render the row

Parameters
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

Returns
Type Description
string
Throws
Exception Description
\Zend_Text_Table_Exception When there are too many columns
Documentation was generated by DocBlox 0.15.1.