Zend Framework
1.12
|
Public Member Functions | |
__construct ($content=null, $align=null, $colSpan=null, $charset=null) | |
Create a column for a Zend_Text_Table_Row object. | |
setContent ($content, $charset=null) | |
Set the content. | |
setAlign ($align) | |
Set the align. | |
setColSpan ($colSpan) | |
Set the colspan. | |
getColSpan () | |
Get the colspan. | |
render ($columnWidth, $padding=0) | |
Render the column width the given column width. | |
Public Attributes | |
const | ALIGN_LEFT = 'left' |
Aligns for columns. | |
const | ALIGN_CENTER = 'center' |
const | ALIGN_RIGHT = 'right' |
Protected Attributes | |
$_content = '' | |
$_align = self::ALIGN_LEFT | |
$_colSpan = 1 | |
$_allowedAligns = array(self::ALIGN_LEFT, self::ALIGN_CENTER, self::ALIGN_RIGHT) | |
__construct | ( | $content = null , |
|
$align = null , |
|||
$colSpan = null , |
|||
$charset = null |
|||
) |
Create a column for a Zend_Text_Table_Row object.
string | $content | The content of the column |
string | $align | The align of the content |
integer | $colSpan | The colspan of the column |
string | $charset | The encoding of the content |
getColSpan | ( | ) |
Get the colspan.
render | ( | $columnWidth, | |
$padding = 0 |
|||
) |
Render the column width the given column width.
integer | $columnWidth | The width of the column |
integer | $padding | 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 |
setAlign | ( | $align | ) |
Set the align.
string | $align | Align of the column |
Zend_Text_Table_Exception | When supplied align is invalid |
setColSpan | ( | $colSpan | ) |
Set the colspan.
int | $colSpan |
Zend_Text_Table_Exception | When $colSpan is smaller than 1 |
setContent | ( | $content, | |
$charset = null |
|||
) |
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).
string | $content | Content of the column |
string | $charset | The charset of the content |
Zend_Text_Table_Exception | When $content is not a string |
|
protected |
|
protected |
|
protected |
|
protected |
const ALIGN_CENTER = 'center' |
const ALIGN_LEFT = 'left' |
Aligns for columns.
const ALIGN_RIGHT = 'right' |