ilateral\SilverStripe\SlightlyBetterBulkLoader\CustomReader
Synopsis
class CustomReader
extends Reader
{
- // members
- protected boolean $ignore_empty_headers = true;
- // methods
- protected array validateKeys()
- protected int findLastHeaderPos()
- public boolean getIgnoreEmptyHeaders()
- public CustomReader setIgnoreEmptyHeaders()
Hierarchy
Extends
- League\Csv\Reader
Members
protected
- $ignore_empty_headers
—
boolean
Should this reader ignore column headers that are null when importing?
Methods
protected
- findLastHeaderPos() — Attempt to find the position of the last legitimate header column (a column that is not null and is the last item in the list that is not null).
- validateKeys() — Validates the array to be used by the fetchAssoc method
public
- getIgnoreEmptyHeaders() — Get the ignore_empty_headers param
- setIgnoreEmptyHeaders() — Set the ignore_empty_headers param