ActiveRecord2Excel
in package
Class for converting a an active record to an Excel spreadsheet.
Tags
Table of Contents
Properties
- $logger : Logger
- Trace logger.
- $record : ActiveRecord
- The record we will convert to an Excel sheet.
Methods
- __construct() : mixed
- Constructor.
- render() : string
- Returns the output as an Excel spreadsheet.
Properties
$logger
Trace logger.
private
static Logger
$logger
= null
Tags
$record
The record we will convert to an Excel sheet.
private
ActiveRecord
$record
Tags
Methods
__construct()
Constructor.
public
__construct(ActiveRecord $record) : mixed
Parameters
- $record : ActiveRecord
Tags
render()
Returns the output as an Excel spreadsheet.
public
render([bool $renderHeaders = true ]) : string
Parameters
- $renderHeaders : bool = true
-
Set to false to supress headers in the spreadsheet (defaults to true).