Public Member Functions | |
render (Varien_Object $row) | |
Protected Attributes | |
$_defaultMaxLineLength = 60 |
Definition at line 34 of file Wrapline.php.
render | ( | Varien_Object $ | row | ) |
Renders grid column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 49 of file Wrapline.php.
00050 { 00051 $line = parent::_getValue($row); 00052 $wrappedLine = ''; 00053 $lineLength = ($this->getColumn()->getData('lineLength')?$this->getColumn()->getData('lineLength'):$this->_defaultMaxLineLength); 00054 for($i=0, $n=floor(Mage::helper('core/string')->strlen($line)/$lineLength); $i<=$n; $i++) { 00055 $wrappedLine .= Mage::helper('core/string')->substr($line, ($lineLength*$i), $lineLength)."<br />"; 00056 } 00057 return $wrappedLine; 00058 }
$_defaultMaxLineLength = 60 [protected] |
Definition at line 41 of file Wrapline.php.