Class ExportResponse
Class CsvResponse
- Symfony\Component\HttpFoundation\Response
-
FOM\CoreBundle\Component\ExportResponse
Namespace: FOM\CoreBundle\Component
Package: FOM\CoreBundle\Component
Copyright: 2014 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Located at FOM/CoreBundle/Component/ExportResponse.php
Package: FOM\CoreBundle\Component
Copyright: 2014 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Located at FOM/CoreBundle/Component/ExportResponse.php
Methods summary
public
|
#
__construct( array $data = NULL, string $fileName = 'export', string $type =
Export Response |
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public static
null|resource|string
|
#
genXLS( array & $data, null| $handle = null, boolean $detectHead = true )
Here's the shortest and the fastest way to generate Excel file. It supports string and numeric fields. I hope this function can avoid you using huge Excel PHP classes which are too complicated and slow (and require reading a lot of documentation) for such a basic task. |
public static
resource
|
Magic methods summary
Constants summary
string |
UTF_16_LE
Unicode charset |
# 'UTF-16LE' |
string |
TYPE_XLS
Excel export type |
# 'xls' |
string |
TYPE_CSV
CSV export type |
# 'csv' |
integer |
XLS_INT_TYPE
Excel int type |
# 0x203 |
integer |
XLS_STRING_TYPE
Excel string type |
# 0x204 |