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 = null
List of all column widths
Default valuenull
Details- 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 = null
Plugin loader for decorators
Default valuenull
Details- 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) : void
Create a basic table object
ParametersName | Type | Description |
---|
$options | \Zend_Config | array | Configuration options |
---|
Throws 


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


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


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


setInputCharset(string $charset) : void
staticSet the input charset for column contents
ParametersName | Type | Description |
---|
$charset | string | |
---|



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


setOutputCharset(string $charset) : void
staticSet the output charset for column contents
ParametersName | Type | Description |
---|
$charset | string | |
---|



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