\CSVPreviewer
View the content of a given CSV file
Synopsis
class CSVPreviewer
extends ViewableData
{
- // members
- protected $file;
- protected $headings;
- protected $rows;
- protected integer $previewcount = 5;
- // methods
- public void __construct()
- public void setPreviewCount()
- public void loadCSV()
- public string forTemplate()
- public ArrayList getHeadings()
- public ArrayList getRows()
Hierarchy
Extends
- ViewableData
Members
protected
- $file
- $headings
- $previewcount
- $rows
Methods
public
- __construct()
- forTemplate() — Render the previewer
- getHeadings() — Get the CSV headings for use in template
- getRows() — Get CSV rows/cols for use in template
- loadCSV() — Extract preview of CSV from file
- setPreviewCount() — Choose the nubmer of lines to preview