Mage_Sales_Block_Order_Email_Items_Default Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Email_Items_Default:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Downloadable_Block_Sales_Order_Email_Items_Downloadable

List of all members.

Public Member Functions

 getOrder ()
 getItemOptions ()
 getValueHtml ($value)
 getSku ($item)


Detailed Description

Definition at line 35 of file Default.php.


Member Function Documentation

getItemOptions (  ) 

Definition at line 47 of file Default.php.

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

getOrder (  ) 

Retrieve current order model instance

Returns:
Mage_Sales_Model_Order

Definition at line 42 of file Default.php.

00043     {
00044         return $this->getItem()->getOrder();
00045     }

getSku ( item  ) 

Definition at line 74 of file Default.php.

00075     {
00076         if ($item->getOrderItem()->getProductOptionByCode('simple_sku'))
00077             return $item->getOrderItem()->getProductOptionByCode('simple_sku');
00078         else
00079             return $item->getSku();
00080     }

getValueHtml ( value  ) 

Definition at line 65 of file Default.php.

00066     {
00067         if (is_array($value)) {
00068             return sprintf('%d', $value['qty']) . ' x ' . $this->htmlEscape($value['title']) . " " . $this->getItem()->getOrder()->formatPrice($value['price']);
00069         } else {
00070             return $this->htmlEscape($value);
00071         }
00072     }


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

Generated on Sat Jul 4 17:24:39 2009 for Magento by  doxygen 1.5.8