Mage_Adminhtml_Block_Sales_Items_Column_Default Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Items_Column_Default:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Adminhtml_Block_Sales_Items_Column_Name Mage_Adminhtml_Block_Sales_Items_Column_Qty Mage_Adminhtml_Block_Sales_Items_Column_Name_Grouped Mage_Downloadable_Block_Adminhtml_Sales_Items_Column_Downloadable_Name

List of all members.

Public Member Functions

 getItem ()
 getOrderOptions ()
 getCustomizedOptionValue ($optionInfo)
 getSku ()


Detailed Description

Definition at line 35 of file Default.php.


Member Function Documentation

getCustomizedOptionValue ( optionInfo  ) 

Return custom option html

Parameters:
array $optionInfo
Returns:
string

Definition at line 69 of file Default.php.

00070     {
00071         // render customized option view
00072         $_default = $optionInfo['value'];
00073         if (isset($optionInfo['option_type'])) {
00074             try {
00075                 $group = Mage::getModel('catalog/product_option')->groupFactory($optionInfo['option_type']);
00076                 return $group->getCustomizedView($optionInfo);
00077             } catch (Exception $e) {
00078                 return $_default;
00079             }
00080         }
00081         return $_default;
00082     }

getItem (  ) 

Definition at line 37 of file Default.php.

00038     {
00039         if ($this->_getData('item') instanceof Mage_Sales_Model_Order_Item) {
00040             return $this->_getData('item');
00041         } else {
00042             return $this->_getData('item')->getOrderItem();
00043         }
00044     }

getOrderOptions (  ) 

Definition at line 46 of file Default.php.

00047     {
00048         $result = array();
00049         if ($options = $this->getItem()->getProductOptions()) {
00050             if (isset($options['options'])) {
00051                 $result = array_merge($result, $options['options']);
00052             }
00053             if (isset($options['additional_options'])) {
00054                 $result = array_merge($result, $options['additional_options']);
00055             }
00056             if (!empty($options['attributes_info'])) {
00057                 $result = array_merge($options['attributes_info'], $result);
00058             }
00059         }
00060         return $result;
00061     }

getSku (  ) 

Definition at line 84 of file Default.php.

00085     {
00086         if ($this->getItem()->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
00087             return $this->getItem()->getProductOptionByCode('simple_sku');
00088         }
00089         return $this->getItem()->getSku();
00090     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:58 2009 for Magento by  doxygen 1.5.8