__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)
string
The content of the column
string
The align of the content
int
The colspan of the column
string
The encoding of the content
getColSpan() : int
int
render(int $columnWidth, int $padding) : string
int
The width of the column
int
The 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 |
string
setAlign(string $align) : \Zend\Text\Table\Column
string
Align 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).
string
Content of the column
string
The 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