Column class for Zend_Text_Table_Row
category | Zend |
---|---|
package | Zend_Text_Table |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(string $content= null
, string $align= null
, integer $colSpan= null
, string $charset= null
)
string
The content of the column
string
The align of the content
integer
The colspan of the column
string
The encoding of the content
getColSpan() : integer
integer
render(integer $columnWidth, integer $padding = 0
) : string
integer
The width of the column
integer
The padding for the column
\Zend_Text_Table_Exception |
When $columnWidth is lower than 1 |
---|---|
\Zend_Text_Table_Exception |
When padding is greater than columnWidth |
string
setAlign(string $align) : \Zend_Text_Table_Column
string
Align of the column
\Zend_Text_Table_Exception |
When supplied align is invalid |
---|
\Zend_Text_Table_Column
setColSpan(integer $colSpan) : \Zend_Text_Table_Column
integer
\Zend_Text_Table_Exception |
When $colSpan is smaller than 1 |
---|
\Zend_Text_Table_Column
setContent(string $content, string $charset = null
) : \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 |
When $content is not a string |
---|
\Zend_Text_Table_Column
$_align : string
self::ALIGN_LEFT
$_allowedAligns : array
array(self::ALIGN_LEFT, self::ALIGN_CENTER, self::ALIGN_RIGHT)
$_colSpan : integer
1
$_content : string
''
ALIGN_CENTER = 'center'
ALIGN_LEFT = 'left'
ALIGN_RIGHT = 'right'