private function _makeBuilderForAggregations($fields)
    {
        $table   = $this->_builder->table;
        $where   = $this->_builder->where;
        $limit   = $this->_builder->limit;
        $offset  = $this->_builder->offset;

        $builder         = new Builder();
        $builder->prefix = "select";
        $builder->fields = $fields;
        $builder->table  = $table;
        $builder->where  = $where;
        $builder->limit  = $limit;
        $builder->offset = $offset;
        return $builder;
    }
private function _makeBuilderForAggregations($fields)
    {
        $table   = $this->_builder->table;
        $where   = $this->_builder->where;
        $limit   = $this->_builder->limit;
        $offset  = $this->_builder->offset;

        $builder         = new Builder();
        $builder->prefix = "select";
        $builder->fields = $fields;
        $builder->table  = $table;
        $builder->where  = $where;
        $builder->limit  = $limit;
        $builder->offset = $offset;
        return $builder;
    }
private function _makeBuilderForAggregations ( $ fields ) { $ table = $ this -> _builder -> table ; $ where = $ this -> _builder -> where ; $ limit = $ this -> _builder -> limit ; $ offset = $ this -> _builder -> offset ; $ builder = new Builder ( ) ; $ builder -> prefix = "select" ; $ builder -> fields = $ fields ; $ builder -> table = $ table ; $ builder -> where = $ where ; $ builder -> limit = $ limit ; $ builder -> offset = $ offset ; return $ builder ; }
Construct builder for aggregations

@param mixed $fields fields to use

@return mixed average
Construct builder for aggregations