-
Notifications
You must be signed in to change notification settings - Fork 35
icms_ipf_export_Renderer
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
icms_ipf_export_Renderer class
Class that renders a set of data into a specific export format
- Class name: icms_ipf_export_Renderer
- Namespace:
public array $data = array()
Contains the data to be exported
- Visibility: public
public string $format = csv
Format of the ouputed export. Currently only supports CSV
- Visibility: public
public string $filename
Name of the file in which the exported data will be saved
- Visibility: public
public string $filepath
Path where the file will be saved
- Visibility: public
public array $options = array()
Options of the format to be exported in
- Visibility: public
mixed icms_ipf_export_Renderer::__construct(array data, string filename, string filepath, string format, array options)
Constructor
- Visibility: public
- data array - <p>Contains the data to be exported</p>
- filename string - <p>Name of the file in which the exported data will be saved</p>
- filepath string - <p>Path where the file will be saved</p>
- format string - <p>Format of the ouputed export. Currently only supports CSV</p>
- options array - <p>Options of the format to be exported in</p>
mixed icms_ipf_export_Renderer::arrayToCsvString(\arr dataArray, \str separator, \str trim, bool removeEmptyLines)
Converts an array to a comma-separated string
- Visibility: public
- dataArray arr
- separator str
- trim str
- removeEmptyLines bool
mixed icms_ipf_export_Renderer::valToCsvHelper(\str val, \str separator, \str trimFunction)
- Visibility: public
- val str
- separator str
- trimFunction str
mixed icms_ipf_export_Renderer::execute()
- Visibility: public
mixed icms_ipf_export_Renderer::saveExportFile(\str content)
- Visibility: public
- content str
mixed icms_ipf_export_Renderer::saveCsv(\str content)
- Visibility: public
- content str