Public Member Functions | |
setItem ($item) | |
getItem () | |
setProduct ($product) | |
getProduct () | |
__clone () | |
Protected Member Functions | |
_construct () | |
_beforeSave () | |
Protected Attributes | |
$_item | |
$_product |
Definition at line 34 of file Option.php.
__clone | ( | ) |
Clone option object
Definition at line 111 of file Option.php.
00112 { 00113 $this->setId(null); 00114 $this->_item = null; 00115 return $this; 00116 }
_beforeSave | ( | ) | [protected] |
Initialize item identifier before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 98 of file Option.php.
00099 { 00100 if ($this->getItem()) { 00101 $this->setItemId($this->getItem()->getId()); 00102 } 00103 return parent::_beforeSave(); 00104 }
_construct | ( | ) | [protected] |
Initialize resource model
Reimplemented from Varien_Object.
Definition at line 42 of file Option.php.
00043 { 00044 $this->_init('sales/quote_item_option'); 00045 }
getItem | ( | ) |
getProduct | ( | ) |
setItem | ( | $ | item | ) |
Set quote item
Mage_Sales_Model_Quote_Item | $item |
Definition at line 53 of file Option.php.
00054 { 00055 $this->setItemId($item->getId()); 00056 $this->_item = $item; 00057 return $this; 00058 }
setProduct | ( | $ | product | ) |
Set option product
Mage_Catalog_Model_Product | $product |
Definition at line 76 of file Option.php.
00077 { 00078 $this->setProductId($product->getId()); 00079 $this->_product = $product; 00080 return $this; 00081 }
$_item [protected] |
Definition at line 36 of file Option.php.
$_product [protected] |
Definition at line 37 of file Option.php.