ZendTextTableTable enables developers to create tables out of characters
Create a basic table object
Parameters: | array|Traversable – Configuration options |
---|---|
Throws ExceptionUnexpectedValueException: | |
When no columns widths were set |
Set options from array
Parameters: | array – Configuration for Table |
---|---|
Return type: | Table |
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 |
Set auto separation mode
Parameters: | integer – Auto separation mode |
---|---|
Return type: | Table |
Set decorator
Parameters: | Decorator|string – Decorator to use |
---|---|
Return type: | Table |
Set the column padding
Parameters: | integer – The padding for the columns |
---|---|
Return type: | Table |
Get the plugin manager for decorators
Return type: | DecoratorManager |
---|
Set the plugin manager instance for decorators
Parameters: | DecoratorManager – |
---|---|
Return type: | Table |
Set default column align for rows created by appendRow(array $data)
Parameters: |
|
---|---|
Return type: | Table |
Set the input charset for column contents
Parameters: | string – |
---|
Get the input charset for column contents
Return type: | string |
---|
Set the output charset for column contents
Parameters: | string – |
---|
Get the output charset for column contents
Return type: | string |
---|
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 |
Render the table
Return type: | string |
---|