Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Static Protected Member Functions
ExportItemToCsvFileUtil Class Reference
Inheritance diagram for ExportItemToCsvFileUtil:
ExportItemToOutputUtil

Static Public Member Functions

static export ($data, $headerData=array(), $exportFileName= 'exports.csv', $download=false, $allowHeaderOnlyConversion=false, $shouldTrim=false)
 
- Static Public Member Functions inherited from ExportItemToOutputUtil
static export ($data, $headerData=array(), $exportFileName= 'exports.csv', $download=false)
 

Data Fields

const DEFAULT_DELIMITER = ','
 
const DEFAULT_ENCLOSURE = '"'
 

Static Protected Member Functions

static arrayToCsv ($row, $isHeaderRow=false, $delimiter=null, $enclosure=null)
 

Additional Inherited Members

- Static Public Attributes inherited from ExportItemToOutputUtil
static $mimeType = 'application/octet-stream'
 

Detailed Description

Definition at line 37 of file ExportItemToCsvFileUtil.php.

Member Function Documentation

static export (   $data,
  $headerData = array(),
  $exportFileName = 'exports.csv',
  $download = false,
  $allowHeaderOnlyConversion = false,
  $shouldTrim = false 
)
static

Export data array into csv format and send generated file to web browser or return csv string, depending on $download parameter.

Parameters
array$data
array$headerData
string$exportFileName
bool$downloadShould send generated csv string to output or not.
bool$allowHeaderOnlyConversion
bool$shouldTrimShould trim data before exporting
Returns
string|void

Definition at line 54 of file ExportItemToCsvFileUtil.php.

static arrayToCsv (   $row,
  $isHeaderRow = false,
  $delimiter = null,
  $enclosure = null 
)
staticprotected

Convert array into csv string.

Parameters
array$row
boolean$isHeaderRow
string$delimiter
string$enclosure
Returns
string

Definition at line 97 of file ExportItemToCsvFileUtil.php.


The documentation for this class was generated from the following file:
Generated on Sun Jul 12 2020 07:10:45
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.