Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Massaction Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Massaction:

Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Checkbox 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

List of all members.

Public Member Functions

 renderHeader ()
 renderProperty ()
 render (Varien_Object $row)

Protected Member Functions

 _getCheckboxHtml ($value, $checked)

Protected Attributes

 $_defaultWidth = 20


Detailed Description

Definition at line 35 of file Massaction.php.


Member Function Documentation

_getCheckboxHtml ( value,
checked 
) [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Checkbox.

Definition at line 61 of file Massaction.php.

00062     {
00063         return '<input type="checkbox" name="'.$this->getColumn()->getName().'" value="' . $value . '" class="massaction-checkbox"'.$checked.'/>';
00064     }

render ( Varien_Object row  ) 

Renders grid column

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Checkbox.

Definition at line 52 of file Massaction.php.

00053     {
00054         if ($this->getColumn()->getGrid()->getMassactionIdFieldOnlyIndexValue()){
00055         $this->setNoObjectId(true);
00056     }
00057         return parent::render($row);
00058     }

renderHeader (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Checkbox.

Definition at line 39 of file Massaction.php.

00040     {
00041         return '&nbsp;';
00042     }

renderProperty (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 44 of file Massaction.php.

00045     {
00046         $out = parent::renderProperty();
00047         $out = preg_replace('/class=".*?"/i', '', $out);
00048         $out .= ' class="a-center"';
00049         return $out;
00050     }


Member Data Documentation

$_defaultWidth = 20 [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Checkbox.

Definition at line 37 of file Massaction.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