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
Details AUTO_SEPARATE_HEADER = '0x1'
Details AUTO_SEPARATE_FOOTER = '0x2'
Details AUTO_SEPARATE_ALL = '0x4'
Detailsinteger $_autoSeparate = 'self'Auto separation mode
Detailsarray $_columnWidths = 'null'List of all column widths
DetailsZend_Text_Table_Decorator_Interface $_decorator = 'null'Decorator used for the table borders
Detailsarray $_defaultColumnAligns = 'array'Default column aligns for rows created by appendRow(array $data)
Detailsstring $_inputCharset = 'utf-8'Charset which is used for input by default
Detailsstring $_outputCharset = 'utf-8'Charset which is used internally
Detailsinteger $_padding = '0'Padding for columns
Detailsstring $_pluginLoader = 'null'Plugin loader for decorators
Detailsarray $_rows = 'array'Rows of the table
Detailsarray $_skipOptions = 'array'Option keys to skip when calling setOptions()
Details__construct(
Zend_Config|array $options
=
null
)
:
Create a basic table object
Details__toString(
)
:
stringMagic method which returns the rendered table
DetailsappendRow(
array|Zend_Text_Table_Row $row
)
:
Zend_Text_TableAppend a row to the table
DetailsgetInputCharset(
)
:
Get the input charset for column contents
DetailsgetOutputCharset(
)
:
Get the output charset for column contents
DetailsgetPluginLoader(
)
:
Zend_Loader_PluginLoaderGet the plugin loader for decorators
Detailsrender(
)
:
stringRender the table
DetailssetAutoSeparate(
integer $autoSeparate
)
:
Zend_Text_TableSet auto separation mode
DetailssetColumnWidths(
array $columnWidths
)
:
Zend_Text_TableSet column widths
DetailssetConfig(
Zend_Config $config
)
:
Zend_Text_TableSet options from config object
DetailssetDecorator(
Zend_Text_Table_Decorator_Interface|string $decorator
)
:
Zend_Text_TableSet decorator
DetailssetDefaultColumnAlign(
integer $columnNum, string $align
)
:
Zend_Text_TableSet default column align for rows created by appendRow(array $data)
DetailssetInputCharset(
string $charset
)
:
Set the input charset for column contents
DetailssetOptions(
array $options
)
:
Zend_Text_TableSet options from array
DetailssetOutputCharset(
string $charset
)
:
Set the output charset for column contents
DetailssetPadding(
integer $padding
)
:
Zend_Text_TableSet the column padding
Details