Public Member Functions | |
render (Varien_Object $row) | |
Protected Member Functions | |
_getEscapedValue ($value) | |
_actionsToHtml (array $actions) |
Definition at line 34 of file Action.php.
_actionsToHtml | ( | array $ | actions | ) | [protected] |
Definition at line 62 of file Action.php.
00063 { 00064 $html = array(); 00065 $attributesObject = new Varien_Object(); 00066 foreach ($actions as $action) { 00067 $attributesObject->setData($action['@']); 00068 $html[] = '<a ' . $attributesObject->serialize() . '>' . $action['#'] . '</a>'; 00069 } 00070 return implode('<span class="separator"> | </span>', $html); 00071 }
_getEscapedValue | ( | $ | value | ) | [protected] |
render | ( | Varien_Object $ | row | ) |
Renders grid column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 37 of file Action.php.
00038 { 00039 $actions = array(); 00040 00041 $actions[] = array( 00042 '@' => array( 00043 'href' => $this->getUrl('*/newsletter_template/preview', 00044 array( 00045 'id' => $row->getTemplateId(), 00046 'subscriber'=> Mage::registry('subscriber')->getId() 00047 ) 00048 ), 00049 'target'=> '_blank' 00050 ), 00051 '#' => Mage::helper('customer')->__('View') 00052 ); 00053 00054 return $this->_actionsToHtml($actions); 00055 }