Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Column class for Zend_Text_Table_Row
ALIGN_LEFT = 'left'
Aligns for columns
ALIGN_CENTER = 'center'
ALIGN_RIGHT = 'right'
string $_align = 'self'
Align of the column
array $_allowedAligns = 'array'
Allowed align parameters
integer $_colSpan = '1'
Colspan of the column
string $_content = ''
Content of the column
__construct(
string $content
=
null, string $align
=
null, integer $colSpan
=
null, string $charset
=
null
)
:
Create a column for a Zend_Text_Table_Row object.
getColSpan(
)
:
integer
Get the colspan
render(
integer $columnWidth, integer $padding
=
0
)
:
string
Render the column width the given column width
setAlign(
string $align
)
:
Zend_Text_Table_Column
Set the align
setColSpan(
int $colSpan
)
:
Zend_Text_Table_Column
Set the colspan
setContent(
string $content, string $charset
=
null
)
:
Zend_Text_Table_Column
Set the content.
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).