protected function RateWidget::getAverageResults in Rate 7.2
Get average voting results.
Return value
array
1 call to RateWidget::getAverageResults()
- RateWidget::__construct in classes/
widget.inc - Create a new Rate widget.
File
- classes/
widget.inc, line 347
Class
Code
protected function getAverageResults() {
$criteria = array(
'entity_type' => $this->entity_type,
'entity_id' => $this->entity_id,
'tag' => $this->tag,
'value_type' => $this->value_type,
);
return votingapi_select_results($criteria);
}