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-2011 Zend Technologies USA Inc. (http://www.zend.com)
- license
-
New BSD License
- package
- Zend_Text_Table
- version
- $Id: Table.php 23953 2011-05-03 05:47:39Z ralph $
Zend_Text_Table enables developers to create tables out of characters
- category
- Zend
- copyright
- Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- license
-
New BSD License
- package
- Zend_Text_Table
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 valueutf-8
Details
- Type
- string



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



string
$_pluginLoader= 'null'
Plugin loader for decorators
Default valuenull
Details
- Type
- string



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



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



setConfig(
\Zend_Config $config
)
:
\Zend_Text_Table
Set options from config object
Parameters
Name |
Type |
Description |
$config |
\Zend_Config |
Configuration for Zend_Text_Table |
Returns



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



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



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