Class Mage_Catalog_Model_Resource_Product_Collection
Product collection
- Varien_Data_Collection_Db
- Mage_Eav_Model_Entity_Collection_Abstract
- Mage_Catalog_Model_Resource_Collection_Abstract
- Mage_Catalog_Model_Resource_Product_Collection
Direct known subclasses
Mage_Bundle_Model_Resource_Selection_Collection, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection, Mage_Reports_Model_Resource_Product_Index_Collection_Abstract, Mage_Reports_Model_Resource_Review_Product_Collection, Mage_Review_Model_Resource_Review_Product_Collection, Mage_Tag_Model_Resource_Product_Collection, Mage_Catalog_Model_Resource_Product_Compare_Item_Collection, Mage_Catalog_Model_Resource_Product_Link_Product_Collection, Mage_Catalog_Model_Resource_Product_Type_Configurable_Product_Collection, Mage_CatalogSearch_Model_Resource_Advanced_Collection, Mage_CatalogSearch_Model_Resource_Fulltext_Collection, Mage_CatalogSearch_Model_Resource_Search_Collection, Mage_Reports_Model_Resource_Product_Collection, Mage_Reports_Model_Resource_Product_Downloads_CollectionIndirect known subclasses
Mage_Bundle_Model_Mysql4_Selection_Collection, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Compare_Item_Collection, Mage_Reports_Model_Mysql4_Product_Index_Compared_Collection, Mage_Reports_Model_Mysql4_Product_Index_Viewed_Collection, Mage_Reports_Model_Mysql4_Product_Lowstock_Collection, Mage_Reports_Model_Mysql4_Product_Ordered_Collection, Mage_Reports_Model_Mysql4_Product_Sold_Collection, Mage_Reports_Model_Mysql4_Product_Viewed_Collection, Mage_Reports_Model_Mysql4_Review_Product_Collection, Mage_Reports_Model_Mysql4_Tag_Product_Collection, Mage_Reports_Model_Mysql4_Wishlist_Product_Collection, Mage_Reports_Model_Resource_Product_Index_Compared_Collection, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Link_Product_Collection, Mage_Reports_Model_Resource_Product_Index_Viewed_Collection, Mage_Reports_Model_Resource_Product_Lowstock_Collection, Mage_Reports_Model_Resource_Product_Ordered_Collection, Mage_Reports_Model_Resource_Product_Sold_Collection, Mage_Reports_Model_Resource_Product_Viewed_Collection, Mage_Reports_Model_Resource_Shopcart_Product_Collection, Mage_Reports_Model_Resource_Tag_Product_Collection, Mage_Reports_Model_Resource_Wishlist_Product_Collection, Mage_Review_Model_Mysql4_Review_Product_Collection, Mage_Tag_Model_Mysql4_Product_Collection, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable_Product_Collection, Mage_Wishlist_Model_Mysql4_Product_Collection, Mage_CatalogSearch_Model_Mysql4_Advanced_Collection, Mage_CatalogSearch_Model_Mysql4_Fulltext_Collection, Mage_CatalogSearch_Model_Mysql4_Search_Collection, Mage_Reports_Model_Mysql4_Product_Collection, Mage_Reports_Model_Mysql4_Product_Downloads_Collection, Mage_Reports_Model_Mysql4_Product_Index_Collection_AbstractCategory: 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/Catalog/Model/Resource/Product/Collection.php
public
Varien_Db_Select
|
#
getCatalogPreparedSelect( )
Get cloned Select after dispatching 'catalog_prepare_price_select' event |
protected
|
#
_preparePriceExpressionParameters( Varien_Db_Select $select )
Prepare additional price expression sql part |
public
string
|
|
public
string
|
|
public
float
|
|
public
|
|
public
boolean
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
Varien_Object
|
#
getNewEmptyItem( )
Retrieve collection empty item Redeclared for specifying id field name without getting resource model inside model |
public
|
|
public
|
|
protected
|
#
_initSelect( )
Initialize collection select Redeclared for remove entity_type_id condition in catalog_product_entity we store just products |
public
|
#
_loadAttributes( boolean $printQuery = false, boolean $logQuery = false )
Load attributes into loaded entities |
public
|
#
addAttributeToSelect( array|string|integer|
Add attribute to entities in collection If $attribute=='*' select all attributes |
protected
|
|
protected
|
#
_afterLoad( )
Processing collection items after loading Adding url rewrites, minimal prices, final prices, tax percents |
protected
|
|
public
|
|
public
|
#
addWebsiteNamesToResult( )
Adding product website names to result collection Add for each product websites information |
public
|
#
addStoreFilter( mixed $store = null )
Add store availability filter. Include availability product for store website |
public
|
|
public
array
|
|
public
|
#
addCategoryFilter(
Specify category filter for product collection |
public
|
|
public
mixed
|
|
public
array
|
#
getAttributeValueCountByRange( string $attribute, integer $range )
Retrieve ranging product count for arrtibute range |
public
array($value=>$count)
|
|
public
array
|
#
getAllAttributeValues( string $attribute )
Return all attribute values as array in form: array( |
public
Varien_Db_Select
|
|
protected
Varien_Db_Select
|
#
_getSelectCountSql( boolean $select = null, mixed $resetLeftJoins = true )
Get SQL for get record count |
protected
|
|
protected
Varien_Db_Select
|
|
protected
Varien_Db_Select
|
|
public
array
|
|
public
Varien_Db_Select
|
|
public
|
|
public
|
#
addCountToCategories(
Adding product count to categories collection |
public
array
|
|
public
array
|
|
public
|
|
public
|
#
addUrlRewrite( integer $categoryId = '' )
Add URL rewrites data to product If collection loadded - run processing else set flag |
protected
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
public
array
|
|
public
|
|
public
|
#
addPriceData( integer $customerGroupId = null, integer $websiteId = null )
Add Price Data to result |
public
|
#
addAttributeToFilter(
Add attribute to filter |
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addAttributeToSort( string $attribute, string $dir = self::SORT_ORDER_ASC )
Add attribute to sort order |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
#
_productLimitationPrice( mixed $joinLeft = false )
Join Product Price Table with left-join possibility |
public
|
|
protected
|
#
_applyProductLimitations( )
Apply limitation filters to collection Method allows using one time category product index table (or product website table) for different combinations of store_id/category_id/visibility filter states Method supports multiple changes in one collection object for this parameters |
protected
|
#
_applyZeroStoreProductLimitations( )
Apply limitation filters to collection base on API Method allows using one time category product table for combinations of category_id filter states |
public
|
|
public
|
|
public
|
#
addPriceDataFieldFilter( string $comparisonFormat, array $fields )
Add field comparison expression |
public
|
|
public
|
|
public
float
|
|
public
float
|
|
public
float
|
|
public
integer
|
string |
INDEX_TABLE_ALIAS
|
'price_index' |
#
Alias for index table |
string |
MAIN_TABLE_ALIAS
|
'e' |
#
Alias for main table |
protected
array
|
$_flatEnabled | array() |
#
Catalog Product Flat is enabled cache per store |
protected
string
|
$_productWebsiteTable |
|
#
Product websites table name |
protected
string
|
$_productCategoryTable |
|
#
Product categories table name |
protected
boolean
|
$_addUrlRewrite | false |
#
Is add URL rewrites to collection flag |
protected
integer
|
$_urlRewriteCategory | '' |
#
Add URL rewrite for category |
protected
boolean
|
$_addMinimalPrice | false |
#
Is add minimal price to product collection flag |
protected
unknown_type
|
$_addFinalPrice | false |
#
Is add final price to product collection flag |
protected
array
|
$_allIdsCache | null |
#
Cache for all ids |
protected
boolean
|
$_addTaxPercents | false |
#
Is add tax percents to product collection flag |
protected
array
|
$_productLimitationFilters | array() |
#
Product limitation filters Allowed filters |
protected
Zend_Db_Select
|
$_productCountSelect | null |
#
Category product count select |
protected
boolean
|
$_isWebsiteFilter | false |
#
Enter description here ... |
protected
array
|
$_priceDataFieldFilters | array() |
#
Additional field filters, applied in _productLimitationJoinPrice() |
protected
array
|
$_map | array('fields' => array(
'price' => 'price_index.price',
'final_price' => 'price_index.final_price',
'min_price' => 'price_index.min_price',
'max_price' => 'price_index.max_price',
'tier_price' => 'price_index.tier_price',
'special_price' => 'price_index.special_price',
)) |
#
Map of price fields |
protected
string|null
|
$_priceExpression |
|
#
Price expression sql |
protected
string|null
|
$_additionalPriceExpression |
|
#
Additional price expression sql part |
protected
float
|
$_maxPrice |
|
#
Max prise (statistics data) |
protected
float
|
$_minPrice |
|
#
Min prise (statistics data) |
protected
float
|
$_priceStandardDeviation |
|
#
Prise standard deviation (statistics data) |
protected
integer
|
$_pricesCount | null |
#
Prises count (statistics data) |
protected
Varien_Db_Select
|
$_catalogPreparePriceSelect | null |
#
Cloned Select after dispatching 'catalog_prepare_price_select' event |
$_storeId
|