Property | Type | Description | |
---|---|---|---|
$_contentType | string | MIME content type. | |
$_extension | string | File extension. |
Method | Description | |
---|---|---|
exportData ( array $data, boolean $header = false ) : string | Builds a TSV file from a given data structure and returns it as a string. | |
exportFile ( string $filename, array $data, boolean $header = false ) | Builds a TSV file from a given data structure and triggers its download. | |
importData ( string $contents, boolean $header = false, string $delimiter = " " ) : array | Convert data file contents to list of data records. | |
nextStep ( integer $action, array $param = [] ) : mixed | Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step. |
public nextStep ( integer $action, array $param = [] ) : mixed | ||
$action | integer | The current step. One of the IMPORT_* constants. |
$param | array | An associative array containing needed parameters for the current step. |
return | mixed | Either the next step as an integer constant or imported data set after the final step. |