Class Mage_CatalogInventory_Model_Stock_Status
CatalogInventory Stock Status per website Model
- Varien_Object
-
Mage_Core_Model_Abstract
-
Mage_CatalogInventory_Model_Stock_Status
Package: Mage\CatalogInventory
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/CatalogInventory/Model/Stock/Status.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/CatalogInventory/Model/Stock/Status.php
protected
|
|
public
array
|
#
getProductTypeInstances( )
Retrieve Product Type Instances as key - type code, value - instance model |
public
|
|
public
array
|
|
public
integer
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
#
assignProduct(
Assign Stock Status to Product |
public
|
|
public
|
#
updateStatus( integer $productId, string $productType = null, integer $websiteId = null )
Update product status from stock item |
protected
|
#
_processChildren( integer $productId, string $productType, float $qty = 0, integer $status =
Process children stock status |
protected
|
#
_processParents( integer $productId, integer $stockId = 1, integer $websiteId = null )
Process Parents by child |
public
|
#
saveProductStatus( integer $productId, integer $status, float $qty = 0, integer $stockId = 1, integer|null $websiteId = null )
Save product status per website if website is null, saved for all websites |
public
array
|
#
getProductStatus( integer|array $productIds, integer $websiteId, integer $stockId = 1 )
Retrieve Product(s) status |
public
array
|
#
getProductData( integer|array $productIds, integer $websiteId, integer $stockId = 1 )
Retrieve Product(s) Data array |
public
string|false
|
|
public
array
|
#
getProductsType( array|integer $productIds )
Retrieve Products Type as array Return array as key product_id, value type |
public
|
#
addStockStatusToProducts(
Add information about stock status to product collection |
public
|
#
addStockStatusToSelect( Varien_Db_Select $select,
Add stock status to prepare index select |
public
|
#
prepareCatalogProductIndexSelect( Varien_Db_Select $select, string|Zend_Db_Expr $entityField, string|Zend_Db_Expr $websiteField )
Add stock status limitation to catalog product price index select object |
public
|
#
addIsInStockFilterToCollection(
Add only is in stock products filter to product collection |
integer |
STATUS_OUT_OF_STOCK
|
0 |
|
integer |
STATUS_IN_STOCK
|
1 |
protected
array
|
$_productTypes |
|
#
Product Type Instances cache |
protected
array
|
$_websites |
|
#
Websites cache |
$_cacheTag,
$_dataSaveAllowed,
$_eventObject,
$_eventPrefix,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|