Class Mage_Checkout_Model_Api_Resource

Description

Checkout api resource

Located in /Checkout/Model/Api/Resource.php (line 34)

Mage_Api_Model_Resource_Abstract
   |
   --Mage_Checkout_Model_Api_Resource
Direct descendents
Class Description
Mage_Checkout_Model_Cart_Payment_Api Shopping cart api
Mage_Checkout_Model_Cart_Coupon_Api Shopping cart api
Mage_Checkout_Model_Cart_Shipping_Api Shopping cart api
Mage_Checkout_Model_Cart_Api Shopping cart api
Mage_Checkout_Model_Api_Resource_Customer Checkout api resource for Customer
Mage_Checkout_Model_Api_Resource_Product ${CLASS_DESCRIPTION}
Variable Summary
Method Summary
Mage_Checkout_Model_Api_Resource _getAttributes (Mage_Core_Model_Abstract $object,  $type, [ $attributes = null])
Mage_Sales_Model_Quote _getQuote (int $quoteId, [string|int $store = null])
int _getStoreId ([string|int $store = null])
int _getStoreIdFromQuote (int $quoteId)
bool _isAllowedAttribute ( $attributeCode,  $type, [ $attributes = null], Mage_Eav_Model_Entity_Attribute_Abstract $attribute, string $entityType)
bool _isQuoteExist (int $quoteId)
Mage_Checkout_Model_Api_Resource _updateAttributes (array $data, Mage_Core_Model_Abstract $object,  $type, [ $attributes = null])
Variables
array $_attributesMap = array(
'global' => array(),)
(line 41)

Attributes map array per entity type

  • access: protected
array $_ignoredAttributeCodes = array(
'global' => array('entity_id', 'attribute_set_id', 'entity_type_id'))
(line 50)

Default ignored attribute codes per entity type

  • access: protected

Redefined in descendants as:
string $_storeIdSessionField = 'store_id' (line 58)

Field name in session for saving store id

  • access: protected

Inherited Variables

Inherited from Mage_Api_Model_Resource_Abstract

Mage_Api_Model_Resource_Abstract::$_resourceConfig
Methods
_getAttributes (line 178)

Retrieve entity attributes values

  • access: protected
Mage_Checkout_Model_Api_Resource _getAttributes (Mage_Core_Model_Abstract $object,  $type, [ $attributes = null])
_getQuote (line 117)

Retrieves quote by quote identifier and store code or by quote identifier

  • access: protected
Mage_Sales_Model_Quote _getQuote (int $quoteId, [string|int $store = null])
  • int $quoteId
  • string|int $store
_getStoreId (line 93)

Retrieves store id from store code, if no store id specified, it use set session or admin store

  • access: protected
int _getStoreId ([string|int $store = null])
  • string|int $store
_getStoreIdFromQuote (line 143)

Get store identifier by quote identifier

  • access: protected
int _getStoreIdFromQuote (int $quoteId)
  • int $quoteId
_isAllowedAttribute (line 217)

Check is attribute allowed to usage

  • access: protected
bool _isAllowedAttribute ( $attributeCode,  $type, [ $attributes = null], Mage_Eav_Model_Entity_Attribute_Abstract $attribute, string $entityType)
_isQuoteExist (line 67)

Check if quote already exist with provided quoteId for creating

  • access: protected
bool _isQuoteExist (int $quoteId)
  • int $quoteId
_updateAttributes (line 160)

Update attributes for entity

  • access: protected
Mage_Checkout_Model_Api_Resource _updateAttributes (array $data, Mage_Core_Model_Abstract $object,  $type, [ $attributes = null])

Inherited Methods

Inherited From Mage_Api_Model_Resource_Abstract

Mage_Api_Model_Resource_Abstract::getResourceConfig()
Mage_Api_Model_Resource_Abstract::setResourceConfig()
Mage_Api_Model_Resource_Abstract::_fault()
Mage_Api_Model_Resource_Abstract::_getConfig()
Mage_Api_Model_Resource_Abstract::_getServer()
Mage_Api_Model_Resource_Abstract::_getSession()

Documentation generated on Fri, 11 Feb 2011 17:11:15 +0200 by phpDocumentor 1.4.3