common/components/statistics/service/StatisticalData.php
/**
     * Returns summary attribute value
     *
     * @param  string $attr
     * @return integer|float
     */
Returns summary attribute value
@param  string $attr
@return integer|float
Returns summary attribute value @param string $attr @return integer|float
public function sum($attr)
    {
        $sum = 0;
        foreach ($this->data as $data) {
            $sum += isset($data->$attr) ? $data->$attr : 0;
        }
        return $sum;
    }
public function sum ( $ attr ) { $ sum = 0 ; foreach ( $ this -> data as $ data ) { $ sum += isset ( $ data -> $ attr ) ? $ data -> $ attr : 0 ; } return $ sum ; }
Returns summary attribute value
 @param  string $attr
 @return integer|float
Returns summary attribute value @param string $attr @return integer|float