Public Member Functions | |
render (Varien_Object $row) | |
Protected Member Functions | |
_getEscapedValue ($value) | |
_actionsToHtml (array $actions) |
Definition at line 35 of file Action.php.
_actionsToHtml | ( | array $ | actions | ) | [protected] |
Definition at line 57 of file Action.php.
00058 { 00059 $html = array(); 00060 $attributesObject = new Varien_Object(); 00061 foreach ($actions as $action) { 00062 $attributesObject->setData($action['@']); 00063 $html[] = '<a ' . $attributesObject->serialize() . '>' . $action['#'] . '</a>'; 00064 } 00065 return implode(' <span class="separator"> | </span> ', $html); 00066 }
_getEscapedValue | ( | $ | value | ) | [protected] |
render | ( | Varien_Object $ | row | ) |
Renders column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action.
Definition at line 37 of file Action.php.
00038 { 00039 $actions = array(); 00040 00041 $actions[] = array( 00042 'url' => $this->getUrl('*/*/preview', array('id'=>$row->getId())), 00043 'popup' => true, 00044 'caption' => $this->__('Preview') 00045 ); 00046 00047 $this->getColumn()->setActions($actions); 00048 00049 return parent::render($row); 00050 }