Class Mage_Catalog_Model_Convert_Adapter_Product

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /Catalog/Model/Convert/Adapter/Product.php (line 28)

Mage_Dataflow_Model_Convert_Container_Abstract
   |
   --Mage_Dataflow_Model_Convert_Adapter_Abstract
      |
      --Mage_Eav_Model_Convert_Adapter_Entity
         |
         --Mage_Catalog_Model_Convert_Adapter_Product
Class Constant Summary
ENTITY = 'catalog_product_import'
MULTI_DELIMITER = ' , '
Variable Summary
Method Summary
Mage_Catalog_Model_Convert_Adapter_Product __construct ()
void finish ()
void getProduct ()
array getProductTypes ()
void getStockItem ()
Mage_Core_Model_Store getStoreById ( $id, string $store)
void load ()
void parse ()
void save ()
bool saveRow ( $importData)
bool saveRowSilently ( $importData, array $)
void setStockItem ( $object)
void _initStores ()
Variables
mixed $_attributes = array() (line 64)
  • access: protected
mixed $_configs = array() (line 66)
  • access: protected
mixed $_ignoreFields = array() (line 70)
  • access: protected
array $_imageFields = array() (line 77)
  • deprecated: after 1.5.0.0-alpha2
  • access: protected
array $_inventoryFields = array() (line 84)

Inventory Fields array

  • access: protected
array $_inventoryFieldsProductTypes = array() (line 91)

Inventory Fields by product Types

  • access: protected
array $_productAttributeSets (line 60)

product attribute set collection array

  • access: protected
mixed $_productId = '' (line 318)
  • access: protected
Mage_Catalog_Model_Product $_productModel (line 39)

Product model

  • access: protected
array $_productTypeInstances = array() (line 53)

Product Type Instances singletons

  • access: protected
array $_productTypes (line 46)

product types collection array

  • access: protected
mixed $_requiredFields = array() (line 68)
  • access: protected
mixed $_stores (line 62)
  • access: protected
mixed $_toNumber = array() (line 93)
  • access: protected

Inherited Variables

Inherited from Mage_Eav_Model_Convert_Adapter_Entity

Mage_Eav_Model_Convert_Adapter_Entity::$_attrToDb
Mage_Eav_Model_Convert_Adapter_Entity::$_filter
Mage_Eav_Model_Convert_Adapter_Entity::$_joinAttr
Mage_Eav_Model_Convert_Adapter_Entity::$_joinField
Mage_Eav_Model_Convert_Adapter_Entity::$_joinFilter
Mage_Eav_Model_Convert_Adapter_Entity::$_store

Inherited from Mage_Dataflow_Model_Convert_Adapter_Abstract

Mage_Dataflow_Model_Convert_Adapter_Abstract::$_resource

Inherited from Mage_Dataflow_Model_Convert_Container_Abstract

Mage_Dataflow_Model_Convert_Container_Abstract::$_action
Mage_Dataflow_Model_Convert_Container_Abstract::$_batchParams
Mage_Dataflow_Model_Convert_Container_Abstract::$_data
Mage_Dataflow_Model_Convert_Container_Abstract::$_position
Mage_Dataflow_Model_Convert_Container_Abstract::$_profile
Mage_Dataflow_Model_Convert_Container_Abstract::$_vars
Methods
Constructor __construct (line 324)

Initialize convert adapter model for products collection

  • access: public
Mage_Catalog_Model_Convert_Adapter_Product __construct ()
finish (line 754)

Process after import data

Init indexing process after catalog product import

  • access: public
void finish ()
getAttribute (line 173)

Retrieve eav entity attribute model

  • access: public
Mage_Eav_Model_Entity_Attribute getAttribute (string $code)
  • string $code
getProduct (line 385)
  • access: public
void getProduct ()
getProductAttributeSets (line 227)

Retrieve product attribute set collection array

  • access: public
array getProductAttributeSets ()
getProductModel (line 158)

Retrieve product model cache

  • access: public
Mage_Catalog_Model_Product getProductModel ()
getProductTypes (line 192)

Retrieve product type collection array

  • access: public
array getProductTypes ()
getStockItem (line 399)
  • access: public
void getStockItem ()
getStoreByCode (line 263)

Retrieve store object by code

  • access: public
Mage_Core_Model_Store getStoreByCode (string $store)
  • string $store
getStoreById (line 285)

Retrieve store object by code

  • access: public
Mage_Core_Model_Store getStoreById ( $id, string $store)
  • string $store
  • $id
load (line 99)

Load product collection Id(s)

  • access: public
void load ()

Redefinition of:
Mage_Eav_Model_Convert_Adapter_Entity::load()
parse (line 301)
  • access: public
void parse ()
save (line 405)
  • access: public
void save ()

Redefinition of:
Mage_Eav_Model_Convert_Adapter_Entity::save()
saveRow (line 513)

Save product (import)

  • throws: Mage_Core_Exception
  • access: public
bool saveRow ( $importData)
  • array $importData
saveRowSilently (line 738)

Silently save product (import)

  • access: public
bool saveRowSilently ( $importData, array $)
  • array $
  • array $importData
setProduct (line 378)
  • access: public
void setProduct (Mage_Catalog_Model_Product $object)
setProductTypeInstance (line 211)

ReDefine Product Type Instance to Product

  • access: public
setStockItem (line 390)
  • access: public
void setStockItem ( $object)
_getCollectionForLoad (line 370)

Retrieve not loaded collection

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection _getCollectionForLoad (string $entityType)
  • string $entityType

Redefinition of:
Mage_Eav_Model_Convert_Adapter_Entity::_getCollectionForLoad()
Retrieve collection for load
_initStores (line 247)

Init stores

  • access: protected
void _initStores ()

Inherited Methods

Inherited From Mage_Eav_Model_Convert_Adapter_Entity

Mage_Eav_Model_Convert_Adapter_Entity::getFieldValue()
Mage_Eav_Model_Convert_Adapter_Entity::getFilter()
Mage_Eav_Model_Convert_Adapter_Entity::getStoreId()
Mage_Eav_Model_Convert_Adapter_Entity::load()
Mage_Eav_Model_Convert_Adapter_Entity::save()
Mage_Eav_Model_Convert_Adapter_Entity::setFilter()
Mage_Eav_Model_Convert_Adapter_Entity::setJoinAttr()
Mage_Eav_Model_Convert_Adapter_Entity::setJoinField()
Mage_Eav_Model_Convert_Adapter_Entity::_getCollectionForLoad()
Mage_Eav_Model_Convert_Adapter_Entity::_parseVars()

Inherited From Mage_Dataflow_Model_Convert_Adapter_Abstract

Mage_Dataflow_Model_Convert_Adapter_Abstract::getNumber()
Mage_Dataflow_Model_Convert_Adapter_Abstract::getResource()
Mage_Dataflow_Model_Convert_Adapter_Abstract::setResource()

Inherited From Mage_Dataflow_Model_Convert_Container_Abstract

Mage_Dataflow_Model_Convert_Container_Abstract::addException()
Mage_Dataflow_Model_Convert_Container_Abstract::getAction()
Mage_Dataflow_Model_Convert_Container_Abstract::getBatchParams()
Mage_Dataflow_Model_Convert_Container_Abstract::getData()
Mage_Dataflow_Model_Convert_Container_Abstract::getGridFields()
Mage_Dataflow_Model_Convert_Container_Abstract::getPosition()
Mage_Dataflow_Model_Convert_Container_Abstract::getProfile()
Mage_Dataflow_Model_Convert_Container_Abstract::getVar()
Mage_Dataflow_Model_Convert_Container_Abstract::getVars()
Mage_Dataflow_Model_Convert_Container_Abstract::setAction()
Mage_Dataflow_Model_Convert_Container_Abstract::setBatchParams()
Mage_Dataflow_Model_Convert_Container_Abstract::setData()
Mage_Dataflow_Model_Convert_Container_Abstract::setPosition()
Mage_Dataflow_Model_Convert_Container_Abstract::setProfile()
Mage_Dataflow_Model_Convert_Container_Abstract::setVar()
Mage_Dataflow_Model_Convert_Container_Abstract::validateDataArray()
Mage_Dataflow_Model_Convert_Container_Abstract::validateDataGrid()
Mage_Dataflow_Model_Convert_Container_Abstract::validateDataString()
Class Constants
ENTITY = 'catalog_product_import' (line 32)
MULTI_DELIMITER = ' , ' (line 31)

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