Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($content=null, $align=null, $colSpan=null, $charset=null) | |
setContent ($content, $charset=null) | |
setAlign ($align) | |
setColSpan ($colSpan) | |
getColSpan () | |
render ($columnWidth, $padding=0) | |
Data Fields | |
const | ALIGN_LEFT = 'left' |
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) | |
Definition at line 40 of file Column.php.
__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 |
Definition at line 85 of file Column.php.
getColSpan | ( | ) |
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 |
Definition at line 197 of file Column.php.
setAlign | ( | $align | ) |
Set the align
string | $align | Align of the column |
Zend_Text_Table_Exception | When supplied align is invalid |
Definition at line 147 of file Column.php.
setColSpan | ( | $colSpan | ) |
Set the colspan
int | $colSpan |
Zend_Text_Table_Exception | When $colSpan is smaller than 1 |
Definition at line 166 of file Column.php.
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 |
Definition at line 112 of file Column.php.
|
protected |
Definition at line 61 of file Column.php.
|
protected |
Definition at line 75 of file Column.php.
|
protected |
Definition at line 68 of file Column.php.
|
protected |
Definition at line 54 of file Column.php.
const ALIGN_CENTER = 'center' |
Definition at line 46 of file Column.php.
const ALIGN_LEFT = 'left' |
Aligns for columns
Definition at line 45 of file Column.php.
const ALIGN_RIGHT = 'right' |
Definition at line 47 of file Column.php.