In which order are the following methods executed after Mage_Core_Model_Abstract::save ( ) is called?
1 - Mage_Core_Model_Abstract::_beforeSave ( )
2 - Mage_Core_Model_Abstract::_afterSave ( )
3 - Mage_Core_Model_Mysql4_Abstract::_beforeSave ( )
4 - Mage_Core_Model_Mysql4_Abstract::_afterSave ( )
5 - Mage Core Model Abstract::afterCommitCallback ( )
A. 1, 3, 2, 4, 5
B. 1, 2, 3, 4, 5
C. 3, 1, 4, 2, 5
D. 1, 3, 4, 2, 5
正解:D
質問 2:
What is the total model Mage_Sale_Model_Quote_Addres_Total Nominal used for?
A. It checks whether the whole quote is nominal or not.
B. It runs nominal total models in case of need.
C. It calculates prices only for items that are represented by the nominal product types.
D. It calculates nominal prices for every item.
正解:B
質問 3:
What happens when you edit an existing order using the order management page?
A. Depending on the order status, different editing forms appear for the current order.
B. A form appears that allows you to edit shipping information of the current order only.
C. The current order is canceled and a new order is created from scratch based on the current order's data.
D. A form appears that allows you to edit all information on the current order.
正解:C
質問 4:
Which of the following lines includes a payment method object?
A. $quote->getShippingAddress ( )>setPaymentMethod(isset ($data['method']) ? $data['method'] : null); inside Mage_Checkout_Model_Type_Onepage
B. $instance->setInfoInstance($this); inside Mage_Payment_Model_Info
C. .public function setPayment(Mage_Sales_Model_Quote_Payment $payment) inside Mage_Sales_Model_Quote
D. $method = $this->getMethodInstance ( ); inside Mage_Sales_Model_Quote_Payment
正解:D
質問 5:
Which one of the following statements is true regarding layout update handles?
A. A layout update handle may be specified as a string argument when calling loadLayout ( ).
B. There may never be more than one layout update handle per request.
C. Layout update handles must always match a module_controller_action pattern such as catalog_product_view.
D. Layout update handles are declared at any level of the layout XML hierarchy.
正解:A
質問 6:
When an admin page is requested, which of the following methods will be executed first?
A. Mage Core Controller Router Default::match ()
B. Mage Core Controller Varien Action:: dispatch ()
C. Mage Core Controller Varien Front:: dispatch ()
D. Mage Adminhtml Controller Action:: preDispatch ()
正解:C
質問 7:
Which one of the following API methods exists in Magento?
A. catalog_category.save
B. catalog_product.items
C. catalog_product.info
D. catalog_product_attribute_set.update
正解:C
質問 8:
Which is a responsibility of EAV attribute frontend models?
A. To provide direct access to the EAV attribute models for templates
B. To format the attribute value and label before displaying them
C. To provide access to an attribute's EAV value table
D. To provide direct read access to attribute values in the EAV value tables for display
正解:B
質問 9:
Given a grid interface that extends from Mage_Adminhtml_Block_widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?
A. _initDataModel
B. _initGrid
C. _prepareDataModel
D. _prepareCollection
正解:D