public function get_aggregate_string() {

        $aggregate = $this->aggregate;
        $method = $this->settings->aggregationmethod;

        // Only display aggregate if aggregation method isn't COUNT.
        $aggregatestr = '';
        if (is_numeric($aggregate) && $method != RATING_AGGREGATE_COUNT) {
            if ($method != RATING_AGGREGATE_SUM && !$this->settings->scale->isnumeric) {

                // Round aggregate as we're using it as an index.
                $aggregatestr .= $this->settings->scale->scaleitems[round($aggregate)];
            } else { // Aggregation is SUM or the scale is numeric.
                $aggregatestr .= round($aggregate, 1);
            }
        }

        return $aggregatestr;
    }
public function get_aggregate_string() {

        $aggregate = $this->aggregate;
        $method = $this->settings->aggregationmethod;

        // Only display aggregate if aggregation method isn't COUNT.
        $aggregatestr = '';
        if (is_numeric($aggregate) && $method != RATING_AGGREGATE_COUNT) {
            if ($method != RATING_AGGREGATE_SUM && !$this->settings->scale->isnumeric) {

                // Round aggregate as we're using it as an index.
                $aggregatestr .= $this->settings->scale->scaleitems[round($aggregate)];
            } else { // Aggregation is SUM or the scale is numeric.
                $aggregatestr .= round($aggregate, 1);
            }
        }

        return $aggregatestr;
    }
public function get_aggregate_string ( ) { $ aggregate = $ this -> aggregate ; $ method = $ this -> settings -> aggregationmethod ; // Only display aggregate if aggregation method isn't COUNT. $ aggregatestr = '' ; if ( is_numeric ( $ aggregate ) && $ method != RATING_AGGREGATE_COUNT ) { if ( $ method != RATING_AGGREGATE_SUM && ! $ this -> settings -> scale -> isnumeric ) { // Round aggregate as we're using it as an index. $ aggregatestr .= $ this -> settings -> scale -> scaleitems [ round ( $ aggregate ) ] ; } else { // Aggregation is SUM or the scale is numeric. $ aggregatestr .= round ( $ aggregate , 1 ) ; } } return $ aggregatestr ; }
Returns this ratings aggregate value as a string.

@return string ratings aggregate value
Returns this ratings aggregate value as a string .