TableRows::importCSV()
Import CSV file
Given CSV file must have the first line as the header containing column names that map exactly to the column names in this FieldtypeTable field.
Usage
// basic usage
$int = $tableRows->importCSV(string $csvFile);
// usage with all arguments
$int = $tableRows->importCSV(string $csvFile, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$csvFile | string | |
$options (optional) | array |
Return value
intNumber of rows imported
Exceptions
Method can throw exceptions on error:
WireException
TableRows methods and properties
API reference based on ProcessWire core version 3.0.260