Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Create a basic table object. | |
setOptions (array $options) | |
Set options from array. | |
setConfig (Zend_Config $config) | |
Set options from config object. | |
setColumnWidths (array $columnWidths) | |
Set column widths. | |
setAutoSeparate ($autoSeparate) | |
Set auto separation mode. | |
setDecorator ($decorator) | |
Set decorator. | |
setPadding ($padding) | |
Set the column padding. | |
getPluginLoader () | |
Get the plugin loader for decorators. | |
setDefaultColumnAlign ($columnNum, $align) | |
Set default column align for rows created by appendRow(array $data) | |
appendRow ($row) | |
Append a row to the table. | |
render () | |
Render the table. | |
__toString () | |
Magic method which returns the rendered table. | |
Static Public Member Functions | |
static | setInputCharset ($charset) |
Set the input charset for column contents. | |
static | getInputCharset () |
Get the input charset for column contents. | |
static | setOutputCharset ($charset) |
Set the output charset for column contents. | |
static | getOutputCharset () |
Get the output charset for column contents. | |
Public Attributes | |
const | AUTO_SEPARATE_NONE = 0x0 |
Auto seperator settings. | |
const | AUTO_SEPARATE_HEADER = 0x1 |
const | AUTO_SEPARATE_FOOTER = 0x2 |
const | AUTO_SEPARATE_ALL = 0x4 |
Protected Attributes | |
$_decorator = null | |
$_columnWidths = null | |
$_rows = array() | |
$_autoSeparate = self::AUTO_SEPARATE_ALL | |
$_padding = 0 | |
$_defaultColumnAligns = array() | |
$_pluginLoader = null | |
$_skipOptions | |
Static Protected Attributes | |
static | $_inputCharset = 'utf-8' |
static | $_outputCharset = 'utf-8' |
__construct | ( | $options = null | ) |
Create a basic table object.
array | $columnsWidths | List of all column widths |
Zend_Config | array | $options | Configuration options |
Zend_Text_Table_Exception | When no columns widths were set |
__toString | ( | ) |
Magic method which returns the rendered table.
appendRow | ( | $row | ) |
Append a row to the table.
array | Zend_Text_Table_Row | $row | The row to append to the table |
Zend_Text_Table_Exception | When $row is neither an array nor Zend_Zext_Table_Row |
Zend_Text_Table_Exception | When a row contains too many columns |
|
static |
Get the input charset for column contents.
string | $charset |
|
static |
Get the output charset for column contents.
string | $charset |
getPluginLoader | ( | ) |
Get the plugin loader for decorators.
render | ( | ) |
Render the table.
Zend_Text_Table_Exception | When no rows were added to the table |
setAutoSeparate | ( | $autoSeparate | ) |
Set auto separation mode.
integer | $autoSeparate | Auto separation mode |
setColumnWidths | ( | array | $columnWidths | ) |
Set column widths.
array | $columnWidths | Widths of all columns |
Zend_Text_Table_Exception | When no columns were supplied |
Zend_Text_Table_Exception | When a column has an invalid width |
setConfig | ( | Zend_Config | $config | ) |
Set options from config object.
Zend_Config | $config | Configuration for Zend_Text_Table |
setDecorator | ( | $decorator | ) |
Set decorator.
Zend_Text_Table_Decorator_Interface | string | $decorator | Decorator to use |
setDefaultColumnAlign | ( | $columnNum, | |
$align | |||
) |
Set default column align for rows created by appendRow(array $data)
integer | $columnNum | |
string | $align |
|
static |
Set the input charset for column contents.
string | $charset |
setOptions | ( | array | $options | ) |
Set options from array.
array | $options | Configuration for Zend_Text_Table |
|
static |
Set the output charset for column contents.
string | $charset |
setPadding | ( | $padding | ) |
Set the column padding.
integer | $padding | The padding for the columns |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
const AUTO_SEPARATE_ALL = 0x4 |
const AUTO_SEPARATE_FOOTER = 0x2 |
const AUTO_SEPARATE_HEADER = 0x1 |
const AUTO_SEPARATE_NONE = 0x0 |
Auto seperator settings.