Class Mage_Review_Model_Resource_Review
Review resource model
- Mage_Core_Model_Resource_Abstract
-
Mage_Core_Model_Resource_Db_Abstract
-
Mage_Review_Model_Resource_Review
Direct known subclasses
Mage_Review_Model_Mysql4_Review
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.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/Review/Model/Resource/Review.php
protected
|
|
protected
Zend_Db_Select
|
#
_getLoadSelect( string $field, mixed $value, unknown_type $object )
Retrieve select object for load object data |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
integer
|
#
getTotalReviews( integer $entityPkValue, boolean $approvedOnly = false, integer $storeId = 0 )
Retrieves total reviews |
public
|
|
protected
array
|
|
protected
|
#
_aggregateRatings( array $ratingIds, integer $entityPkValue )
Aggregate this review's ratings. Useful, when changing the review. |
public
|
|
public
integer|boolean
|
|
public
|
#
deleteReviewsByProductId( integer $productId )
Delete reviews by product id. Better to call this method in transaction, because operation performed on two separated tables |
protected
string
|
$_reviewTable |
|
#
Review table |
protected
string
|
$_reviewDetailTable |
|
#
Review Detail table |
protected
string
|
$_reviewStatusTable |
|
#
Review status table |
protected
string
|
$_reviewEntityTable |
|
#
Review entity table |
protected
string
|
$_reviewStoreTable |
|
#
Review store table |
protected
string
|
$_aggregateTable |
|
#
Review aggregate table |
private
array
|
$_deleteCache | array() |
#
Cache of deleted rating data |
$_commitCallbacks
|