Zend\Text\Table\Column
Column class for Zend\Text\Table\Row
Synopsis
class Column
{
- // constants
- const ALIGN_LEFT = 'left';
- const ALIGN_CENTER = 'center';
- const ALIGN_RIGHT = 'right';
- // members
- protected string $content;
- protected string $align;
- protected integer $colSpan;
- protected array $allowedAligns;
- // methods
- public void __construct()
- public Column setContent()
- public Column setAlign()
- public Column setColSpan()
- public int getColSpan()
- public string render()
Constants
Name | Value |
---|---|
ALIGN_LEFT | 'left' |
ALIGN_CENTER | 'center' |
ALIGN_RIGHT | 'right' |
Members
protected
- $align
—
string
Align of the column - $allowedAligns
—
array
Allowed align parameters - $colSpan
—
int
Colspan of the column - $content
—
string
Content of the column
Methods
public
- __construct() — Create a column for a Zend\Text\Table\Row object.
- getColSpan() — Get the colspan
- render() — Render the column width the given column width
- setAlign() — Set the align
- setColSpan() — Set the colspan
- setContent() — Set the content.