Public Member Functions | |
setMassaction ($massaction) | |
getMassaction () | |
setAdditionalActionBlock ($block) | |
getAdditionalActionBlock () | |
getAdditionalActionBlockHtml () | |
Protected Member Functions | |
_createFromConfig (array $config) | |
Protected Attributes | |
$_massaction = null |
Definition at line 35 of file Item.php.
_createFromConfig | ( | array $ | config | ) | [protected] |
Definition at line 82 of file Item.php.
00083 { 00084 $type = isset($config['type']) ? $config['type'] : 'default'; 00085 switch($type) { 00086 default: 00087 $blockClass = 'adminhtml/widget_grid_massaction_item_additional_default'; 00088 break; 00089 } 00090 00091 $block = $this->getLayout()->createBlock($blockClass); 00092 $block->createFromConfiguration(isset($config['type']) ? $config['config'] : $config); 00093 return $block; 00094 }
getAdditionalActionBlock | ( | ) |
Retrive additional action block for this item
Definition at line 101 of file Item.php.
00102 { 00103 return $this->getChild('additional_action'); 00104 }
getAdditionalActionBlockHtml | ( | ) |
Retrive additional action block HTML for this item
Definition at line 111 of file Item.php.
00112 { 00113 return $this->getChildHtml('additional_action'); 00114 }
setAdditionalActionBlock | ( | $ | block | ) |
Set additional action block for this item
string|Mage_Core_Block_Abstract | $block |
Definition at line 68 of file Item.php.
00069 { 00070 if(is_string($block)) { 00071 $block = $this->getLayout()->createBlock($block); 00072 } elseif (is_array($block)) { 00073 $block = $this->_createFromConfig($block); 00074 } elseif(!($block instanceof Mage_Core_Block_Abstract)) { 00075 Mage::throwException('Unknown block type'); 00076 } 00077 00078 $this->setChild('additional_action', $block); 00079 return $this; 00080 }
setMassaction | ( | $ | massaction | ) |
Set parent massaction block
Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract | $massaction |
Definition at line 46 of file Item.php.