API Documentation

Text/Table/Row.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Text_Table
version
$Id: Row.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Text_Table_Row

Description

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.

Zend_Text_Table_Row

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Text_Table
Properties
$_columns
$_columnWidths
Methods
createColumn
appendColumn
getColumn
getColumns
getColumnWidths
render

Description

Row class for Zend_Text_Table

Properties

$_columnWidths

array $_columnWidths = 'null'

Temporary stored column widths

Details

$_columnWidths
array
visibility
protected
default
null
final
false
static
false

$_columns

array $_columns = 'array'

List of all columns

Details

$_columns
array
visibility
protected
default
array
final
false
static
false

Methods

appendColumn

appendColumn( Zend_Text_Table_Column $column ) : Zend_Text_Table_Row

Append a column to the row

Arguments
$column
Zend_Text_Table_Column
The column to append to the row
Details
visibility
public
final
false
static
false

createColumn

createColumn( string $content, array $options = null ) : Zend_Text_Table_Row

Create a new column and append it to the row

Arguments
$content
string
$options
array
Details
visibility
public
final
false
static
false

getColumn

getColumn( integer $index ) : Zend_Text_Table_Column|null

Get a column by it's index

Returns null, when the index is out of range

Arguments
$index
integer
Details
visibility
public
final
false
static
false

getColumnWidths

getColumnWidths( ) : integer

Get the widths of all columns, which were rendered last

Output
integer
Details
visibility
public
final
false
static
false
throws
When no columns were rendered yet

getColumns

getColumns( ) : array

Get all columns of the row

Output
array
Details
visibility
public
final
false
static
false

render

render( array $columnWidths, Zend_Text_Table_Decorator_Interface $decorator, integer $padding = 0 ) : string

Render the row

Arguments
$columnWidths
array
Width of all columns
$decorator
Zend_Text_Table_Decorator_Interface
Decorator for the row borders
$padding
integer
Padding for the columns
Output
string
Details
visibility
public
final
false
static
false
throws
When there are too many columns
Documentation was generated by DocBlox.