original_string: protected function executeAggregate($fn, $table, $field, $conditions)
      {
          $data = $this->selectAll($table, $conditions, $fn . '(' . $field . ')');
          return $data ? (float)current($data[0]) : 0.0;
      }
code: protected function executeAggregate($fn, $table, $field, $conditions)
      {
          $data = $this->selectAll($table, $conditions, $fn . '(' . $field . ')');
          return $data ? (float)current($data[0]) : 0.0;
      }
code_tokens: protected function executeAggregate ( $ fn , $ table , $ field , $ conditions ) { $ data = $ this -> selectAll ( $ table , $ conditions , $ fn . '(' . $ field . ')' ) ; return $ data ? ( float ) current ( $ data [ 0 ] ) : 0.0 ; }
docstring: Execute a query with aggregate function
  
  @param string $fn
  @param string $table
  @param string $field
  @param mixed $conditions
  @return float
docstring_tokens: Execute a query with aggregate function