1896. Class

1896.1. Zend\Text\Table\Table

ZendTextTableTable enables developers to create tables out of characters

1896.1.1. Methods

1896.1.1.1. __construct

__construct()

Create a basic table object

Parameters:array|Traversable – Configuration options
Throws ExceptionUnexpectedValueException:
 When no columns widths were set

1896.1.1.2. setOptions

setOptions()

Set options from array

Parameters:array – Configuration for Table
Return type:Table

1896.1.1.3. setColumnWidths

setColumnWidths()

Set column widths

Parameters:array – Widths of all columns
Throws ExceptionInvalidArgumentException:
 When no columns were supplied
Throws ExceptionInvalidArgumentException:
 When a column has an invalid width
Return type:Table

1896.1.1.4. setAutoSeparate

setAutoSeparate()

Set auto separation mode

Parameters:integer – Auto separation mode
Return type:Table

1896.1.1.5. setDecorator

setDecorator()

Set decorator

Parameters:Decorator|string – Decorator to use
Return type:Table

1896.1.1.6. setPadding

setPadding()

Set the column padding

Parameters:integer – The padding for the columns
Return type:Table

1896.1.1.7. getDecoratorManager

getDecoratorManager()

Get the plugin manager for decorators

Return type:DecoratorManager

1896.1.1.8. setDecoratorManager

setDecoratorManager()

Set the plugin manager instance for decorators

Parameters:DecoratorManager
Return type:Table

1896.1.1.9. setDefaultColumnAlign

setDefaultColumnAlign()

Set default column align for rows created by appendRow(array $data)

Parameters:
  • integer
  • string
Return type:

Table

1896.1.1.10. setInputCharset

setInputCharset()

Set the input charset for column contents

Parameters:string

1896.1.1.11. getInputCharset

getInputCharset()

Get the input charset for column contents

Return type:string

1896.1.1.12. setOutputCharset

setOutputCharset()

Set the output charset for column contents

Parameters:string

1896.1.1.13. getOutputCharset

getOutputCharset()

Get the output charset for column contents

Return type:string

1896.1.1.14. appendRow

appendRow()

Append a row to the table

Parameters:array|Row – The row to append to the table
Throws ExceptionInvalidArgumentException:
 When $row is neither an array nor Zend_Zext_Table_Row
Throws ExceptionOverflowException:
 When a row contains too many columns
Return type:Table

1896.1.1.15. render

render()

Render the table

Return type:string

1896.1.1.16. __toString

__toString()

Magic method which returns the rendered table

Return type:string

1896.1.2. Constants

1896.1.2.1. AUTO_SEPARATE_NONE

Auto separator settings

1896.1.2.2. AUTO_SEPARATE_HEADER

1896.1.2.4. AUTO_SEPARATE_ALL