public static function columnSum($dataProvider, $attributes)
    {
        $result = 0;
        foreach ($dataProvider->models as $model) {
            foreach ((array) $attributes as $attribute) {
                $result += $model[$attribute];
            }
        }
        return $result;
    }
public static function columnSum($dataProvider, $attributes)
    {
        $result = 0;
        foreach ($dataProvider->models as $model) {
            foreach ((array) $attributes as $attribute) {
                $result += $model[$attribute];
            }
        }
        return $result;
    }
public static function columnSum ( $ dataProvider , $ attributes ) { $ result = 0 ; foreach ( $ dataProvider -> models as $ model ) { foreach ( ( array ) $ attributes as $ attribute ) { $ result += $ model [ $ attribute ] ; } } return $ result ; }
Gets sum for GridList model attribute
@param $dataProvider
@param $attributes
@return int
Gets sum for GridList model attribute