Class Mage_Catalog_Model_Product_Link_Api

Description

Catalog product link api

Located in /Catalog/Model/Product/Link/Api.php (line 34)

Mage_Api_Model_Resource_Abstract
   |
   --Mage_Catalog_Model_Api_Resource
      |
      --Mage_Catalog_Model_Product_Link_Api
Direct descendents
Class Description
Mage_Catalog_Model_Product_Link_Api_V2 Catalog product link api V2
Variable Summary
mixed $_typeMap
Method Summary
Mage_Catalog_Model_Product_Link_Api __construct ()
boolean assign (string $type, int|string $productId, int|string $linkedProductId, [array $data = array()], [ $identifierType = null])
array attributes (string $type)
array items (string $type, int|sku $productId, [ $identifierType = null])
boolean remove (string $type, int|string $productId, int|string $linkedProductId, [ $identifierType = null])
array types ()
boolean update (string $type, int|string $productId, int|string $linkedProductId, [array $data = array()], [ $identifierType = null])
int _getTypeId (string $type)
Mage_Catalog_Model_Product _initProduct (int $productId, [ $identifierType = null])
Variables
mixed $_typeMap = array(
'related' => Mage_Catalog_Model_Product_Link::LINK_TYPE_RELATED,
'up_sell' => Mage_Catalog_Model_Product_Link::LINK_TYPE_UPSELL,
'cross_sell' => Mage_Catalog_Model_Product_Link::LINK_TYPE_CROSSSELL,
'grouped' => Mage_Catalog_Model_Product_Link::LINK_TYPE_GROUPED
)
(line 36)
  • access: protected

Inherited Variables

Inherited from Mage_Catalog_Model_Api_Resource

Mage_Catalog_Model_Api_Resource::$_ignoredAttributeCodes
Mage_Catalog_Model_Api_Resource::$_ignoredAttributeTypes
Mage_Catalog_Model_Api_Resource::$_storeIdSessionField

Inherited from Mage_Api_Model_Resource_Abstract

Mage_Api_Model_Resource_Abstract::$_resourceConfig
Methods
Constructor __construct (line 43)
  • access: public
Mage_Catalog_Model_Product_Link_Api __construct ()
assign (line 95)

Add product link association

  • access: public
boolean assign (string $type, int|string $productId, int|string $linkedProductId, [array $data = array()], [ $identifierType = null])
  • string $type
  • int|string $productId
  • int|string $linkedProductId
  • array $data
  • $identifierType

Redefined in descendants as:
attributes (line 216)

Retrieve attribute list for specified type

  • access: public
array attributes (string $type)
  • string $type
items (line 55)

Retrieve product link associations

  • access: public
array items (string $type, int|sku $productId, [ $identifierType = null])
  • string $type
  • int|sku $productId
  • $identifierType
remove (line 179)

Remove product link association

  • access: public
boolean remove (string $type, int|string $productId, int|string $linkedProductId, [ $identifierType = null])
  • string $type
  • int|string $productId
  • int|string $linkedProductId
  • $identifierType
types (line 240)

Retrieve link types

  • access: public
array types ()
update (line 138)

Update product link association info

  • access: public
boolean update (string $type, int|string $productId, int|string $linkedProductId, [array $data = array()], [ $identifierType = null])
  • string $type
  • int|string $productId
  • int|string $linkedProductId
  • array $data
  • $identifierType

Redefined in descendants as:
_collectionToEditableArray (line 317)

Export collection to editable array

  • access: protected
array _collectionToEditableArray (Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Link_Product_Collection $collection)
_getTypeId (line 251)

Retrieve link type id by code

  • access: protected
int _getTypeId (string $type)
  • string $type
_initCollection (line 301)

Initialize and return linked products collection

  • access: protected
_initProduct (line 266)

Initilize and return product model

  • access: protected
Mage_Catalog_Model_Product _initProduct (int $productId, [ $identifierType = null])
  • int $productId
  • $identifierType

Inherited Methods

Inherited From Mage_Catalog_Model_Api_Resource

Mage_Catalog_Model_Api_Resource::currentStore()
Mage_Catalog_Model_Api_Resource::_getProduct()
Mage_Catalog_Model_Api_Resource::_getStoreId()
Mage_Catalog_Model_Api_Resource::_isAllowedAttribute()

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 16:56:34 +0200 by phpDocumentor 1.4.3