You are here

protected function RateWidget::getButtonLabelByValue in Rate 7.2

1 call to RateWidget::getButtonLabelByValue()
RateDefaultWidget::getDescription in classes/default.inc
Get description for this widget.

File

classes/widget.inc, line 441

Class

RateWidget

Code

protected function getButtonLabelByValue($value) {
  foreach ($this->elements as $element) {
    if ($element instanceof RateButton && $element
      ->getValue() == $value) {
      return $element
        ->getLabel();
    }
  }
}