\CSVFieldMapper
A visual interface for mapping field names.
Synopsis
class CSVFieldMapper
extends CSVPreviewer
{
- // members
- protected $mappablecols;
- protected $mappingvalues;
- // Inherited members from CSVPreviewer
- protected $file;
- protected $headings;
- protected $rows;
- protected integer $previewcount;
- // methods
- public void setMappableCols()
- public void loadDataFrom()
- public ArrayList getMapHeadings()
- protected void createHeadingDropdown()
- // Inherited methods from CSVPreviewer
- public void __construct()
- public void setPreviewCount()
- public void loadCSV()
- public string forTemplate()
- public ArrayList getHeadings()
- public ArrayList getRows()
Hierarchy
Extends
Members
protected
- $file
- $headings
- $mappablecols
- $mappingvalues
- $previewcount
- $rows
Methods
protected
public
- getMapHeadings() — Provide heading dropdowns for creating mappings
- loadDataFrom() — Set the values for the dropdowns
- setMappableCols()
Inherited from CSVPreviewer
public
- 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