Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Review_Block_Customer_List
  • Mage_Review_Block_Customer_Recent
  • Mage_Review_Block_Customer_View
  • Mage_Review_Block_Form
  • Mage_Review_Block_Helper
  • Mage_Review_Block_Product_View
  • Mage_Review_Block_Product_View_List
  • Mage_Review_Block_View
  • Mage_Review_CustomerController
  • Mage_Review_Helper_Data
  • Mage_Review_Model_Mysql4_Review
  • Mage_Review_Model_Mysql4_Review_Collection
  • Mage_Review_Model_Mysql4_Review_Product_Collection
  • Mage_Review_Model_Mysql4_Review_Status_Collection
  • Mage_Review_Model_Mysql4_Review_Summary
  • Mage_Review_Model_Mysql4_Review_Summary_Collection
  • Mage_Review_Model_Observer
  • Mage_Review_Model_Resource_Review
  • Mage_Review_Model_Resource_Review_Collection
  • Mage_Review_Model_Resource_Review_Product_Collection
  • Mage_Review_Model_Resource_Review_Status
  • Mage_Review_Model_Resource_Review_Status_Collection
  • Mage_Review_Model_Resource_Review_Summary
  • Mage_Review_Model_Resource_Review_Summary_Collection
  • Mage_Review_Model_Review
  • Mage_Review_Model_Review_Status
  • Mage_Review_Model_Review_Summary
  • Mage_Review_Model_Session
  • Mage_Review_ProductController
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Review_Model_Resource_Review_Product_Collection

Review Product Collection

Varien_Data_Collection_Db
Extended by Mage_Eav_Model_Entity_Collection_Abstract
Extended by Mage_Catalog_Model_Resource_Collection_Abstract
Extended by Mage_Catalog_Model_Resource_Product_Collection
Extended by Mage_Review_Model_Resource_Review_Product_Collection

Direct known subclasses

Mage_Review_Model_Mysql4_Review_Product_Collection
Package: Mage\Review
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/Review/Model/Resource/Review/Product/Collection.php
Methods summary
protected
# _construct( )

Define module

Define module

Overrides

Mage_Catalog_Model_Resource_Product_Collection::_construct()
protected Mage_Review_Model_Resource_Review_Product_Collection
# _initSelect( )

init select

init select

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::_initSelect()
public Mage_Review_Model_Resource_Review_Product_Collection
# addStoreFilter( mixed $storeId = null )

Adds store filter into array

Adds store filter into array

Parameters

$storeId
mixed
$storeId

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::addStoreFilter()
public Mage_Review_Model_Resource_Review_Product_Collection
# setStoreFilter( array $storeId )

Adds specific store id into array

Adds specific store id into array

Parameters

$storeId
array
$storeId

Returns

Mage_Review_Model_Resource_Review_Product_Collection
protected Mage_Review_Model_Resource_Review_Product_Collection
# _applyStoresFilterToSelect( Zend_Db_Select $select = null )

Applies all store filters in one place to prevent multiple joins in select

Applies all store filters in one place to prevent multiple joins in select

Parameters

$select
null|Zend_Db_Select
$select

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addStoreData( )

Add stores data

Add stores data

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addCustomerFilter( integer $customerId )

Add customer filter

Add customer filter

Parameters

$customerId
integer
$customerId

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addEntityFilter( integer $entityId )

Add entity filter

Add entity filter

Parameters

$entityId
integer
$entityId

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addStatusFilter( mixed $status )

Add status filter

Add status filter

Parameters

$status
mixed
$status

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# setDateOrder( string $dir = 'DESC' )

Set date order

Set date order

Parameters

$dir
string
$dir

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addReviewSummary( )

Add review summary

Add review summary

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public Mage_Review_Model_Resource_Review_Product_Collection
# addRateVotes( )

Add rote votes

Add rote votes

Returns

Mage_Review_Model_Resource_Review_Product_Collection
protected Mage_Review_Model_Resource_Review_Product_Collection
# _joinFields( )

join fields to entity

join fields to entity

Returns

Mage_Review_Model_Resource_Review_Product_Collection
public array
# getAllIds( unknown_type $limit = null, unknown_type $offset = null )

Retrive all ids for collection

Retrive all ids for collection

Parameters

$limit
unknown_type
$limit
$offset
unknown_type
$offset

Returns

array

Overrides

Mage_Catalog_Model_Resource_Product_Collection::getAllIds()
public string
# getSelectCountSql( )

Render SQL for retrieve product count

Render SQL for retrieve product count

Returns

string

Overrides

Mage_Catalog_Model_Resource_Product_Collection::getSelectCountSql()
public Mage_Review_Model_Resource_Review_Product_Collection
# setOrder( string $attribute, string $dir = 'DESC' )

Set order to attribute

Set order to attribute

Parameters

$attribute
string
$attribute
$dir
string
$dir

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::setOrder()
public Mage_Review_Model_Resource_Review_Product_Collection
# addAttributeToFilter( Mage_Eav_Model_Entity_Attribute_Abstract|string $attribute, array $condition = null, string $joinType = 'inner' )

Add attribute to filter

Add attribute to filter

Parameters

$attribute
Mage_Eav_Model_Entity_Attribute_Abstract|string
$attribute
$condition
array
$condition
$joinType
string
$joinType

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::addAttributeToFilter()
public array
# getColumnValues( string $colName )

Retrieves column values

Retrieves column values

Parameters

$colName
string
$colName

Returns

array
protected Mage_Review_Model_Resource_Review_Product_Collection
# _afterLoad( )

Action after load

Action after load

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::_afterLoad()
protected
# _addStoreData( )

Add store data

Add store data

protected Mage_Review_Model_Resource_Review_Product_Collection
# _beforeLoad( )

Redeclare parent method for store filters applying

Redeclare parent method for store filters applying

Returns

Mage_Review_Model_Resource_Review_Product_Collection

Overrides

Mage_Catalog_Model_Resource_Product_Collection::_beforeLoad()
Methods inherited from Mage_Catalog_Model_Resource_Product_Collection
_addFinalPrice(), _addUrlRewrite(), _applyProductLimitations(), _applyZeroStoreProductLimitations(), _buildClearSelect(), _getClearSelect(), _getSelectCountSql(), _init(), _initTables(), _joinPriceRules(), _loadAttributes(), _preparePriceExpressionParameters(), _prepareProductLimitationFilters(), _prepareStaticFields(), _prepareStatisticsData(), _prepareUrlDataObject(), _productLimitationJoinPrice(), _productLimitationJoinStore(), _productLimitationJoinWebsite(), _productLimitationPrice(), addAttributeToSelect(), addAttributeToSort(), addCategoryFilter(), addCategoryIds(), addCountToCategories(), addFilterByRequiredOptions(), addFinalPrice(), addIdFilter(), addMinimalPrice(), addOptionsToResult(), addPriceData(), addPriceDataFieldFilter(), addTaxPercents(), addTierPriceData(), addUrlRewrite(), addWebsiteFilter(), addWebsiteNamesToResult(), applyFrontendPriceLimitations(), clear(), getAdditionalPriceExpression(), getAllAttributeValues(), getAllIdsCache(), getAttributeValueCount(), getAttributeValueCountByRange(), getCatalogPreparedSelect(), getCurrencyRate(), getFlatHelper(), getLimitationFilters(), getMaxAttributeValue(), getMaxPrice(), getMinPrice(), getNewEmptyItem(), getPriceExpression(), getPriceStandardDeviation(), getPricesCount(), getProductCountSelect(), getProductTypeIds(), getSetIds(), isEnabledFlat(), joinMinimalPrice(), joinUrlRewrite(), requireTaxPercent(), setAllIdsCache(), setEntity(), setStore(), setVisibility(), unsProductCountSelect()
Methods inherited from Mage_Catalog_Model_Resource_Collection_Abstract
_addLoadAttributesSelectValues(), _getLoadAttributesSelect(), _joinAttributeToSelect(), getDefaultStoreId(), getStoreId(), setStoreId()
Methods inherited from Mage_Eav_Model_Entity_Collection_Abstract
__construct(), _addAttributeJoin(), _getAllIdsSelect(), _getAttributeConditionSql(), _getAttributeFieldName(), _getAttributeTableAlias(), _loadEntities(), _prepareOrderExpression(), _prepareSelect(), _renderOrders(), _reset(), _setItemAttributeValue(), addEntityTypeToSelect(), addExpressionAttributeToSelect(), addFieldToFilter(), addItem(), addStaticField(), delete(), exportToArray(), getAllIdsSql(), getAttribute(), getEntity(), getLoadedIds(), getResource(), getRowIdFieldName(), getTable(), groupByAttribute(), importFromArray(), joinAttribute(), joinField(), joinTable(), load(), removeAttributeToSelect(), save(), setObject(), setPage(), setRowIdFieldName(), toArray()
Constants inherited from Mage_Catalog_Model_Resource_Product_Collection
INDEX_TABLE_ALIAS, MAIN_TABLE_ALIAS
Properties summary
protected array $_entitiesAlias array()
#

Entities alias

Entities alias

protected string $_reviewStoreTable
#

Review store table

Review store table

protected boolean $_addStoreDataFlag false
#

Add store data flag

Add store data flag

protected array $_storesIds array()
#

Filter by stores for the collection

Filter by stores for the collection

Properties inherited from Mage_Catalog_Model_Resource_Product_Collection
$_addFinalPrice, $_addMinimalPrice, $_addTaxPercents, $_addUrlRewrite, $_additionalPriceExpression, $_allIdsCache, $_catalogPreparePriceSelect, $_flatEnabled, $_isWebsiteFilter, $_map, $_maxPrice, $_minPrice, $_priceDataFieldFilters, $_priceExpression, $_priceStandardDeviation, $_pricesCount, $_productCategoryTable, $_productCountSelect, $_productLimitationFilters, $_productWebsiteTable, $_urlRewriteCategory
Properties inherited from Mage_Catalog_Model_Resource_Collection_Abstract
$_storeId
Properties inherited from Mage_Eav_Model_Entity_Collection_Abstract
$_castToIntMap, $_entity, $_filterAttributes, $_itemsById, $_joinAttributes, $_joinEntities, $_joinFields, $_selectAttributes, $_selectEntityTypes, $_staticFields, $_useAnalyticFunction
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0