Text/Table/Row.php

Show: PublicProtectedPrivateinherited
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-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
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

>VPropertyprotectedarray $_columnWidths = null
Temporary stored column widths
Default valuenullDetails
Type
array
>VPropertyprotectedarray $_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
NameTypeDescription
$column\Zend_Text_Table_Column

The column to append to the row

Returns
TypeDescription
\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
NameTypeDescription
$contentstring
$optionsarray
Returns
TypeDescription
\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
NameTypeDescription
$indexinteger
Returns
TypeDescription
\Zend_Text_Table_Column | null
methodpublicgetColumnWidths() : integer

Get the widths of all columns, which were rendered last

Returns
TypeDescription
integer
Throws
ExceptionDescription
\Zend_Text_Table_ExceptionWhen no columns were rendered yet
methodpublicgetColumns() : array

Get all columns of the row

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

Render the row

Parameters
NameTypeDescription
$columnWidthsarray

Width of all columns

$decorator\Zend_Text_Table_Decorator_Interface

Decorator for the row borders

$paddinginteger

Padding for the columns

Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Text_Table_ExceptionWhen there are too many columns
Documentation was generated by phpDocumentor 2.2.0 .