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
Details ALIGN_CENTER = 'center'
Details ALIGN_RIGHT = 'right'
Detailsstring $_align = 'self'Align of the column
Detailsarray $_allowedAligns = 'array'Allowed align parameters
Detailsinteger $_colSpan = '1'Colspan of the column
Detailsstring $_content = ''Content of the column
Details__construct(
string $content
=
null, string $align
=
null, integer $colSpan
=
null, string $charset
=
null
)
:
Create a column for a Zend_Text_Table_Row object.
DetailsgetColSpan(
)
:
integerGet the colspan
Detailsrender(
integer $columnWidth, integer $padding
=
0
)
:
stringRender the column width the given column width
DetailssetAlign(
string $align
)
:
Zend_Text_Table_ColumnSet the align
DetailssetColSpan(
int $colSpan
)
:
Zend_Text_Table_ColumnSet the colspan
DetailssetContent(
string $content, string $charset
=
null
)
:
Zend_Text_Table_ColumnSet 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).
Details