Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Number Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Number:

Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Adminhtml_Block_Report_Grid_Column_Renderer_Blanknumber

List of all members.

Public Member Functions

 renderCss ()

Protected Member Functions

 _getValue (Varien_Object $row)

Protected Attributes

 $_defaultWidth = 100


Detailed Description

Definition at line 35 of file Number.php.


Member Function Documentation

_getValue ( Varien_Object row  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Reimplemented in Mage_Adminhtml_Block_Report_Grid_Column_Renderer_Blanknumber.

Definition at line 39 of file Number.php.

00040     {
00041         $data = parent::_getValue($row);
00042         if (!is_null($data)) {
00043             $value = $data * 1;
00044             return $value ? $value: '0'; // fixed for showing zero in grid
00045         }
00046         return $this->getColumn()->getDefault();
00047     }

renderCss (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 49 of file Number.php.

00050     {
00051         return parent::renderCss() . ' a-right';
00052     }


Member Data Documentation

$_defaultWidth = 100 [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 37 of file Number.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:09 2009 for Magento by  doxygen 1.5.8