Magento
M70-101 · Question #53
Which one of the following calls returns a simple product type model? Assume that$product is aninstance of Mage_Catalog_Model_Product representing a simple product.
The correct answer is A. $product->getTypeInstance(). See the full explanation below for the reasoning.
Question
Which one of the following calls returns a simple product type model? Assume that$product is aninstance of Mage_Catalog_Model_Product representing a simple product.
Options
- A$product->getTypeInstance()
- B$product->getType()
- CMage::getsingleton(`catalog/producttype')->getType($product)
- DMage Catalog Model Product Type:: factory(`simple')
- EMage Catalog Model Product Type: : getType Instance ($product)
How the community answered
(28 responses)- A79% (22)
- B4% (1)
- C7% (2)
- E11% (3)
Community Discussion
No community discussion yet for this question.