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 enables developers to create tables out of characters
AUTO_SEPARATE_NONE = '0x0'
Auto seperator settings
AUTO_SEPARATE_HEADER = '0x1'
AUTO_SEPARATE_FOOTER = '0x2'
AUTO_SEPARATE_ALL = '0x4'
integer $_autoSeparate = 'self'
Auto separation mode
array $_columnWidths = 'null'
List of all column widths
Zend_Text_Table_Decorator_Interface $_decorator = 'null'
Decorator used for the table borders
array $_defaultColumnAligns = 'array'
Default column aligns for rows created by appendRow(array $data)
string $_inputCharset = 'utf-8'
Charset which is used for input by default
string $_outputCharset = 'utf-8'
Charset which is used internally
integer $_padding = '0'
Padding for columns
string $_pluginLoader = 'null'
Plugin loader for decorators
array $_rows = 'array'
Rows of the table
array $_skipOptions = 'array'
Option keys to skip when calling setOptions()
__construct(
Zend_Config|array $options
=
null
)
:
Create a basic table object
__toString(
)
:
string
Magic method which returns the rendered table
appendRow(
array|Zend_Text_Table_Row $row
)
:
Zend_Text_Table
Append a row to the table
getInputCharset(
)
:
Get the input charset for column contents
getOutputCharset(
)
:
Get the output charset for column contents
getPluginLoader(
)
:
Zend_Loader_PluginLoader
Get the plugin loader for decorators
render(
)
:
string
Render the table
setAutoSeparate(
integer $autoSeparate
)
:
Zend_Text_Table
Set auto separation mode
setColumnWidths(
array $columnWidths
)
:
Zend_Text_Table
Set column widths
setConfig(
Zend_Config $config
)
:
Zend_Text_Table
Set options from config object
setDecorator(
Zend_Text_Table_Decorator_Interface|string $decorator
)
:
Zend_Text_Table
Set decorator
setDefaultColumnAlign(
integer $columnNum, string $align
)
:
Zend_Text_Table
Set default column align for rows created by appendRow(array $data)
setInputCharset(
string $charset
)
:
Set the input charset for column contents
setOptions(
array $options
)
:
Zend_Text_Table
Set options from array
setOutputCharset(
string $charset
)
:
Set the output charset for column contents
setPadding(
integer $padding
)
:
Zend_Text_Table
Set the column padding