Text/Table.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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Text_Table
- Version
- $Id: Table.php 25024 2012-07-30 15:08:15Z rob $
Package: Zend\Text\TableZend_Text_Table enables developers to create tables out of characters
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties



array $_columnWidths = nullList of all column widths
Default valuenullDetails- Type
- array



array $_defaultColumnAligns = array()Default column aligns for rows created by appendRow(array $data)
Default valuearray()Details- Type
- array



string $_inputCharset = 'utf-8'staticCharset which is used for input by default
Default value'utf-8'Details- Type
- string



string $_outputCharset = 'utf-8'staticCharset which is used internally
Default value'utf-8'Details- Type
- string



string $_pluginLoader = nullPlugin loader for decorators
Default valuenullDetails- Type
- string



array $_skipOptions = array('options', 'config', 'defaultColumnAlign')Option keys to skip when calling setOptions()
Default valuearray('options', 'config', 'defaultColumnAlign')Details- Type
- array
Methods



__construct(\Zend_Config | array $options = null) : voidCreate a basic table object
Parameters| Name | Type | Description |
|---|
| $options | \Zend_Config | array | Configuration options |
|---|
Throws 


setAutoSeparate(integer $autoSeparate) : \Zend_Text_TableParameters| Name | Type | Description |
|---|
| $autoSeparate | integer | Auto separation mode |
|---|
Returns 


setColumnWidths(array $columnWidths) : \Zend_Text_TableParameters| Name | Type | Description |
|---|
| $columnWidths | array | Widths of all columns |
|---|
ReturnsThrows 


setDefaultColumnAlign(integer $columnNum, string $align) : \Zend_Text_TableSet default column align for rows created by appendRow(array $data)
Parameters| Name | Type | Description |
|---|
| $columnNum | integer | |
|---|
| $align | string | |
|---|
Returns 


setInputCharset(string $charset) : voidstaticSet the input charset for column contents
Parameters| Name | Type | Description |
|---|
| $charset | string | |
|---|



setOptions(array $options) : \Zend_Text_TableParameters| Name | Type | Description |
|---|
| $options | array | Configuration for Zend_Text_Table |
|---|
Returns 


setOutputCharset(string $charset) : voidstaticSet the output charset for column contents
Parameters| Name | Type | Description |
|---|
| $charset | string | |
|---|



setPadding(integer $padding) : \Zend_Text_TableParameters| Name | Type | Description |
|---|
| $padding | integer | The padding for the columns |
|---|
Returns