Framework  3.9
ExcelFileWriter Class Reference

ExcelFileWriter is an abstract factory to allow different Excel libraries to be used at the programmer's preference. More...

Static Public Member Functions

static create ($filename)
 
static RegisterHandler ($handlerClass)
 

Static Public Attributes

static $handler = ExcelFile
 

Detailed Description

ExcelFileWriter is an abstract factory to allow different Excel libraries to be used at the programmer's preference.

Author
andy

Definition at line 44 of file excel.inc.

Member Function Documentation

◆ create()

static ExcelFileWriter::create (   $filename)
static

Definition at line 48 of file excel.inc.

49  {
50  // Discard any previously generated output
51  ob_clean();
52  trace("Creating new Excel Handler: ".ExcelFileWriter::$handler, 3);
53  return new ExcelFileWriter::$handler($filename);
54  }
static $handler
Definition: excel.inc:46
trace($msg, $lvl=3, $callStack=null)
Send output to the trace log.
Definition: functions.inc:1010

◆ RegisterHandler()

static ExcelFileWriter::RegisterHandler (   $handlerClass)
static

Definition at line 56 of file excel.inc.

57  {
58  ExcelFileWriter::$handler = $handlerClass;
59  }

Member Data Documentation

◆ $handler

ExcelFileWriter::$handler = ExcelFile
static

Definition at line 46 of file excel.inc.


The documentation for this class was generated from the following file: