# \CGExtensions\reportstabular_report_defn_group_line

A class to define a group header or footer line.

## Summary

Methods
Properties
Constants
__construct()
get_cell_format()
set_group()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

File
  lib/reports/class.tabular_report_defn.php
Class hierarchy
  \CGExtensions\reports\tabular_report_defn_group_line

## Tags

todo |

## Methods

### __construct()

    __construct(array $hash)

Construct a new group line for tabular report groups.

These lines can be used for either headers or footers.

This method accepts an associative array of either strings or tabular_report_cellfmt objects. If the value is a string, it is passed to the constructor of tabular_report_cellfmt. The keys of the associative array must match defined report columns.

It is possible to define nothing for a particular column in a group line. in which case nothing will be output for that particular column in that particular header or footer line.

#### Parameters

array | $hash | An associative array of strings or tabular_report_cellfmt objects.

#

## Tags

todo |

### get_cell_format()

    get_cell_format(string $key) : \CGExtensions\reports\tabular_report_cellfmt|null

Get the cell format for a specific column for this group line

#### Parameters

string | $key | The column key.

#### Returns

\CGExtensions\reports\tabular_report_cellfmt|null

#

## Tags

todo |

### set_group()

    set_group(\CGExtensions\reports\tabular_report_defn_group $rpt)

#### Parameters

\CGExtensions\reports\tabular_report_defn_group | $rpt |

#

## Tags

todo |

### class.tabular_report_defn.php