set_column_width()
set_column_width(int $val)
Set the width of each column (in characters)
Parameters
int | $val |
This class will take a report definition and output a text file representation of the report.
__construct(\CGExtensions\reports\report_defn $rpt)
Constructor.
\CGExtensions\reports\report_defn | $rpt |
draw_cell(\CGExtensions\reports\tabular_report_cellfmt $cell, string $contents)
A callback function to draw a cell.
\CGExtensions\reports\tabular_report_cellfmt | $cell | |
string | $contents | the cell contents. |
get_cell_contents(string $col_key, string $tpl, array $row) : string
A function to get cell contents for the specified column of the current row.
string | $col_key | The column key (must be a registered column) |
string | $tpl | The cell template. |
array | $row | The current row array (usually used internally) |
The formatted cell contents.
get_group_cell_contents(string $col_key, string $grp_key, string $tpl, array $row) : string
A function to get cell contents for a group header or footer cell.
string | $col_key | The column key (must be a registered column) |
string | $grp_key | The group key. |
string | $tpl | The cell template. |
array | $row | The current resultset row. Only for internal use. |
The formatted cell contents.
changed(\CGExtensions\reports\tabular_report_defn_group $grp, array $row) : bool
Test if the value for a specified group has changed.
\CGExtensions\reports\tabular_report_defn_group | $grp | The group that references the watched column. |
array | $row | The data row. |
before_group_header(\CGExtensions\reports\tabular_report_defn_group $grp, bool $is_first) : void
A callback function that is called before a single group header is output.
\CGExtensions\reports\tabular_report_defn_group | $grp | |
bool | $is_first | True if this is the first of all group headers (subject to change) |
after_group_header(\CGExtensions\reports\tabular_report_defn_group $grp) : void
A callback function that is called after a single group header is output.
\CGExtensions\reports\tabular_report_defn_group | $grp |
before_group_footer(\CGExtensions\reports\tabular_report_defn_group $grp) : void
A callback function that is called before a single group footer is generated.
\CGExtensions\reports\tabular_report_defn_group | $grp |
after_group_footer(\CGExtensions\reports\tabular_report_defn_group $grp) : void
A callback function that is called after a single group footer is generated.
\CGExtensions\reports\tabular_report_defn_group | $grp |
report() : \CGExtensions\reports\report_defn
Get the report definition.