62 $this->_ratingOptionFactory = $ratingOptionFactory;
63 $this->_ratingCollectionF = $ratingCollectionF;
84 $this->_ratingOptionFactory->create()->setOptionId(
102 $this->_ratingOptionFactory->create()->setOptionId(
125 return $this->_ratingCollectionF->create()->addRatingFilter(
127 )->setPositionOrder()->load()->getItems();
141 $this->setEntityPkValue($entityPkValue);
142 return $this->
_getResource()->getEntitySummary($this, $onlyForCurrentStore);
152 $this->setReviewId($reviewId);
153 return $this->
_getResource()->getReviewSummary($this, $onlyForCurrentStore);
164 return $this->
getResource()->getEntityIdByCode($entityCode);
getData($key='', $index=null)
elseif(isset( $params[ 'redirect_parent']))
getEntityIdByCode($entityCode)
getReviewSummary($reviewId, $onlyForCurrentStore=true)
updateOptionVote($optionId)
getEntitySummary($entityPkValue, $onlyForCurrentStore=true)
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Review\Model\Rating\OptionFactory $ratingOptionFactory, \Magento\Review\Model\ResourceModel\Rating\Option\CollectionFactory $ratingCollectionF, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
addOptionVote($optionId, $entityPkValue)
const ENTITY_PRODUCT_CODE
const ENTITY_PRODUCT_REVIEW_CODE