__construct()
getColSpan()
render()
setAlign()
setColSpan()
setContent()
$align
$allowedAligns
$colSpan
$content
ALIGN_CENTER
ALIGN_LEFT
ALIGN_RIGHT
Column class for Zend\Text\Table\Row
__construct(string $content, string $align, int $colSpan, string $charset)
stringThe content of the column
stringThe align of the content
intThe colspan of the column
stringThe encoding of the content
getColSpan() : int
intrender(int $columnWidth, int $padding) : string
intThe width of the column
intThe padding for the column
\Zend\Text\Table\Exception\InvalidArgumentException |
When $columnWidth is lower than 1 |
|---|---|
\Zend\Text\Table\Exception\OutOfBoundsException |
When padding is greater than columnWidth |
stringsetAlign(string $align) : \Zend\Text\Table\Column
stringAlign of the column
\Zend\Text\Table\Exception\OutOfBoundsException |
When supplied align is invalid |
|---|
setColSpan(int $colSpan) : \Zend\Text\Table\Column
int
\Zend\Text\Table\Exception\InvalidArgumentException |
When $colSpan is smaller than 1 |
|---|
setContent(string $content, string $charset) : \Zend\Text\Table\Column
If $charset is not defined, it is assumed that $content is encoded in the charset defined via Zend\Text\Table::setInputCharset() (defaults to utf-8).
stringContent of the column
stringThe charset of the content
\Zend\Text\Table\Exception\InvalidArgumentException |
When $content is not a string |
|---|
$align : string
$allowedAligns : array
$colSpan : int
$content : string
ALIGN_CENTER
ALIGN_LEFT
ALIGN_RIGHT