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 54 of file Action.php.
00055 { 00056 $html = array(); 00057 $attributesObject = new Varien_Object(); 00058 00059 foreach ($actions as $action) { 00060 $attributesObject->setData($action['@']); 00061 $html[] = '<a ' . $attributesObject->serialize() . '>' . $action['#'] . '</a>'; 00062 00063 00064 } 00065 return implode($html); 00066 }
_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 if ($row->canReorder()) { 00041 $actions[] = array( 00042 '@' => array('href' => $this->getUrl('*/sales_order_create/reorder', array('order_id'=>$row->getId()))), 00043 '#' => Mage::helper('sales')->__('Reorder') 00044 ); 00045 } 00046 return $this->_actionsToHtml($actions); 00047 }